mirror of
https://github.com/penpot/penpot.git
synced 2025-05-13 08:36:40 +02:00
🎉 Deserialize shape data in wasm
This commit is contained in:
parent
22b01c63b5
commit
0bfcc1f854
6 changed files with 140 additions and 18 deletions
|
@ -194,10 +194,8 @@
|
|||
ptr (h/call internal-module "_alloc_bytes" size)
|
||||
heap (gobj/get ^js internal-module "HEAPU8")
|
||||
mem (js/Uint8Array. (.-buffer heap) ptr size)]
|
||||
(.set mem (js/Uint8Array. buffer)
|
||||
(h/call internal-module "_set_shape_path_content" (count content))
|
||||
(js/console.log mem)
|
||||
(js/console.log buffer))))
|
||||
(.set mem (js/Uint8Array. buffer))
|
||||
(h/call internal-module "_set_shape_path_content")))
|
||||
|
||||
(defn- translate-blend-mode
|
||||
[blend-mode]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue