mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 05:50:35 +00:00
♻️ 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
This commit is contained in:
parent
e20a0d748e
commit
17489091c5
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user