Classes
Members
keydown
Handle key down event.
- Source
mousedown
Handle mouse down event.
- Source
mousemove
Handle mouse move event.
- Source
mouseout
Handle mouse out event.
- Source
mouseup
Handle mouse up 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.
Name | Type | Description |
---|---|---|
bool | boolean | The flag to activate or not. |
- Source
addEventListener(type, callback)
Add an event listener to this class.
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
extend(ini, end, layerGroup)
Create Floodfill in all the prev and next slices while border is found.
Name | Type | Description |
---|---|---|
ini | number | The first slice to extend to. |
end | number | The last slice to extend to. |
layerGroup | object | The origin layer group. |
- Source
getEventNames() → {Array}
Get the list of event names that this tool can fire.
- Source
The list of event names.
- Type:
- Array
getExtend() → {boolean}
Get extend option for painting border on all slices.
- Source
The actual value of of the variable to use Floodfill on museup.
- Type:
- boolean
init()
Initialise the tool.
- Source
onThresholdChange(_value)
Event fired when threshold change.
Name | Type | Description |
---|---|---|
_value | number | Current threshold. |
- Source
removeEventListener(type, callback)
Remove an event listener from this class.
Name | Type | Description |
---|---|---|
type | string | The event type. |
callback | function | The function associated with the provided event type. |
- Source
setExtend(bool)
Set extend option for painting border on all slices.
Name | Type | Description |
---|---|---|
bool | boolean | The option to set. |
- Source
setFeatures(features)
Set the tool live features: shape colour.
Name | Type | Description |
---|---|---|
features | object | The list of features. |
- Source