ASV6 : Using RCC to define and use new attribute
We define new attribute level as integer, when
level is equal to currentScale, object is visible, in other case not.
Function redraw() give value to visibility attribute function of currentScale
for each element of group.
This function is also called on zoom.
Code used for this element in svg
<extensionDefs namespace="http://www.example.com/subelements">
<elementDef name="bar">
<prototype>
<refContent/>
</prototype>
<script type="text/ecmascript" ev:event="SVGBindBegin">
<![CDATA[
redraw(evt,true)
]]></script>
</elementDef>
</extensionDefs>
Syntax for regularPolygon element
<pi:level>
objects with new attribute "level"
</pi:level>
See example about Von Koch curve.