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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
