mirror of
https://github.com/penpot/penpot.git
synced 2026-09-18 18:06:14 +00:00
🐛 Add proper default to cx and cy when parsing svg circle elements
This commit is contained in:
parent
161a55e166
commit
33ad2d94fb
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user