--- In [email protected], Raks A <raks...@...> wrote: > > Actually I am aware of the transform attribute but as the requirement is > for a drawing tool the user/artist/designer would keep iterating on an > element ( may be 1000 times ) by repeatedly scaling an element till he is > satisfied which means if I keep adding transform there would be 1000s of > transforms.
Every element has transform.baseVal.consolidate() to combine all transforms to a single matrix. > Now I read the SVG DOM APIs but am not sure if there is a direct > api to change the scale or rotate values of a transform element, > What about this: <svg version="1.1" xmlns="http://www.w3.org/2000/svg" > <circle cx="50" cy="50" r="50" onclick=" var t = document.documentElement.createSVGTransform(); t.setScale(1.5,1.2); evt.target.transform.baseVal.appendItem(t); evt.target.transform.baseVal.consolidate(); " /> </svg> ------------------------------------ ----- To unsubscribe send a message to: [email protected] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ----Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

