mirror of
https://github.com/penpot/penpot.git
synced 2026-09-10 14:09:17 +00:00
✨ Make consistent use of .toString with path content
This commit is contained in:
parent
500c27859b
commit
7d327d23a2
@ -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…
x
Reference in New Issue
Block a user