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:
Binary file not shown.
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user