Group: Text edit functions Functions relating to editing text elements.
- Source:
Methods
(static) clear() → {void}
- Source:
Returns:
- Type
- void
(static) init(_inputElem) → {void}
Parameters:
Name | Type | Description |
---|---|---|
_inputElem |
Element | Not in use |
- Source:
Returns:
- Type
- void
(static) mouseDown(evt, mouseTarget, startX, startY) → {void}
Parameters:
Name | Type | Description |
---|---|---|
evt |
external:MouseEvent | |
mouseTarget |
Element | |
startX |
Float | |
startY |
Float |
- Source:
Returns:
- Type
- void
(static) mouseMove(mouseX, mouseY) → {void}
Parameters:
Name | Type | Description |
---|---|---|
mouseX |
Float | |
mouseY |
Float |
- Source:
Returns:
- Type
- void
(static) mouseUp(evt, mouseX, mouseY) → {void}
Parameters:
Name | Type | Description |
---|---|---|
evt |
external:MouseEvent | |
mouseX |
Float | |
mouseY |
Float |
- Source:
Returns:
- Type
- void
(static) select(target, x, y) → {void}
Parameters:
Name | Type | Description |
---|---|---|
target |
Element | |
x |
Float | |
y |
Float |
- Source:
Returns:
- Type
- void
(static) setCursor(index) → {void}
Parameters:
Name | Type | Description |
---|---|---|
index |
Integer |
- Source:
Returns:
- Type
- void
(static) setInputElem(elem) → {void}
Parameters:
Name | Type | Description |
---|---|---|
elem |
Element |
- Source:
Returns:
- Type
- void
(static) start(elem) → {void}
Parameters:
Name | Type | Description |
---|---|---|
elem |
Element |
- Source:
Returns:
- Type
- void
(static) toEditMode(x, y) → {void}
Parameters:
Name | Type | Description |
---|---|---|
x |
Float | |
y |
Float |
- Source:
Returns:
- Type
- void
(static) toSelectMode(selectElem) → {void}
Parameters:
Name | Type | Description |
---|---|---|
selectElem |
boolean | Element |
- Source:
Fires:
- module:svgcanvas.SvgCanvas#event:selected
Returns:
- Type
- void