🐛 Fix masks export area

This commit is contained in:
alonso.torres 2021-10-20 14:25:47 +02:00
parent c65e8b4a5e
commit 7ba9558a7a
2 changed files with 8 additions and 1 deletions

View file

@ -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