Thank you a lot for this rapid answer, Dominik!

The whole thing IS a mix of smil and custom scripting, but I hesitate to
replace all animateTransform, animateColor etc. with scripts ... 

BUT:
Would general scripting enhance performance somehow (both using
JSVGCanvas or a browser)?
I wouldn't need batik if the svg would not take such a looooong time to
load (everywhere), is that due to the many many smil animation elements
of which I just call two or three per request?

The reason I came to batik was to put everything into an applet, such
that the graphic will load only once and the applet is communicting with
the servlet and triggering animations, instead of reloading each time
and animating onload.
There was a another possibility with IE to trigger animations across
frames and documents, but .... IE ;-)

Thanks again and greetings!
sonja





Am Montag, den 05.09.2005, 13:04 +0200 schrieb Steiner, Dominik:
> Hi Sonja,
> 
> as far as I know Batik doesn't yet support animation... 
> 
> 'Batik currently does not support SMIL animation. The only way to do
> > animation in Batik is to use ECMAScript or Java and repeatedly update
> > the DOM.'
> 
> See the thread
> 
> http://koala.ilog.fr/batik/mlists/batik-users/archives/msg07797.html
> 
> I hope this helps a bit...
> 
> Dominik
> 
> -----Ursprüngliche Nachricht-----
> Von: Sonja Löhr [mailto:[EMAIL PROTECTED] 
> Gesendet: Montag, 5. September 2005 12:56
> An: [email protected]
> Betreff: Re: Calling srcipts, beginElement()
> 
> 
> Perhaps I should tell you a bit more:
> 
> The svg starts with 
> 
> <svg id="root" xmlns:xlink="http://www.w3.org/1999/xlink";
> xmlns="http://www.w3.org/2000/svg";>
>       
> <script xlink:href="igel.js"></script>
> 
> and contains animation elements like that one:
> <animateTransform id="wink" begin="indefinite" dur="3s"
>       attributeName="transform"
>       type="rotate"
>       values="0 90 140; 150 90 140; 90 90 140; 150 90 140; 90 90 140; 150 90
> 140"/>
> 
> 
> The "igel.js"  starts with:
> 
> var svgDoc;
> [...]
> 
> function init(evt) {
>       evt = (evt) ? evt : window.event;
>       svgDoc = evt.getTarget().getOwnerDocument();
>       [...]
> }
> 
> and a sample function would be: 
> 
> function welcome() {
>     reset();
>     svgDoc.getElementById("wink").beginElement();
> }
> 
> Others additionally call a helper function to directly modify paths.
> 
> Now I would like to call these things from the application hosting the
> JSVGCanvas.
> I don't need listeners for clicks or anything - the application does a
> GET request, parses the data and then decides which animation to
> trigger.
> 
> Thanks again for help, links to examples and so on :-)
> 
> sonja
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Am Montag, den 05.09.2005, 12:30 +0200 schrieb Sonja Löhr:
> > Hello, all!
> > 
> > I'm a bloody beginner with Batik. 
> > I have a rather complex SVG with many animating script functions and
> > other dependent animations with beginElement(). 
> > Now I try try to load this svg inside a JSVGCanvas. The intention is to
> > later call the various functions (like smile(), angry() and so on) from
> > the application. 
> > 
> > First question:
> > What about beginElement()? While loading the svg, I get a message like:
> > TODO: beginElement
> > 
> > 
> > Second question:
> > Do I have to convert all these functions into java code or is it
> > generally possible to simply call existent js-functions in the svg-doc
> > on a window (or SVGDocument??) object?
> > 
> > 
> > Some hints would be very useful,
> > thanks in advance,
> > 
> > sonja
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
-- 
Sonja Löhr <[EMAIL PROTECTED]>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to