1
0
mirror of https://github.com/svg/svgo.git synced 2025-07-29 20:21:14 +03:00

Simplify number rendering and fix -0 in path

Ref https://github.com/svg/svgo/issues/1422
This commit is contained in:
Bogdan Chadkin
2021-03-22 14:38:06 +03:00
parent 316a002299
commit 3d4adb6b04
4 changed files with 16 additions and 26 deletions

View File

@ -5,7 +5,7 @@
@@@
<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path d="m33.027833 1.96545901 5.0135294 5.01352941c.0000001-.00000008-.0319306-2.94431722-.0319306-2.94431722L34 .02523956V0H13v2h20.062374z"/>
<path d="m33.027833 1.96545901 5.0135294 5.01352941c1e-7-8e-8-.0319306-2.94431722-.0319306-2.94431722L34 .02523956V0H13v2h20.062374z"/>
</svg>
@@@

Before

Width:  |  Height:  |  Size: 686 B

After

Width:  |  Height:  |  Size: 677 B

View File

@ -19,7 +19,7 @@ Precision should be applied to all converted shapes
<path d="M26.614 29.232 34.268 8.176"/>
<path d="M26.614 29.232 34.268 8.176z"/>
<path d="M26.614-5.036A34.268 34.268 0 1 0 26.614 63.5 34.268 34.268 0 1 0 26.614-5.036z"/>
<path d="M26.614 21.056A34.268 8.176 0 1 0 26.614 37.408 34.268 8.176 0 1 0 26.614 21.056z"/>
<path d="M26.614 21.057A34.268 8.176 0 1 0 26.614 37.408 34.268 8.176 0 1 0 26.614 21.057z"/>
</svg>
@@@