mirror of
https://github.com/penpot/penpot.git
synced 2025-06-03 14:41:37 +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))
|
(u/display-not-valid :makeMask (:type shape))
|
||||||
|
|
||||||
:else
|
:else
|
||||||
(str (:content shape)))))
|
(.toString (:content shape)))))
|
||||||
|
|
||||||
;; Text shapes
|
;; Text shapes
|
||||||
:getRange
|
:getRange
|
||||||
|
@ -1309,7 +1309,7 @@
|
||||||
(cond-> (or (cfh/path-shape? data) (cfh/bool-shape? data))
|
(cond-> (or (cfh/path-shape? data) (cfh/bool-shape? data))
|
||||||
(crc/add-properties!
|
(crc/add-properties!
|
||||||
{:name "content"
|
{:name "content"
|
||||||
:get #(-> % u/proxy->shape :content str)
|
:get #(-> % u/proxy->shape :content .toString)
|
||||||
:set
|
:set
|
||||||
(fn [_ value]
|
(fn [_ value]
|
||||||
(let [content (svg.path/parse value)]
|
(let [content (svg.path/parse value)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue