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

A |
| addCommandToHistory, SvgCanvas
| addExtension, SelectorManager
| addSubCommand, SvgCanvas.BatchCommand
| addSvgElementFromJson, SelectorManager
| addToSelection, SelectorManager
| alignSelectedElements, SelectorManager
| apply SvgCanvas.BatchCommand SvgCanvas.ChangeElementCommand SvgCanvas.InsertElementCommand SvgCanvas.RemoveElementCommand
| assignAttributes, SelectorManager
B |
| BatchCommand, SvgCanvas
| beginUndoableChange, SvgCanvas
| bind, SelectorManager
C |
| ChangeElementCommand, SvgCanvas
| changeSelectedAttribute, SelectorManager
| changeSelectedAttributeNoUndo, SelectorManager
| cleanupElement, SelectorManager
| clear, SelectorManager
| clearSelection, SelectorManager
| cloneSelectedElements, SelectorManager
| convertToNum, SvgCanvas
| convertToPath, SelectorManager
| convertToXMLReferences, SvgCanvas.Utils
| copyElem, SelectorManager
| createLayer, SelectorManager
| cycleElement, SelectorManager
D |
| decode64, SvgCanvas.Utils
| deleteCurrentLayer, SelectorManager
| deleteSelectedElements, SelectorManager
E |
| elements SvgCanvas.BatchCommand SvgCanvas.ChangeElementCommand SvgCanvas.InsertElementCommand SvgCanvas.MoveElementCommand SvgCanvas.RemoveElementCommand
| embedImage, SelectorManager
| encode64, SvgCanvas.Utils
F |
| ffClone, SelectorManager
| findDefs, SelectorManager
| findDuplicateGradient, SelectorManager
| finishUndoableChange, SvgCanvas
| fromXml, SvgCanvas.Utils

> addCommandToHistory = c.undoCmd.add = function( | cmd | )

Adds a command object to the undo history stack

> this.addExtension = function( | name,
> | ext_func | )

Add an extension to the editor
Adds a given command to the history stack

> var addSvgElementFromJson = this.addSvgElementFromJson = function( | data | )

Create a new SVG element based on the given object keys/values and add it to the current layer The element will be ran through cleanupElement before being returned

> var addToSelection = this.addToSelection = function( | elemsToAdd,
> | showGrips | )

Adds a list of elements to the selection.

> this.alignSelectedElements = function( | type,
> | relative_to | )

Aligns selected elements
Runs “apply” on all subcommands
Performs the stored change action
Re-Inserts the new element
Re-removes the new element

> var assignAttributes = this.assignAttributes = function( | node,
> | attrs,
> | suspendLength,
> | unitCheck | )

Assigns multiple attributes to an element.

> var BatchCommand = this.undoCmd.batch = function( | text | )

History command that can contain/execute multiple other commands

> c.beginUndoableChange = function( | attrName,
> | elems | )

This function tells the canvas to remember the old values of the attrName attribute for each element sent in.

> c.bind = function( | event,
> | f | )

Attaches a callback function to an event

> var ChangeElementCommand = this.undoCmd.changeElement = function( | elem,
> | attrs,
> | text | )

History command to make a change to an element.

> var changeSelectedAttribute = this.changeSelectedAttribute = function( | attr,
> | val,
> | elems | )

Change the given/selected element and add the original value to the history stack If you want to change all selectedElements, ignore the elems argument.

> var changeSelectedAttributeNoUndo = function( | attr,
> | newValue,
> | elems | )

This function makes the changes to the elements.

> var cleanupElement = this.cleanupElement = function( | element | )

Remove unneeded (default) attributes, makes resulting SVG smaller

> this.clear = function()

Clears the current document.

> var clearSelection = this.clearSelection = function( | noCall | )

Clears the selection.

> this.cloneSelectedElements = function()

Create deep DOM copies (clones) of all selected elements and move them slightly from their originals

> convertToNum = function( | attr,
> | val | )

Converts given values to numbers.

> this.convertToPath = function( | elem,
> | getBBox | )

Convert selected element to a path, or get the BBox of an element-as-path
Converts a string to use XML references

> var copyElem = function( | el | )

Create a clone of an element, updating its ID and its children’s IDs when needed

> this.createLayer = function( | name | )

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.cycleElement = function( | next | )

Select the next/previous element within the current layer
Converts a string from base64

> this.deleteCurrentLayer = function()

Deletes the current layer from the drawing and then clears the selection.

> this.deleteSelectedElements = function()

Removes all selected elements from the DOM and adds the change to the history stack
Iterate through all our subcommands and returns all the elements we are changing
Returns array with element associated with this command
Returns array with element associated with this command
Returns array with element associated with this command
Returns array with element associated with this command

> this.embedImage = function( | val,
> | callback | )

Converts a given image file to a data URL when possible, then runs a given callback
Converts a string to base64

> var ffClone = function( | elem | )

Hack for Firefox bugs where text element features aren’t updated.

> var findDefs = function()

Return the document’s defs element, create it first if necessary

> var findDuplicateGradient = function( | grad | )

Check if exact gradient already exists

> c.finishUndoableChange = function()

This function returns a BatchCommand object which summarizes the change since beginUndoableChange was called.
Converts XML entities in a string to single characters.
Close