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="">
    <elementDef name="bar">
<script type="text/ecmascript" ev:event="SVGBindBegin">

Syntax for regularPolygon element

  objects with new attribute "level"

See example about Von Koch curve.