<divid=Index><divclass=IPageTitle>Index</div><divclass=INavigationBar>$#! · 0-9 ·<ahref="#A">A</a>· B ·<ahref="#C">C</a>·<ahref="#D">D</a>· E ·<ahref="#F">F</a>·<ahref="#G">G</a>· H · I · J · K ·<ahref="#L">L</a>·<ahref="#M">M</a>· N ·<ahref="#O">O</a>· P · Q ·<ahref="#R">R</a>·<ahref="#S">S</a>· T · U · V · W · X · Y · Z</div><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=IHeadingid=IFirstHeading><aname="A"></a>A</td><td></td></tr><tr><tdclass=ISymbolPrefixid=IOnlySymbolPrefix> </td><tdclass=IEntry><ahref="../files/svgcanvas-js.html#addToSelection"id=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')"class=ISymbol>addToSelection</a></td></tr><tr><tdclass=IHeading><aname="C"></a>C</td><td></td></tr><tr><tdclass=ISymbolPrefixid=IFirstSymbolPrefix> </td><tdclass=IEntry><ahref="../files/svgcanvas-js.html#clear"id=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')"class=ISymbol>clear</a></td></tr><tr><tdclass=ISymbolPrefix> </td><tdclass=IEntry><ahref="../files/svgcanvas-js.html#clearSelection"id=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')"class=ISymbol>clearSelection</a></td></tr><tr><tdclass=ISymbolPrefixid=ILastSymbolPrefix> </td><tdclass=IEntry><ahref="../files/svgcanvas-js.html#createLayer"id=link4onMouseOver="ShowTip(event, 'tt4', 'link4')"onMouseOut="HideTip('tt4')"class=ISymbol>createLayer</a></td></tr><tr><tdclass=IHeading><aname="D"></a>D</td><td></td></tr><tr><tdclass=ISymbolPrefixid=IOnlySymbolPrefix> </td><tdclass=IEntry><ahref="../files/svgcanvas-js.html#deleteCurrentLayer"id=link5onMouseOver="ShowTip(event, 'tt5', 'link5')"onMouseOut="HideTip('tt5')"class=ISymbol>deleteCurrentLayer</a></td></tr><tr><tdclass=IHeading><aname="F"></a>F</td><td></td></tr><tr><tdclass=ISymbolPrefixid=IOnlySymbolPrefix> </td><tdclass=IEntry><ahref="../files/svgcanvas-js.html#Fill_and_Stroke"class=ISymbol>Fill and Stroke</a></td></tr><tr><tdclass=IHeading><aname="G"></a>G</td><td></td></tr><tr><tdclass=ISymbolPrefixid=IFirstSymbolPrefix> </td><tdclass=IEntry><ahref="../files/svgcanvas-js.html#getCurrentLayer"id=link6onMouseOver="ShowTip(event, 'tt6', 'link6')"onMouseOut="HideTip('tt6')"class=ISymbol>getCurrentLayer</a></td></tr><tr><tdclass=ISymbolPrefix> </td><tdclass=IEntry><ahref="../files/svgcanvas-js.html#getLayer"id=link7onMouseOver="ShowTip(event, 'tt7', 'link7')"onMouseOut="HideTip('tt7')"class=ISymbol>getLayer</a></td></tr><tr><tdclass=ISymbolPrefix> </td><tdclass=IEntry><ahref="../files/svgcanvas-js.html#getLayerOpacity"id=link8onMouseOver="ShowTip(event, 'tt8', 'link8')"onMouseOut="HideTip('tt8')"class=ISymbol>getLayerOpacity</a></td></tr><tr><tdclass=ISymbolPrefix> </td><tdclass=IEntry><ahref="../files/svgcanvas-js.html#getLayerVisibility"id=link9onMouseOver="ShowTip(event, 'tt9', 'link9')"onMouseOut="HideTip('tt9')"class=ISymbol>getLayerVisibility</a></td></tr><tr><tdclass=ISymbolPrefix> </td><tdclass=IEntry><ahref="../files/svgcanvas-js.html#getNumLayers"id=link10onMouseOver="ShowTip(event, 'tt10', 'link10')"onMouseOut="HideTip('tt10')"class=ISymbol>getNumLayers</a></td></tr><tr><tdclass=ISymbolPrefixid=ILastSymbolPrefix> </td><tdclass=IEntry><ahref="../files/svgcanvas-js.html#getSvgString"id=link11onMouseOver="ShowTip(event, 'tt11', 'link11')"onMouseOut="HideTip('tt11')"class=ISymbol>getSvgString</a></td></tr><tr><tdclass=IHeading><aname="L"></a>L</td><td></td></tr><tr><tdclass=ISymbolPrefixid=IOnlySymbolPrefix> </td><tdclass=IEntry><ahref="../files/svgcanvas-js.html#Layers"class=ISymbol>Layers</a></td></tr><tr><tdclass=IHeading><aname="M"></a>M</td><td></td></tr><tr><tdclass=ISymbolPrefixid=IOnlySymbolPrefix> </td><tdclass=IEntry
<divclass=CToolTipid="tt1"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>this.addToSelection = function(</td><tdclass=PParameternowrap>elemsToAdd,</td></tr><tr><td></td><tdclass=PParameternowrap>showGrips</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Adds a list of elements to the selection. </div></div><!--END_ND_TOOLTIPS-->
<divclass=CToolTipid="tt2"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td>this.clear = function()</td></tr></table></blockquote>Clears the current document. </div></div><divclass=CToolTipid="tt3"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td>this.clearSelection = function()</td></tr></table></blockquote>Clears the selection. </div></div><divclass=CToolTipid="tt4"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>this.createLayer = function(</td><tdclass=PParameternowrap>name</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Creates a new top-level layer in the drawing with the given name, sets the current layer to it, and then clears the selection This function then calls the ‘changed’ handler. </div></div><!--END_ND_TOOLTIPS-->
<!--START_ND_TOOLTIPS-->
<divclass=CToolTipid="tt5"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td>this.deleteCurrentLayer = function()</td></tr></table></blockquote>Deletes the current layer from the drawing and then clears the selection. </div></div><!--END_ND_TOOLTIPS-->
<divclass=CToolTipid="tt6"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td>this.getCurrentLayer = function()</td></tr></table></blockquote>Returns the name of the currently selected layer. </div></div><divclass=CToolTipid="tt7"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>this.getLayer = function(</td><tdclass=PParameternowrap>i</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Returns the name of the ith layer. </div></div><divclass=CToolTipid="tt8"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>this.getLayerOpacity = function(</td><tdclass=PParameternowrap>layername</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Returns the opacity of the given layer. </div></div><divclass=CToolTipid="tt9"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>this.getLayerVisibility = function(</td><tdclass=PParameternowrap>layername</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Returns whether the layer is visible. </div></div><divclass=CToolTipid="tt10"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td>this.getNumLayers = function()</td></tr></table></blockquote>Returns the number of layers in the current drawing.</div></div><divclass=CToolTipid="tt11"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td>this.getSvgString = function()</td></tr></table></blockquote>Returns the current drawing as raw SVG XML text.</div></div><!--END_ND_TOOLTIPS-->
<divclass=CToolTipid="tt12"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>this.moveSelectedToLayer = function(</td><tdclass=PParameternowrap>layername</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Moves the selected elements to layername. </div></div><!--END_ND_TOOLTIPS-->
<divclass=CToolTipid="tt13"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>this.open = function(</td><tdclass=PParameternowrap>str</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Calls the ‘opened’ handler and sends the SVG XML text. </div></div><!--END_ND_TOOLTIPS-->
<divclass=CToolTipid="tt14"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>this.removeFromSelection = function(</td><tdclass=PParameternowrap>elemsToRemove</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Removes elements from the selection.</div></div><divclass=CToolTipid="tt15"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>this.renameCurrentLayer = function(</td><tdclass=PParameternowrap>newname</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Renames the current layer. </div></div><!--END_ND_TOOLTIPS-->
<divclass=CToolTipid="tt16"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td>this.save = function()</td></tr></table></blockquote>Serializes the current drawing into SVG XML text and returns it to the ‘saved’ handler. </div></div><divclass=CToolTipid="tt17"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>this.setCurrentLayer = function(</td><tdclass=PParameternowrap>name</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Sets the current layer. </div></div><divclass=CToolTipid="tt18"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>this.setCurrentLayerPosition = function(</td><tdclass=PParameternowrap>newpos</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Changes the position of the current layer to the new value. </div></div><divclass=CToolTipid="tt19"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>this.setLayerOpacity = function(</td><tdclass=PParameternowrap>layername,</td></tr><tr><td></td><tdclass=PParameternowrap>opacity</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Sets the opacity of the given layer. </div></div><divclass=CToolTipid="tt20"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>this.setLayerVisibility = function(</td><tdclass=PParameternowrap>layername,</td></tr><tr><td></td><tdclass=PParameternowrap>bVisible</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Sets the visibility of the layer. </div></div><divclass=CToolTipid="tt21"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>this.setSvgString = function(</td><tdclass=PParameternowrap>xmlString</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>This function sets the current drawing as the input SVG XML.</div></div><!--END_ND_TOOLTIPS-->