Thanks All, I have been reading the SVG DOM interfaces sections in the SVG docs and trying to come to terms with it There are almost no examples of using the interfaces which is causing lot of confusion, Yesterday only I wanted to created a text element and was stuck as to how to create a text element and then set the various values for it
I could achieve the task without using the SVG DOM API and instead using the basic DOM API of createElementNS, setAttributeNS and createTextNode Would it have been possible to directly use SVG specific APIs to achieve the same task - Raks A On Tue, Jan 11, 2011 at 9:45 PM, jeff_schiller <[email protected]>wrote: > > > > --- In [email protected] <svg-developers%40yahoogroups.com>, > Raks A <rakssvg@...> wrote: > > > > But what are the browsers which support all the SVG DOM Apis. 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 > > In SVG-edit [1], we did it this way: when the user is moving/resizing the > element, change its transform attribute and when the user lifts the mouse, > recompute the coordinates of the shape. > > > > Surprisingly there is no mention of SVG Ecmascript bindings in mozilla > > documentation > > Just use the W3C SVG 1.1 spec for the DOM. > > Regards, > Jeff Schiller > > [1] http://svg-edit.googlecode.com/svn/trunk/editor/svg-editor.html > > > [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/

