From 17489091c5ec2f2a8606ddc42bb55f4d77d76262 Mon Sep 17 00:00:00 2001 From: Miguel de Benito Delgado Date: Fri, 25 Sep 2026 10:02:35 +0200 Subject: [PATCH] :recycle: Move use-shape into app.common.render_wasm - Introduces a new ns since there wasn't a suitable one - Simplifies serialize-shapes-batch! and allows usage outside the frontend --- frontend/src/app/render_wasm/api.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/render_wasm/api.cljs b/frontend/src/app/render_wasm/api.cljs index 8a4ad7d427..f6fb87f8dd 100644 --- a/frontend/src/app/render_wasm/api.cljs +++ b/frontend/src/app/render_wasm/api.cljs @@ -1123,7 +1123,7 @@ (h/call wasm/internal-module "_set_shape_hidden" hidden)) (defn clear-shape-fills! - "Clear the fills of the currently-selected shape (call `use-shape` first). + "Clear the fills of the currently-selected shape (call `use-shape!` first). Equivalent to `set-shape-fills` with an empty collection." [] (when (initialized?) @@ -1581,7 +1581,7 @@ `skip-fills-strokes?` is true, fill/stroke records were already in the batch; only image fetches remain. - Always `use-shape` first: after a multi-shape batch the WASM current shape is + Always `use-shape!` first: after a multi-shape batch the WASM current shape is the last record in the chunk, not this shape." [shape skip-layout? & {:keys [skip-fills-strokes?] :or {skip-fills-strokes? false}}] (let [id (dm/get-prop shape :id)