mirror of
https://github.com/penpot/penpot.git
synced 2025-07-13 17:47:25 +02:00
📎 Add better defaults for text processing on old migrations
This commit is contained in:
parent
77ef26b207
commit
17bfed137c
1 changed files with 3 additions and 3 deletions
|
@ -855,7 +855,7 @@
|
||||||
|
|
||||||
(update-object [object]
|
(update-object [object]
|
||||||
(if (cfh/text-shape? object)
|
(if (cfh/text-shape? object)
|
||||||
(update object :content #(txt/transform-nodes identity update-text-node %))
|
(update object :content #(txt/transform-nodes txt/is-content-node? update-text-node %))
|
||||||
object))
|
object))
|
||||||
|
|
||||||
(update-container [container]
|
(update-container [container]
|
||||||
|
@ -1105,7 +1105,7 @@
|
||||||
;; The text shape also can has fills on the text
|
;; The text shape also can has fills on the text
|
||||||
;; fragments so we need to fix fills there
|
;; fragments so we need to fix fills there
|
||||||
(cond-> (cfh/text-shape? object)
|
(cond-> (cfh/text-shape? object)
|
||||||
(update :content (partial txt/transform-nodes identity fix-fills)))))
|
(update :content (partial txt/transform-nodes txt/is-content-node? fix-fills)))))
|
||||||
|
|
||||||
(update-container [container]
|
(update-container [container]
|
||||||
(d/update-when container :objects d/update-vals update-object))]
|
(d/update-when container :objects d/update-vals update-object))]
|
||||||
|
@ -1407,7 +1407,7 @@
|
||||||
|
|
||||||
(update-object [object]
|
(update-object [object]
|
||||||
(if (cfh/text-shape? object)
|
(if (cfh/text-shape? object)
|
||||||
(update object :content (partial txt/transform-nodes identity fix-fills))
|
(update object :content (partial txt/transform-nodes txt/is-content-node? fix-fills))
|
||||||
object))
|
object))
|
||||||
|
|
||||||
(update-container [container]
|
(update-container [container]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue