ananth balasubramanyam wrote:

SVGMatrix matrix = locate.getCTM();
....
I am trying to update the values of a matrix

matrix.setE(matrix.getE() + offset) ;

and i save the SVG DOM to a file. But the changes dont seem to
show up in my SVG. Am i doing something wrong or am i missing
something important.

Your missing something important, getCTM returns the combination of transforms from the element it is called on to the nearest viewport. So when you update it there is no way to know which Transform you really want updated.

   I believe that if you modify the stuff returned by 'getTransform()'
then your changes will be reflected in the DOM.

something like:

SVGTransform t=locate.getTransform().getBaseVal().consolidate();

Then any changes to t will be reflected in 'locate'.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to