🐛 Fix creating minimal path shapes (#11210)

This commit is contained in:
Belén Albeza 2026-08-11 13:10:44 +02:00 committed by GitHub
parent 0de47302a6
commit 4a1d6e6d57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -657,10 +657,15 @@
[type]
(let [type (if (= type :curve) :path type)
attrs (get-minimal-shape type)
attrs (cond-> attrs
(and (not= :path type)
(not= :bool type))
(-> (assoc :x 0)
attrs (if (or (= :path type)
(= :bool type))
(-> attrs
(assoc :x nil)
(assoc :y nil)
(assoc :width nil)
(assoc :height nil))
(-> attrs
(assoc :x 0)
(assoc :y 0)
(assoc :width 0.01)
(assoc :height 0.01)))