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.

 

 



chapters: intro toc intro sample svg elements toc svg elements sample


To see SVG examples in HTML you need the SVG plugin:
Adobe SVG Viewer or Corel Viewer
You can also use Batik viewer to open SVG files.




SVG Tutorials
SVG Books
SVG Graphics
MapPoint
SVG Links


Antilles Calling Card

XML Elves
XML and SVG Discussion
- Warning: x = x + 1 May Be Hazardous to Your Brain
- Open Comparability: against anti-benchmarking EULAs

| Rainbow Seeker | SVG PHP


Map Visitors Learn SVG: Contact Learn SVG
©2002-2008 Learn SVG. All Rights Reserved.
Questions and comments to: learnsvg@gmail.com