Remove trailing zeros from path coordinates. Use scientific notation in path coords if shorter. Scour polygon coordinates just like path coordinates. Added tests
This commit is contained in:
parent
8f50f0d509
commit
b28ae6ec8d
9 changed files with 119 additions and 39 deletions
|
|
@ -1,3 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg" version="1.1">
|
||||
<path d="M 100.0000001 99.9999999 h100.001 v123456789.123456789 h-100 z" fill="red" />
|
||||
<path d="M 100.0000001 99.9999999 h100.01 v123456789.123456789 h-100 z" fill="red" />
|
||||
</svg>
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 173 B After Width: | Height: | Size: 227 B |
Loading…
Add table
Add a link
Reference in a new issue