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. 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,
I saw a DOM interface called SVGTransform and there is also an api called "setScale" in this link http://www.w3.org/TR/2003/REC-SVG11-20030114/coords.html#InterfaceSVGTransform but how am I going to get the SVGTransform object is what I could not find - Raks A On Tue, Jan 11, 2011 at 1:45 AM, [email protected] <[email protected]> wrote: > > > --- In [email protected] <svg-developers%40yahoogroups.com>, > Raks A <raks...@...> wrote: > > > > But what are the browsers which support all the SVG DOM Apis. > > I think at leats getBBox() is supported by all of them (as mentioned, > getScreenBBox() unfortunately isn't). > > > > We are > > creating a drawing tool where we want to allow the users to scale and > rotate > > a closed path using the mouse. Now we can capture the mouse events but > > unless and untill there is a fast way to get a SVGPath element > > object, scaling the co-ordinates by parsing the path data every time with > > every mouse event would make the drawing would un-responsive to user > > > > It's much simpler than that. The path data needn't be changed. (Don't > change the path data! Parsing path syntax might cause you more trouble than > it's worth.) I'd suggest working through an SVG tutorial that makes you > familiar with the transform attribute, or have a look at the according > chapter of the specs[1]. Rotation and scaling are essential concepts in SVG. > > > [1] http://www.w3.org/TR/SVG/coords.html#TransformAttribute > > > [Non-text portions of this message have been removed] ------------------------------------ ----- 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/

