Function Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
C
 createLayer
D
 deleteCurrentLayer
G
 getCurrentLayer
 getLayer
 getLayerVisibility
 getNumLayers
 getSvgString
M
 moveSelectedToLayer
R
 renameCurrentLayer
S
 save
 setCurrentLayer
 setCurrentLayerPosition
 setLayerVisibility
 setSvgString
this.createLayer = function(name)
This function clears the selection and then creates a new top-level layer in the drawing with the given name and sets the current layer to it.
this.deleteCurrentLayer = function()
This function clears the selection and then deletes the current layer from the drawing.
this.getCurrentLayer = function()
This function returns the name of the currently selected layer.
this.getLayer = function(i)
This function returns the name of the ith layer.
this.getLayerVisibility = function(layername)
This function returns whether the layer is visible.
this.getNumLayers = function()
This function returns the number of layers in the current drawing.
this.getSvgString = function()
Returns the current drawing as raw SVG XML text.
this.moveSelectedToLayer = function(layername)
This function moves the selected elements to layername.
this.renameCurrentLayer = function(newname)
This function renames the current layer.
this.save = function()
Serializes the current drawing into SVG XML text and returns it to the ‘saved’ handler.
this.setCurrentLayer = function(name)
This function sets the current layer.
this.setCurrentLayerPosition = function(newpos)
This function changes the position of the current layer to the new value.
this.setLayerVisibility = function(layername,
bVisible)
This function sets the visibility of the layer.
this.setSvgString = function(xmlString)
This function sets the current drawing as the input SVG XML.
Close