Hi all,

I'm trying to work with matrix. What I'd like is to get the transformation
matrix of a shape compared to root of SVG, and remove only "translate"
transformations. Here is how I'm currently doing it :

//svg = SVGSVGElement
//myshape = a shape (rect, circle, ...)
SVGMatrix matrix = myshape.getTransformToElement(svg);

//Only take into account "translate" transformations, e.g. matrix.e (tx) and
matrix.f (ty)
matrix.setA(1);
matrix.setB(0);
matrix.setC(0);
matrix.setD(1);

But the matrix doesn't seems to be updated (a b c and d are kept
unchanged)...
Am I doing something wrong?

Johan

Reply via email to