openfl / svg

Provides SVG parsing and rendering for OpenFL and Haxe
MIT License
68 stars 30 forks source link

Rotation doesn't work #41

Open ashes999 opened 8 years ago

ashes999 commented 8 years ago

When the SVG contains a polygon element with transform="rotate(-x, y)", SVG generates errors that rotate is an unknown transformation, and it doesn't rotate the element.

Here's a small SVG of a diamond (square rotated 45 degrees) which appears unrotated.

<svg width="50" height="50" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
 <!-- Created with SVG-edit - http://svg-edit.googlecode.com/ -->
 <g>
  <title>Layer 1</title>
  <rect id="svg_2" height="25" width="25" y="12.5" x="12.5" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="0" stroke="#000000" fill="#0000ff" transform="rotate(45 25,25) "/>
 </g>
</svg>