mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
✨ Make consistent use of .toString with path content
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user