If I use getCTM() to get the current tranformation matrix, how do I use that object to set the matrix if I want to restore it at a later point (I know about save and restore but
var transform = ownerSVGElement.createSVGTransform() transform.setMatrix(elem.getCTM()) someelement.transform.baseVal.initialize(transform)