Implemented converted straight curves into lines. Remove last point from polygon data if possible

This commit is contained in:
JSCHILL1 2009-05-21 21:32:44 -05:00
parent 78eb4e5e82
commit e163fb348c
5 changed files with 188 additions and 41 deletions

4
unittests/polygon.svg Normal file
View file

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg">
<polygon fill="blue" points="50,50 150,50 150,150 50,150 +5e1,500.00e-1" />
<polygon fill="green" points="200,50 300,50 300,150 200,150" />
</svg>

After

Width:  |  Height:  |  Size: 189 B

View file

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg">
<path fill="blue" d="M10,10c10,10,30,30,40,40l40-40z"/>
</svg>

After

Width:  |  Height:  |  Size: 104 B