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
F
 Functions
G
 getNumLayers
 getSvgString
S
 save
 setSvgString
 svgcanvas.js
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.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.save = function()
Serializes the current drawing into SVG XML text and returns it to the ‘saved’ handler.
this.setSvgString = function(xmlString)
This function sets the current drawing as the input SVG XML.
Close