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.
Parameters:
Name | Type | Description |
---|---|---|
bool | boolean | The flag to activate or not. |
- Source
extend(ini, end, layerGroup)
Create Floodfill in all the prev and next slices while border is found.
Parameters:
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
getExtend() → {boolean}
Get extend option for painting border on all slices.
- Source
Returns:
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.
Parameters:
Name | Type | Description |
---|---|---|
_value | number | Current threshold. |
- Source
setExtend(bool)
Set extend option for painting border on all slices.
Parameters:
Name | Type | Description |
---|---|---|
bool | boolean | The option to set. |
- Source
setFeatures(features)
Set the tool live features: shape colour.
Parameters:
Name | Type | Description |
---|---|---|
features | object | The list of features. |
- Source