Hi Cameron, because this is my first post on this mail-list, I'd like to thank you for your great work on the animation support of batik, you've done the last weeks. I really look forward to use these features in the future.
Testing your sources with some of my animations working with the IE-Adobe-Plugin, I found some bugs/missing features I'd like to report to you. In short my operating-system details: - Win XP Pro with Java 1.5 - IE 6.0 with Adobe SVG Plugin - Batik Anim-Branch / Batik-Trunk updated daily 1) specifying more than one begin-time with an '+' in an animation leeds to an ParseException. I think the notation is correct, however I think you do not support this feature at the moment. 2) using a scale-transfromation I'm getting an ArrayIndexOutOfBoundsException 3) using several input-parameters for the from- and to-Attributes I get a NumberFormatException. I'm not sure if the notation is correct, but the Adobe-Plugin animates this SVG correct. I attached an example-SVG for each of these problems and a short description with the stack-trace I got. Perhaps you can have a look at these problems or correct me, if my notation is totally wrong. Thanks Florian
###################################################################################################
Stack-Trace for Example-File 1.svg opened with Squiggle from Trunk:
org.apache.batik.parser.ParseException: Unexpected character (code: -1).
at
org.apache.batik.parser.AbstractParser.reportError(AbstractParser.java:173)
at
org.apache.batik.parser.TimingParser.parseTimingSpecifier(TimingParser.java:100)
at
org.apache.batik.parser.TimingSpecifierListParser.doParse(TimingSpecifierListParser.java:72)
at org.apache.batik.parser.AbstractParser.parse(AbstractParser.java:149)
at
org.apache.batik.anim.timing.TimingSpecifierListProducer.parseTimingSpecifierList(TimingSpecifierListProducer.java:78)
at
org.apache.batik.anim.timing.TimedElement.parseBegin(TimedElement.java:920)
at
org.apache.batik.anim.timing.TimedElement.parseAttributes(TimedElement.java:900)
at
org.apache.batik.bridge.SVGAnimationElementBridge.initializeTimedElement(SVGAnimationElementBridge.java:300)
at
org.apache.batik.bridge.SVGAnimationElementBridge.initializeTimedElement(SVGAnimationElementBridge.java:260)
at
org.apache.batik.bridge.SVGAnimationEngine$LoadListener.handleEvent(SVGAnimationEngine.java:544)
at
org.apache.batik.dom.events.EventSupport.fireEventListeners(EventSupport.java:350)
at
org.apache.batik.dom.events.EventSupport.fireEventListeners(EventSupport.java:407)
at
org.apache.batik.dom.events.EventSupport.dispatchEvent(EventSupport.java:293)
at
org.apache.batik.dom.AbstractNode.dispatchEvent(AbstractNode.java:1010)
at
org.apache.batik.bridge.BaseScriptingEnvironment.dispatchSVGLoad(BaseScriptingEnvironment.java:510)
at
org.apache.batik.bridge.BaseScriptingEnvironment.dispatchSVGLoadEvent(BaseScriptingEnvironment.java:474)
at
org.apache.batik.bridge.UpdateManager.dispatchSVGLoadEvent(UpdateManager.java:238)
at
org.apache.batik.bridge.UpdateManager.dispatchSVGLoadEvent(UpdateManager.java:219)
at
org.apache.batik.swing.svg.SVGLoadEventDispatcher.run(SVGLoadEventDispatcher.java:99)
Description/Comment for example 1:
The problem is the '+'-character used to add some delay between two animations.
I think the current Animation-Support
does not support multiple time-specifieer in the begin-attributes. It would be
great if thi culd be realized.
I read the W3C-Specs and think however, that this notation should be correct.
###################################################################################################
Stack-Trace for Example-File 2.svg opened with Squiggle from Trunk:
java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
at java.util.Vector.setElementAt(Unknown Source)
at
org.apache.batik.anim.values.AnimatableTransformListValue.<init>(AnimatableTransformListValue.java:69)
at
org.apache.batik.dom.svg.SVGOMElement.getBaseValue(SVGOMElement.java:706)
at
org.apache.batik.dom.svg.SVGGraphicsElement.getUnderlyingValue(SVGGraphicsElement.java:296)
at
org.apache.batik.dom.svg.SVGOMCircleElement.getUnderlyingValue(SVGOMCircleElement.java:187)
at
org.apache.batik.bridge.SVGAnimationElementBridge.getUnderlyingValue(SVGAnimationElementBridge.java:127)
at
org.apache.batik.anim.AbstractAnimation.getComposedValue(AbstractAnimation.java:144)
at org.apache.batik.anim.AnimationEngine.tick(AnimationEngine.java:217)
at
org.apache.batik.bridge.SVGAnimationEngine.access$2(SVGAnimationEngine.java:1)
at
org.apache.batik.bridge.SVGAnimationEngine$AnimationTickRunnable.run(SVGAnimationEngine.java:584)
at org.apache.batik.util.RunnableQueue.run(RunnableQueue.java:214)
at java.lang.Thread.run(Unknown Source)
Description/Comment for example 2:
I'm using the scale-Transformation to realize a fading/zoom of some interesting
parts of an Image after
a certain time like 5 or 10 seconds. So I cannot use an animation of the
"r"-attribute of the circle for example.
Instead I use a scaling-Transormation on the whole group of interest.
###################################################################################################
Stack-Trace for Example-File 3.svg opened with Squiggle from Trunk:
java.lang.NumberFormatException: For input string: "0,175,200"
at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
at java.lang.Float.parseFloat(Unknown Source)
at
org.apache.batik.bridge.SVGAnimateTransformElementBridge.parseValue(SVGAnimateTransformElementBridge.java:125)
at
org.apache.batik.bridge.SVGAnimateTransformElementBridge.createAnimation(SVGAnimateTransformElementBridge.java:61)
at
org.apache.batik.bridge.SVGAnimationElementBridge.initializeAnimation(SVGAnimationElementBridge.java:235)
at
org.apache.batik.bridge.SVGAnimationEngine$LoadListener.handleEvent(SVGAnimationEngine.java:539)
at
org.apache.batik.dom.events.EventSupport.fireEventListeners(EventSupport.java:350)
at
org.apache.batik.dom.events.EventSupport.fireEventListeners(EventSupport.java:407)
at
org.apache.batik.dom.events.EventSupport.dispatchEvent(EventSupport.java:293)
at
org.apache.batik.dom.AbstractNode.dispatchEvent(AbstractNode.java:1010)
at
org.apache.batik.bridge.BaseScriptingEnvironment.dispatchSVGLoad(BaseScriptingEnvironment.java:510)
at
org.apache.batik.bridge.BaseScriptingEnvironment.dispatchSVGLoadEvent(BaseScriptingEnvironment.java:474)
at
org.apache.batik.bridge.UpdateManager.dispatchSVGLoadEvent(UpdateManager.java:238)
at
org.apache.batik.bridge.UpdateManager.dispatchSVGLoadEvent(UpdateManager.java:219)
at
org.apache.batik.swing.svg.SVGLoadEventDispatcher.run(SVGLoadEventDispatcher.java:99)
Description/Comment for example 3:
I don't know if the notation of the from- and to-Attributes are totally
correct. From the SMIL-Specs it's not
clear for me, if I have to use the value-Attribute instead. However,
Adobe-Plugin animates this SVG in a correct
manner and I don't know how to realize this animation in an different way.
1.svg
Description: 1.svg
2.svg
Description: 2.svg
3.svg
Description: 3.svg
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
