mirror of
https://github.com/penpot/penpot.git
synced 2025-06-13 07:21:39 +02:00
✨ Serialize stroke solid fills as bytes (wasm)
This commit is contained in:
parent
093fa18839
commit
5ae125db94
2 changed files with 11 additions and 5 deletions
|
@ -297,8 +297,12 @@
|
|||
(store-image id)))
|
||||
|
||||
(some? color)
|
||||
(let [rgba (sr-clr/hex->u32argb color opacity)]
|
||||
(h/call wasm/internal-module "_add_shape_stroke_solid_fill" rgba)))))
|
||||
(let [size sr-fills/SOLID-BYTE-SIZE
|
||||
offset (mem/alloc-bytes size)
|
||||
heap (mem/get-heap-u32)
|
||||
argb (sr-clr/hex->u32argb color opacity)]
|
||||
(sr-fills/write-solid-fill! offset heap argb)
|
||||
(h/call wasm/internal-module "_add_shape_stroke_solid_fill")))))
|
||||
strokes))
|
||||
|
||||
(defn set-shape-path-attrs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue