From 0863a96f93cc45da911e7c8c9d43404088010457 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Wed, 4 Jan 2023 16:32:52 +0100 Subject: [PATCH] :bug: Fix text content sync and touched detection in shape displacement --- common/src/app/common/pages/common.cljc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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