mirror of
https://github.com/penpot/penpot.git
synced 2026-09-13 15:38:38 +00:00
♻️ Update backend for :path-data attribute
Update binfile cleaner and SREPL path_data proc to use :path-data instead of :content for path and bool shapes. Signed-off-by: Andrey Antukh <niwi@niwi.nz>
This commit is contained in:
parent
2505367ae7
commit
d0eeb8cb50
@ -20,7 +20,7 @@
|
|||||||
[shape]
|
[shape]
|
||||||
(if-let [content (get shape :bool-content)]
|
(if-let [content (get shape :bool-content)]
|
||||||
(-> shape
|
(-> shape
|
||||||
(assoc :content content)
|
(assoc :path-data content)
|
||||||
(dissoc :bool-content))
|
(dissoc :bool-content))
|
||||||
shape))
|
shape))
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,7 @@
|
|||||||
(fn [object]
|
(fn [object]
|
||||||
(if (or (cfh/path-shape? object)
|
(if (or (cfh/path-shape? object)
|
||||||
(cfh/bool-shape? object))
|
(cfh/bool-shape? object))
|
||||||
(update object :content vec)
|
(update object :path-data vec)
|
||||||
object))
|
object))
|
||||||
|
|
||||||
update-container
|
update-container
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user