Simple question that I can't find a simple answer to.
How do I look up the complete current human-readable (non-matrix) transform state of a Raphael element, regardless of whether or how that element's transform state was set?
For example, using element.transform()
doesn't give you a complete transform state:
1: If something has been set by matrix, it doesn't give you the non-matrix state. E.g. here the element has been scaled equivalent to s2,2
but there's no s
data when we parse the result:
circ = paper.circle(50,50,50);
circ.transform('m2 0 0 2 0 0');
console.log(circ.transform(''));
2: If something hasn't been set, it's undefined rather than giving us the default numeric value. E.g. here there's no s
data, whereas I'm hoping for something that would tell us the scale state is equivalent to applying s1,1
:
circ = paper.circle(50,50,50);
circ.transform('t100,100');
console.log(circ.transform(''));