If I use getCTM () to get the current transformation matrix, how can I use this object to set the matrix if I want to restore it later (I know about saving and restoring, but they relate to the canvas and not the items)
I know that I set the attribute:
var m = someitem.getCTM(); $(someitem).attr("transform", "matrix("+m.a+","+m.b+","+m.c+","+ m.d+","+m.e+","+m.f+")");
But it seems like a long way. I cannot find the setCTM function of any such close function.
Development for webkit, if that matters.
Thanks!
source share