Properties:
| Name | Type | Description |
|---|---|---|
pathActions |
module:path.pathActions | |
elData |
external:jQuery.data | |
undoMgr |
module:history.UndoManager |
Methods
addCommandToHistory(cmd) → {void}
Parameters:
| Name | Type | Description |
|---|---|---|
cmd |
Command |
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 |
Returns:
- Type
- void
changeSVGContent() → {void}
Returns:
- Type
- void
clearSelection(noCallopt) → {void}
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
noCall |
boolean |
<optional> |
When |
Returns:
- Type
- void
getCurrentDrawing() → {module:draw.Drawing}
Returns:
- Type
- module:draw.Drawing
getCurrentGroup() → {Element}
Returns:
- Type
- Element
getSelectedElements() → {Array.<Element>}
Returns:
the array with selected DOM elements
- Type
- Array.<Element>
getSVGContent() → {SVGSVGElement}
Returns:
- Type
- SVGSVGElement
setCurrentGroup(cg) → {void}
Parameters:
| Name | Type | Description |
|---|---|---|
cg |
Element |
Returns:
- Type
- void