[ 
https://issues.apache.org/jira/browse/BATIK-1099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16574697#comment-16574697
 ] 

Marco Herrn commented on BATIK-1099:
------------------------------------

Four years and 3 releases of batik later, but still not even a comment on this 
bug. 

It this going to be resolved at some time?

> Changing an SVGAnimateElement at runtime doesn't work
> -----------------------------------------------------
>
>                 Key: BATIK-1099
>                 URL: https://issues.apache.org/jira/browse/BATIK-1099
>             Project: Batik
>          Issue Type: Bug
>          Components: GVT
>    Affects Versions: 1.7
>            Reporter: Marco Herrn
>            Priority: Major
>
> Modifying an existing SVGAnimateElement at runtime leads to no visible change.
> See for example this SVG snippet:
> <g id="someId">
>         <line ... />
>         <line ... />
>         <animate dur="0.2" from="0" to="1" repeatCount="indefinite"
>                  attributeName="stroke-opacity" 
>                  calcMode="discrete"/>
>         <animate dur="0.2" from="0" to="1" repeatCount="indefinite"
>                  attributeName="fill-opacity"
>                  calcMode="discrete"/>
> </g>
> Trying to change this at runtime with the following code:
> canvas.getUpdateManager().getUpdateRunnableQueue().invokeLater(new Runnable() 
> {
>   public void run() {
>     for (SVGElement elm : currentlySelectedElements) {
>       elm.setAttributeNS(null, "stroke", "green");
>       Set<SVGAnimateElement> animateElements= getAnimateElements(elm);
>       for (SVGAnimateElement anim : animateElements) {
>         anim.setAttributeNS(null, "dur", "1");
>       }
>     }
>   }
> }); 
> should result in a slower blinking frequency. However the blinking frequency 
> stays the same. The stroke color is changed, however. So this seems to be a 
> problem only with SVGAnimateElements.
> See http://stackoverflow.com/questions/27439359 for more details about the 
> problem



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to