DWVv0.37.0

Floodfill

Source: floodfill.js:15

Floodfill painting tool.


Constructor

new Floodfill(app: App): Floodfill

Parameters

  • app (App) — The associated application.

Instance Methods

activate(bool: boolean)

Activate the tool.

Parameters

  • bool (boolean) — The flag to activate or not.

init()

Initialise the tool.

setFeatures(features: object)

Set the tool live features: shape colour.

Parameters

  • features (object) — The list of features.

Instance Fields

keydown

Handle key down event.

Parameters

  • event (object) — The key down event.