在svg中我们有element.getCTM()一个返回SVGMatrixas的方法:
element.getCTM()
SVGMatrix
[a c e][b d f][0 0 1]
我想从这个矩阵计算sx,sy和旋转角度.
svg angle rotation matrix decomposition
angle ×1
decomposition ×1
matrix ×1
rotation ×1
svg ×1