Properties:
Name | Type | Description |
---|---|---|
pathActions |
module:path.pathActions | |
undoMgr |
module:history.UndoManager |
- Source:
Methods
addCommandToHistory(cmd) → {void}
Parameters:
Name | Type | Description |
---|---|---|
cmd |
Command |
- Source:
Returns:
- Type
- void
call(ev, arg) → {void}
Run the callback function associated with the given event.
Parameters:
Name | Type | Description |
---|---|---|
ev |
"changed" | "contextset" | String with the event name |
arg |
module:svgcanvas.SvgCanvas#event:changed | module:svgcanvas.SvgCanvas#event:contextset | Argument to pass through to the callback
function. If the event is "changed", a (single-item) array of |
- Source:
Returns:
- Type
- void
changeSvgContent() → {void}
- Source:
Returns:
- Type
- void
clearSelection(noCallopt) → {void}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
noCall |
boolean |
<optional> |
When |
- Source:
Returns:
- Type
- void
getCurrentDrawing() → {module:draw.Drawing}
- Source:
Returns:
- Type
- module:draw.Drawing
getCurrentGroup() → {Element}
- Source:
Returns:
- Type
- Element
getSelectedElements() → {Array.<Element>}
- Source:
Returns:
the array with selected DOM elements
- Type
- Array.<Element>
getSvgContent() → {SVGSVGElement}
- Source:
Returns:
- Type
- SVGSVGElement
setCurrentGroup(cg) → {void}
Parameters:
Name | Type | Description |
---|---|---|
cg |
Element |
- Source:
Returns:
- Type
- void