Merge pull request #5667 from penpot/superalex-fix-blend-modes-render-wasm

🐛 Fix blend modes for wasm render
This commit is contained in:
Belén Albeza 2025-01-27 11:00:38 +01:00 committed by GitHub
commit 2726fa04c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 31 additions and 22 deletions

View file

@ -493,7 +493,9 @@
id (dm/get-prop shape :id)
type (dm/get-prop shape :type)
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)
transform (dm/get-prop shape :transform)
fills (if (= type :group)

View file

@ -115,7 +115,9 @@
:bool-type (api/set-shape-bool-type v)
:bool-content (api/set-shape-bool-content 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)
:transform (api/set-shape-transform v)
:fills (api/set-shape-fills v)