2012-01-29 | Paul Boddie | file changeset files shortlog | Improved/fixed transform attribute parsing and path data parsing. Added a test of transformations and paths. |
paul@360 | 1 | <?xml version="1.0" encoding="iso-8859-1"?> |
paul@360 | 2 | <svg xmlns="http://www.w3.org/2000/svg" version="1.1" |
paul@360 | 3 | width="800px" height="600px" viewBox="0 0 800 600"> |
paul@360 | 4 | <g transform="translate(400 300) scale(200 150)"> |
paul@360 | 5 | <rect x="-2" y="-2" width="4" height="4" fill="#000"/> |
paul@360 | 6 | <path d="M -1,-1 L 1,-1 L 1,1 L -1,1 z" stroke="#fff" stroke-width="0.005"/> |
paul@360 | 7 | </g> |
paul@360 | 8 | </svg> |