diff --git a/common/src/app/common/pages/common.cljc b/common/src/app/common/pages/common.cljc index 1b73deac2..f5c243924 100644 --- a/common/src/app/common/pages/common.cljc +++ b/common/src/app/common/pages/common.cljc @@ -13,6 +13,11 @@ (def default-color clr/gray-20) (def root uuid/zero) +;; Attributes that may be synced in components, and the group they belong to. +;; When one attribute is modified in a shape inside a component, the corresponding +;; group is marked as :touched. Then, if the shape is synced with the remote shape +;; in the main component, none of the attributes of the same group is changed. + (def component-sync-attrs {:name :name-group :fills :fill-group @@ -23,6 +28,7 @@ :fill-color-ref-id :fill-group :hide-fill-on-export :fill-group :content :content-group + :position-data :content-group :hidden :visibility-group :blocked :modifiable-group :grow-type :text-font-group @@ -62,7 +68,6 @@ :rotation :geometry-group :transform :geometry-group :transform-inverse :geometry-group - :position-data :geometry-group :opacity :layer-effects-group :blend-mode :layer-effects-group :shadow :shadow-group