You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by still <st...@commondata.net> on 2002/07/24 05:30:37 UTC

modify svg or svg dom object?

Hi all:
Once a SVG file(.svg) is generated,can the user modify the SVG file via
script event? So the next time when the svg file is displayed,the user
will not need to modify the svg file anymore.
Eg. There is a rect displayed on the svg browser, and then the user
dragged the rect to another place. And the next time the rect will be at
the place the user has dragged to.

I think I should modify the svg dom objects not the svg file.once the
svg dom object modified, I can generate the svg file again . am I right?
Not sure how to do this with apache batik. trying ...

Any suggestion?
Thx





---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Re: modify svg or svg dom object?

Posted by Vincent Hardy <vi...@sun.com>.
Still,

What you want requires an extension to our browser that we have
considered but not implemented yet.

That extension would be to take an 'SVG snapshot' of the currently
displayed document. The SVG snapshot would write out the current state
of the SVG DOM. This would be very useful for things like games and
other applications.

There is an RFE for that in Bugzilla:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8474

Vincent.

still wrote:
> Hi all:
> Once a SVG file(.svg) is generated,can the user modify the SVG file via
> script event? So the next time when the svg file is displayed,the user
> will not need to modify the svg file anymore.
> Eg. There is a rect displayed on the svg browser, and then the user
> dragged the rect to another place. And the next time the rect will be at
> the place the user has dragged to.
> 
> I think I should modify the svg dom objects not the svg file.once the
> svg dom object modified, I can generate the svg file again . am I right?
> Not sure how to do this with apache batik. trying ...
> 
> Any suggestion?
> Thx
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org