1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

Separate layout from styling

This commit is contained in:
Emil Ernerfeldt
2018-12-26 14:38:46 +01:00
parent db30e552d2
commit 094f8216c5
9 changed files with 122 additions and 42 deletions

Binary file not shown.

View File

@@ -78,6 +78,10 @@ function js_gui(input) {
}
function paint_gui(canvas, input) {
var commands = rust_gui(input);
commands.unshift({
fill_style: "#00000000",
kind: "clear"
});
for (var _i = 0, commands_1 = commands; _i < commands_1.length; _i++) {
var cmd = commands_1[_i];
paintCommand(canvas, cmd);

View File

@@ -160,6 +160,10 @@ function js_gui(input: RawInput): PaintCmd[] {
function paint_gui(canvas, input: RawInput) {
const commands = rust_gui(input);
commands.unshift({
fill_style: "#00000000",
kind: "clear",
});
for (const cmd of commands) {
paintCommand(canvas, cmd);