1
0
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:
Bogdan Chadkin
2021-08-27 01:03:11 +03:00
parent 1b02799e18
commit ac8edbaf41
2 changed files with 40 additions and 25 deletions

View 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>