mirror of
https://github.com/penpot/penpot.git
synced 2025-06-01 09:21:39 +02:00
🐛 Fix masks export area
This commit is contained in:
parent
c65e8b4a5e
commit
7ba9558a7a
2 changed files with 8 additions and 1 deletions
|
@ -37,11 +37,17 @@
|
|||
(update :width + (* 2 padding))
|
||||
(update :height + (* 2 padding)))]
|
||||
|
||||
(if (= :group (:type object))
|
||||
(cond
|
||||
(and (= :group (:type object))
|
||||
(:masked-group? object))
|
||||
(calc-bounds (get objects (first (:shapes object))) objects)
|
||||
|
||||
(= :group (:type object))
|
||||
(->> (:shapes object)
|
||||
(into [obj-bounds] xf-get-bounds)
|
||||
(gsh/join-rects))
|
||||
|
||||
:else
|
||||
obj-bounds)))
|
||||
|
||||
(mf/defc object-svg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue