mirror of
https://github.com/svg/svgo.git
synced 2025-07-31 07:44:22 +03:00
Fix applying transform to arc with zero radius
Ref https://github.com/svg/svgo/issues/1500
This commit is contained in:
13
test/plugins/convertPathData.26.svg
Normal file
13
test/plugins/convertPathData.26.svg
Normal file
@ -0,0 +1,13 @@
|
||||
Applying transform to arc with zero radius should not produce NaNs
|
||||
|
||||
===
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 31.6 31.6">
|
||||
<path d="m5.25,2.2H25.13a0,0,0,0,1-.05-.05V14.18Z" transform="translate(0 0)"/>
|
||||
</svg>
|
||||
|
||||
@@@
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 31.6 31.6">
|
||||
<path d="M5.25 2.2h19.88l-.05-.05v12.03Z"/>
|
||||
</svg>
|
Reference in New Issue
Block a user