mirror of
https://github.com/penpot/penpot.git
synced 2025-05-19 00:06:14 +02:00
🎉 Improve clipping objects for wasm render
This commit is contained in:
parent
83fe2f35b4
commit
e7c06fed22
2 changed files with 6 additions and 2 deletions
|
@ -493,7 +493,9 @@
|
||||||
id (dm/get-prop shape :id)
|
id (dm/get-prop shape :id)
|
||||||
type (dm/get-prop shape :type)
|
type (dm/get-prop shape :type)
|
||||||
selrect (dm/get-prop shape :selrect)
|
selrect (dm/get-prop shape :selrect)
|
||||||
clip-content (not (dm/get-prop shape :show-content))
|
clip-content (if (= type :frame)
|
||||||
|
(not (dm/get-prop shape :show-content))
|
||||||
|
false)
|
||||||
rotation (dm/get-prop shape :rotation)
|
rotation (dm/get-prop shape :rotation)
|
||||||
transform (dm/get-prop shape :transform)
|
transform (dm/get-prop shape :transform)
|
||||||
fills (if (= type :group)
|
fills (if (= type :group)
|
||||||
|
|
|
@ -115,7 +115,9 @@
|
||||||
:bool-type (api/set-shape-bool-type v)
|
:bool-type (api/set-shape-bool-type v)
|
||||||
:bool-content (api/set-shape-bool-content v)
|
:bool-content (api/set-shape-bool-content v)
|
||||||
:selrect (api/set-shape-selrect v)
|
:selrect (api/set-shape-selrect v)
|
||||||
:show-content (api/set-shape-clip-content (not v))
|
:show-content (if (= (:type self) :frame)
|
||||||
|
(api/set-shape-clip-content (not v))
|
||||||
|
(api/set-shape-clip-content false))
|
||||||
:rotation (api/set-shape-rotation v)
|
:rotation (api/set-shape-rotation v)
|
||||||
:transform (api/set-shape-transform v)
|
:transform (api/set-shape-transform v)
|
||||||
:fills (api/set-shape-fills v)
|
:fills (api/set-shape-fills v)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue