mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 08:50:57 -05:00
🐛 Regenerate components after resize in sync
This commit is contained in:
parent
6453cb9d11
commit
43b1d3ca43
1 changed files with 12 additions and 0 deletions
|
@ -995,15 +995,27 @@
|
|||
:else
|
||||
uoperations)
|
||||
|
||||
all-parents (or (cp/get-parents dest-shape (:objects container)) [])
|
||||
|
||||
rchanges [(as-> {:type :mod-obj
|
||||
:id (:id dest-shape)
|
||||
:operations roperations} $
|
||||
(if (cp/page? container)
|
||||
(assoc $ :page-id (:id container))
|
||||
(assoc $ :component-id (:id container))))
|
||||
(as-> {:type :reg-objects
|
||||
:shapes all-parents} $
|
||||
(if (cp/page? container)
|
||||
(assoc $ :page-id (:id container))
|
||||
(assoc $ :component-id (:id container))))]
|
||||
uchanges [(as-> {:type :mod-obj
|
||||
:id (:id dest-shape)
|
||||
:operations uoperations} $
|
||||
(if (cp/page? container)
|
||||
(assoc $ :page-id (:id container))
|
||||
(assoc $ :component-id (:id container))))
|
||||
(as-> {:type :reg-objects
|
||||
:shapes all-parents} $
|
||||
(if (cp/page? container)
|
||||
(assoc $ :page-id (:id container))
|
||||
(assoc $ :component-id (:id container))))]]
|
||||
|
|
Loading…
Reference in a new issue