mirror of
https://github.com/penpot/penpot.git
synced 2025-02-27 09:16:17 -05:00
🐛 Fix text content sync and touched detection in shape displacement
This commit is contained in:
parent
216a43cc43
commit
0863a96f93
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue