I have a simple problem: I want to extract the translation (tx, ty), rotation (r), and scale (sx, sy) values ββfrom the transformation matrix applied to my svg element.
Use this example:
<g id="myElement" transform="matrix(0.93893241,0.34410162,-0.34410162,0.93893241,363.88475,-76.125919)" >... </g>
If in javascript i do
document.getElementById("myElement").getCTM()
I can access the values ββa, b, c, d, e, f. How can I get tx, ty, sx, sy and r from there? Thanks
lviggiani
source share