0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 07:29:08 -05:00

🐛 Add proper default to cx and cy when parsing svg circle elements

This commit is contained in:
Andrey Antukh 2024-01-16 16:59:08 +01:00
parent 161a55e166
commit 33ad2d94fb

View file

@ -303,6 +303,11 @@
rx (d/nilv r rx) rx (d/nilv r rx)
ry (d/nilv r ry) ry (d/nilv r ry)
;; There are some svg circles in the internet that does not
;; have cx and cy attrs, so we default them to 0
cx (d/nilv cx 0)
cy (d/nilv cy 0)
origin (gpt/negate (gpt/point svg-data)) origin (gpt/negate (gpt/point svg-data))
rect (grc/make-rect rect (grc/make-rect