🐛 Fix plain vector leaking into shape :content from shape-to-path conversions

group-to-path was storing a raw concatenated vector into :content after
flattening children's PathData instances via (map vec). bool-to-path
was storing the plain-vector result of bool/calculate-content directly.
Both now wrap through path.impl/path-data at the assignment site so the
:content invariant (always a PathData instance) is upheld.

Signed-off-by: Andrey Antukh <niwi@niwi.nz>
This commit is contained in:
Andrey Antukh
2026-03-10 18:24:13 +00:00
parent f566a2adfd
commit 7939cb045b

View File

@@ -168,7 +168,7 @@
child-as-paths)]
(-> group
(assoc :type :path)
(assoc :content content)
(assoc :content (path.impl/path-data content))
(merge head-data)
(d/without-keys dissoc-attrs))))
@@ -184,7 +184,8 @@
(:bool-type shape)
content
(bool/calculate-content bool-type (map :content children))]
(-> (bool/calculate-content bool-type (map :content children))
(path.impl/path-data))]
(-> shape
(assoc :type :path)