Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.7
-
None
-
None
Description
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)
}
}
});
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