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.createLayer = function( name )
This function clears the selection and then deletes the current layer from the drawing.
this.deleteCurrentLayer = function()
This function returns the name of the currently selected layer.
this.getCurrentLayer = function()
This function returns the name of the ith layer.
this.getLayer = function( i )
This function returns whether the layer is visible.
this.getLayerVisibility = function( layername )
This function returns the number of layers in the current drawing.
this.getNumLayers = function()
Returns the current drawing as raw SVG XML text.
this.getSvgString = function()
This function moves the selected elements to layername.
this.moveSelectedToLayer = function( layername )
This function renames the current layer.
this.renameCurrentLayer = function( newname )
Serializes the current drawing into SVG XML text and returns it to the ‘saved’ handler.
this.save = function()
This function sets the current layer.
this.setCurrentLayer = function( name )
This function changes the position of the current layer to the new value.
this.setCurrentLayerPosition = function( newpos )
This function sets the visibility of the layer.
this.setLayerVisibility = function( layername, bVisible )
This function sets the current drawing as the input SVG XML.
this.setSvgString = function( xmlString )