cool.
I can confirm that some of the <use /> SMIL animation examples already work.
F.e. Antoine Quints jumping cubes:
http://www.carto.net/papers/svg/samples/jumping_cubes.svg
Andreas
Cameron McCormack wrote:
Hi Andreas.
Andreas Neumann:
No, I mean […]
This example now works with the code in SVN:
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<svg id="s" viewBox="0 0 100 100">
<circle cx="0" cy="0" r="100"/>
</svg>
</defs>
<use xlink:href="#s" width="100" height="100">
<animate attributeName="width" dur="5s" from="0" to="100"/>
</use>
</svg>
This too:
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" font-size="20">
<defs>
<circle id="c" cx="0" cy="0" r="100" fill="blue" opacity="0.5">
<animate id="a" attributeName="r" dur="5s" from="0" to="50"
fill="freeze"/>
</circle>
</defs>
<use xlink:href="#c" x="100" y="100"/>
<use xlink:href="#c" x="200" y="100"/>
<use xlink:href="#c" x="150" y="150"/>
<text x="150" y="141" fill="white" display="none"
text-anchor="middle">
<set attributeName="display" begin="a.end" to="inline"/>
a.end
</text>
</svg>
This definitely doesn’t work at the moment:
<defs>
<g id="g"/>
</defs>
<use xlink:href="#g"/>
<animate xlink:href="#g" …/>
This is because internally used elements are handled by cloning the
subtree. The first other example works only because the 'animate'
element gets cloned along with it. At some point 'use' will have to be
re-engineered to handle this (and also implement the .instanceRoot and
.animatedInstanceRoot attributes).
Cameron
--
----------------------------------------------
Andreas Neumann
Institute of Cartography
ETH Zurich
Wolfgang-Paulistrasse 15
CH-8093 Zurich, Switzerland
Phone: ++41-44-633 3031, Fax: ++41-44-633 1153
e-mail: [EMAIL PROTECTED]
www: http://www.carto.net/neumann/
SVG.Open: http://www.svgopen.org/
Carto.net: http://www.carto.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]