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
4
unittests/path-truncate-zeros-calc.svg
Normal file
4
unittests/path-truncate-zeros-calc.svg
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="5 0 3 3">
|
||||
<path stroke="blue" stroke-width="0.01" fill="none" d="M5.81,0 H5.91000" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 199 B |
Loading…
Add table
Add a link
Reference in a new issue