| A | |
| addCommandToHistory, SvgCanvas | |
| addSubCommand, SvgCanvas. | |
| addToSelection, SelectorManager | |
| apply | |
| B | |
| BatchCommand, SvgCanvas | |
| beginUndoableChange, SvgCanvas | |
| C | |
| ChangeElementCommand, SvgCanvas | |
| clear, SelectorManager | |
| clearSelection, SelectorManager | |
| createLayer, SelectorManager | |
| D | |
| deleteCurrentLayer, SelectorManager | |
| E | |
| elements | |
| F | |
| finishUndoableChange, SvgCanvas | |
| fromXml, SvgCanvas | |
| G | |
| getCurrentLayer, SelectorManager | |
| getLayer, SelectorManager | |
| getLayerOpacity, SelectorManager | |
| getLayerVisibility, SelectorManager | |
| getNextRedoCommandText, SvgCanvas. | |
| getNextUndoCommandText, SvgCanvas. | |
| getNumLayers, SelectorManager | |
| getRedoStackSize, SvgCanvas. | |
| getRubberBandBox, SelectorManager. | |
| getSvgString, SelectorManager | |
| getUndoStackSize, SvgCanvas. | |
| getVersion, SelectorManager | |
| I | |
| importSvgString, SelectorManager | |
| initGroup, SelectorManager. | |
| InsertElementCommand, SvgCanvas | |
| isEmpty, SvgCanvas. | |
| M | |
| MoveElementCommand, SvgCanvas | |
| moveSelectedToLayer, SelectorManager | |
| R | |
| redo, SvgCanvas. | |
| releaseSelector, SelectorManager. | |
| RemoveElementCommand, SvgCanvas | |
| removeFromSelection, SelectorManager | |
| renameCurrentLayer, SelectorManager | |
| requestSelector, SelectorManager. | |
| reset, Selector. | |
| resetUndoStack, SvgCanvas | |
| resize, Selector. | |
| S | |
| save, SelectorManager | |
| selectAllInCurrentLayer, SelectorManager | |
| setCurrentLayer, SelectorManager | |
| setCurrentLayerPosition, SelectorManager | |
| setForeignString(xmlString,elt) | |
| setLayerOpacity, SelectorManager | |
| setLayerVisibility, SelectorManager | |
| setSvgString, SelectorManager | |
| showGrips, Selector. | |
| T | |
| toXml, SvgCanvas | |
| U | |
| unapply | |
| undo, SvgCanvas. | |
| updateGripCursors, Selector. |
Adds a command object to the undo history stack
addCommandToHistory = c.undoCmd.add = function( cmd )
Adds a list of elements to the selection.
this.addToSelection = function( elemsToAdd, showGrips )
History command that can contain/execute multiple other commands
var BatchCommand = this.undoCmd.batch = function( text )
This function tells the canvas to remember the old values of the attrName attribute for each element sent in.
c.beginUndoableChange = function( attrName, elems )
History command to make a change to an element.
var ChangeElementCommand = this.undoCmd.changeElement = function( elem, attrs, text )
Clears the current document.
this.clear = function()
Clears the selection.
this.clearSelection = function( noCall )
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.
this.createLayer = function( name )
Deletes the current layer from the drawing and then clears the selection.
this.deleteCurrentLayer = function()
This function returns a BatchCommand object which summarizes the change since beginUndoableChange was called.
c.finishUndoableChange = function()
Converts XML entities in a string to single characters.
fromXml = function( str )
Returns the name of the currently selected layer.
this.getCurrentLayer = function()
Returns the name of the ith layer.
this.getLayer = function( i )
Returns the opacity of the given layer.
this.getLayerOpacity = function( layername )
Returns whether the layer is visible.
this.getLayerVisibility = function( layername )
Returns the number of layers in the current drawing.
this.getNumLayers = function()
Returns the current drawing as raw SVG XML text.
this.getSvgString = function()
Returns a string which describes the revision number of SvgCanvas.
this.getVersion = function()
History command for an element that was added to the DOM
var InsertElementCommand = this.undoCmd.insertElement = function( elem, text )
History command for an element that had its DOM position changed
var MoveElementCommand = this.undoCmd.moveElement = function( elem, oldNextSibling, oldParent, text )
Moves the selected elements to layername.
this.moveSelectedToLayer = function( layername )
History command for an element removed from the DOM
var RemoveElementCommand = this.undoCmd.removeElement = function( elem, parent, text )
Removes elements from the selection.
this.removeFromSelection = function( elemsToRemove )
Renames the current layer.
this.renameCurrentLayer = function( newname )
Resets the undo stack, effectively clearing the undo/redo history
resetUndoStack = function()
Serializes the current drawing into SVG XML text and returns it to the ‘saved’ handler.
this.save = function( opts )
Clears the selection, then adds all elements in the current layer to the selection.
this.selectAllInCurrentLayer = function()
Sets the current layer.
this.setCurrentLayer = function( name )
Changes the position of the current layer to the new value.
this.setCurrentLayerPosition = function( newpos )
This function sets the content of element elt to the input XML.
function setForeignString( xmlString )
Sets the opacity of the given layer.
this.setLayerOpacity = function( layername, opacity )
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 )
Converts characters in a string to XML-friendly entities.
toXml = function( str )