Floodfill

Floodfill painting tool.

Constructor

new Floodfill(app)

Parameters:
NameTypeDescription
appApp

The associated application.

Classes

Floodfill

Members

keydown

Handle key down event.

mousedown

Handle mouse down event.

mousemove

Handle mouse move event.

mouseout

Handle mouse out event.

mouseup

Handle mouse up event.

touchend

Handle touch end event.

touchmove

Handle touch move event.

touchstart

Handle touch start event.

Methods

activate(bool)

Activate the tool.

Parameters:
NameTypeDescription
boolboolean

The flag to activate or not.

extend(ini, end, layerGroup)

Create Floodfill in all the prev and next slices while border is found.

Parameters:
NameTypeDescription
ininumber

The first slice to extend to.

endnumber

The last slice to extend to.

layerGroupobject

The origin layer group.

getExtend() → {boolean}

Get extend option for painting border on all slices.

Returns:

The actual value of of the variable to use Floodfill on museup.

Type: 
boolean

init()

Initialise the tool.

onThresholdChange(_value)

Event fired when threshold change.

Parameters:
NameTypeDescription
_valuenumber

Current threshold.

setExtend(bool)

Set extend option for painting border on all slices.

Parameters:
NameTypeDescription
boolboolean

The option to set.

setFeatures(features)

Set the tool live features: shape colour.

Parameters:
NameTypeDescription
featuresobject

The list of features.