diff --git a/frontend/resources/wasm-playground/clips.html b/frontend/resources/wasm-playground/clips.html index 0248e71b40..e4f8bef576 100644 --- a/frontend/resources/wasm-playground/clips.html +++ b/frontend/resources/wasm-playground/clips.html @@ -79,6 +79,7 @@ setShapeChildren([frameUuid]); performance.mark('render:begin'); + Module._set_view(1, 0, 0); Module._render(Date.now()); performance.mark('render:end'); const { duration } = performance.measure('render', 'render:begin', 'render:end'); diff --git a/frontend/resources/wasm-playground/js/lib.js b/frontend/resources/wasm-playground/js/lib.js index 4120a59815..b890e32ce4 100644 --- a/frontend/resources/wasm-playground/js/lib.js +++ b/frontend/resources/wasm-playground/js/lib.js @@ -147,16 +147,6 @@ export function draw_star(x, y, width, height) { dv.setUint16(ptr + offset + 0, 4, true); // CLOSE Module._set_shape_path_content(); - - const str = serializePathAttrs({ - fill: "none", - "stroke-linecap": "round", - "stroke-linejoin": "round", - }); - const size = str.length; - offset = allocBytes(size); - Module.stringToUTF8(str, offset, size); - Module._set_shape_path_attrs(3); } export function setShapeChildren(shapeIds) { diff --git a/frontend/resources/wasm-playground/masks.html b/frontend/resources/wasm-playground/masks.html index 6c89d7e8b0..2a479a29c4 100644 --- a/frontend/resources/wasm-playground/masks.html +++ b/frontend/resources/wasm-playground/masks.html @@ -38,7 +38,6 @@ init(Module); assignCanvas(canvas); Module._set_canvas_background(hexToU32ARGB("#FABADA", 1)); - Module._set_view(1, 0, 0); Module._init_shapes_pool(shapes + 1); setupInteraction(canvas); @@ -78,6 +77,7 @@ Module._set_shape_masked_group(true); setShapeChildren(group_children); + Module._set_view(1, 0, 0); Module._render(Date.now()); }); diff --git a/frontend/resources/wasm-playground/paths.html b/frontend/resources/wasm-playground/paths.html index ecc56af20c..a3e11f044a 100644 --- a/frontend/resources/wasm-playground/paths.html +++ b/frontend/resources/wasm-playground/paths.html @@ -41,7 +41,6 @@ init(Module); assignCanvas(canvas); Module._set_canvas_background(hexToU32ARGB("#FABADA", 1)); - Module._set_view(1, 0, 0); Module._init_shapes_pool(shapes + 1); setupInteraction(canvas); @@ -74,6 +73,7 @@ setShapeChildren(children); performance.mark('render:begin'); + Module._set_view(1, 0, 0); Module._render(Date.now()); performance.mark('render:end'); const { duration } = performance.measure('render', 'render:begin', 'render:end'); diff --git a/frontend/resources/wasm-playground/plus.html b/frontend/resources/wasm-playground/plus.html index cd63ae677c..35ed8828c8 100644 --- a/frontend/resources/wasm-playground/plus.html +++ b/frontend/resources/wasm-playground/plus.html @@ -65,7 +65,6 @@ init(Module); assignCanvas(canvas); Module._set_canvas_background(hexToU32ARGB("#FABADA", 1)); - Module._set_view(1, 0, 0); Module._init_shapes_pool(shapes + 1); setupInteraction(canvas); @@ -98,6 +97,7 @@ setShapeChildren(children); performance.mark('render:begin'); + Module._set_view(1, 0, 0); Module._render(Date.now()); performance.mark('render:end'); const { duration } = performance.measure('render', 'render:begin', 'render:end'); diff --git a/frontend/resources/wasm-playground/rects.html b/frontend/resources/wasm-playground/rects.html index bb05ecbdac..9a0e33f15f 100644 --- a/frontend/resources/wasm-playground/rects.html +++ b/frontend/resources/wasm-playground/rects.html @@ -40,7 +40,6 @@ init(Module); assignCanvas(canvas); Module._set_canvas_background(hexToU32ARGB("#FABADA", 1)); - Module._set_view(1, 0, 0); Module._init_shapes_pool(shapes + 1); setupInteraction(canvas); @@ -71,6 +70,7 @@ setShapeChildren(children); performance.mark('render:begin'); + Module._set_view(1, 0, 0); Module._render(Date.now()); performance.mark('render:end'); const { duration } = performance.measure('render', 'render:begin', 'render:end'); diff --git a/frontend/resources/wasm-playground/texts.html b/frontend/resources/wasm-playground/texts.html index 9dfacbc5de..9e61b1acd0 100644 --- a/frontend/resources/wasm-playground/texts.html +++ b/frontend/resources/wasm-playground/texts.html @@ -56,7 +56,6 @@ init(Module); assignCanvas(canvas); Module._set_canvas_background(hexToU32ARGB("#FABADA", 1)); - Module._set_view(1, 0, 0); Module._init_shapes_pool(texts + 1); setupInteraction(canvas); @@ -95,6 +94,7 @@ setShapeChildren(children); performance.mark('render:begin'); + Module._set_view(1, 0, 0); Module._render(Date.now()); performance.mark('render:end'); const { duration } = performance.measure('render', 'render:begin', 'render:end');