Classes
Members
dblclick
Handle double click event.
- Source
keydown
Handle key down event.
- Source
mousedown
Handle mouse down event.
- Source
mousemove
Handle mouse move event.
- Source
mouseout
Handle mouse out event.
- Source
touchend
Handle touch end event.
- Source
touchmove
Handle touch move event.
- Source
touchstart
Handle touch start event.
- Source
Methods
activate(bool)
Activate the tool.
Parameters:
Name | Type | Description |
---|---|---|
bool | boolean | The flag to activate or not. |
- Source
addEventListener(type, callback)
Add an event listener to this class.
Parameters:
Name | Type | Description |
---|---|---|
type | string | The event type. |
callback | function | The function associated with the provided event type, will be called with the fired event. |
- Source
getEventNames() → {Array}
Get the list of event names that this tool can fire.
- Source
Returns:
The list of event names.
- Type:
- Array
init()
Initialise the tool.
- Source
mouseup(_event)
Handle mouse up event.
Parameters:
Name | Type | Description |
---|---|---|
_event | object | The mouse up event. |
- Source
removeEventListener(type, callback)
Remove an event listener from this class.
Parameters:
Name | Type | Description |
---|---|---|
type | string | The event type. |
callback | function | The function associated with the provided event type. |
- Source
setFeatures(features)
Set the tool live features: shape colour.
Parameters:
Name | Type | Description |
---|---|---|
features | object | The list of features. |
- Source