[svg-developers] Any SVG editor with a trace function?

2011-04-22 Thread Pranav Lal
Hi all, I have a large SVG image which I want to dissect. Is there a program in which I can run a SVG image line by line and watch the result much like in a debugger? Pranav - To unsubscribe send a message to:

Re: [svg-developers] Any SVG editor with a trace function?

2011-04-22 Thread Jacob Beard
Probably the easiest way is to just comment out all of the elements you don't want to see, using XML comments (!-- --), and then iteratively add them back in. Jake On Fri, Apr 22, 2011 at 2:01 AM, Pranav Lal pranav@gmail.com wrote: Hi all, I have a large SVG image which I want to

RE: [svg-developers] Any SVG editor with a trace function?

2011-04-22 Thread Pranav Lal
Hi Jake, Ouch I am dealing with files that have over 100 lines. Hmm. Time I got down to it. Pranav -Original Message- From: svg-developers@yahoogroups.com [mailto:svg-developers@yahoogroups.com] On Behalf Of Jacob Beard Sent: Friday, April 22, 2011 4:06 PM To:

Re: [svg-developers] Any SVG editor with a trace function?

2011-04-22 Thread Barend Köbben
Well, you could do this maybe by scripting, removing the comments line by line, but I guess you could also use Firebug or another such web browser debugger to dissect what is where in the file... -- Barend Köbben ITC - University of Twente, Faculty of Geo-Information Science and Earth

Re: [svg-developers] Any SVG editor with a trace function?

2011-04-22 Thread Jeff Schiller
I think this would be an interesting idea. Basically you would: a) load an SVG document into the DOM, put it into an invisible container (display:none) b) then walk the DOM in a depth-first fashion, cloning elements one a time, to a visible container Jeff 2011/4/22 Barend Köbben

Re: [svg-developers] Any SVG editor with a trace function?

2011-04-22 Thread Jacob Beard
By the way, the Elements tab in the Webkit (Chromium/Safari) debugger (accessible via Shift+Ctrl+i in Chromium) will highlight the rendered elements on the SVG canvas when you mouseover them in the debugger's DOM tree. This might also be useful to you. Jake On Fri, Apr 22, 2011 at 10:41 AM, Jeff