Make consistent use of .toString with path content

This commit is contained in:
Andrey Antukh 2025-04-17 14:43:02 +02:00
parent 500c27859b
commit 7d327d23a2

View file

@ -1018,7 +1018,7 @@
(u/display-not-valid :makeMask (:type shape))
:else
(str (:content shape)))))
(.toString (:content shape)))))
;; Text shapes
:getRange
@ -1309,7 +1309,7 @@
(cond-> (or (cfh/path-shape? data) (cfh/bool-shape? data))
(crc/add-properties!
{:name "content"
:get #(-> % u/proxy->shape :content str)
:get #(-> % u/proxy->shape :content .toString)
:set
(fn [_ value]
(let [content (svg.path/parse value)]