mirror of
https://github.com/penpot/penpot.git
synced 2025-05-31 12:16:11 +02:00
✨ Make consistent use of .toString with path content
This commit is contained in:
parent
500c27859b
commit
7d327d23a2
1 changed files with 2 additions and 2 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue