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:
parent
161a55e166
commit
33ad2d94fb
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue