mirror of
https://github.com/penpot/penpot.git
synced 2025-06-09 22:22:13 +02:00
🐛 Fix problems with text position data
This commit is contained in:
parent
93b582c385
commit
d8a7402046
1 changed files with 2 additions and 6 deletions
|
@ -126,15 +126,11 @@
|
||||||
new-modifiers (-> (get modifiers id) strip-modifier)]
|
new-modifiers (-> (get modifiers id) strip-modifier)]
|
||||||
(or (and (not (identical? old-shape new-shape))
|
(or (and (not (identical? old-shape new-shape))
|
||||||
(not= old-shape new-shape))
|
(not= old-shape new-shape))
|
||||||
|
(not= new-modifiers old-modifiers))))
|
||||||
;; The shape has changed only if its modifier is not empty and it's different
|
|
||||||
(and (not= new-modifiers old-modifiers)
|
|
||||||
(or (not (gsh/empty-modifiers? (:modifiers old-modifiers)))
|
|
||||||
(not (gsh/empty-modifiers? (:modifiers new-modifiers))))))))
|
|
||||||
|
|
||||||
changed-texts
|
changed-texts
|
||||||
(mf/use-memo
|
(mf/use-memo
|
||||||
(mf/deps text-shapes)
|
(mf/deps text-shapes modifiers)
|
||||||
#(->> (keys text-shapes)
|
#(->> (keys text-shapes)
|
||||||
(filter text-change?)
|
(filter text-change?)
|
||||||
(map (d/getf text-shapes))))
|
(map (d/getf text-shapes))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue