I need to get the x/y positions of an element that is written like this in SVG:
<g transform="scale(10,10)" id="g6558">
<text transform="matrix(1,0,0,-1,236.532,417.253)" id="text6560">
<tspan x="0 4.448" y="0" id="tspan6562">10</tspan>
</text>
</g>
How do I get the current position of the tspan
element in this case? I have to manually calculate them as I can't use getBBox()
or other native functions because I'm using a Flash-wrapper to display the SVG (http://code.google.com/p/svgweb/) which only supports basic attributes, tag names etc.
How are the matrices and transformations caluclated on the x/y position of the element?