[ type ] ShapeEvent

Description:

Shape event received by the onShapeEvents() and Window.onShapeEvents() handler callback.

Type: Object

Properties:

Name Type Description

target

object

The Panel component that triggered the event.

type

string

One of add, remove, click, mousedown, mouseup, mouseenter, mouseleave.

[x]

number

X position of the pointer relative to the target component.

[y]

number

Y position of the pointer relative to the target component.

shapeIndex

number

Index of the shape that triggered the event.

[dragging]

boolean

true if mouse is down while moving, otherwise false.

[alt]

boolean

true if Alt key was pressed on keyboard when event was emitted.

[shift]

boolean

true if Shift key was pressed on keyboard when event was emitted.

[ctrl]

boolean

true if Control key was pressed on keyboard when event was emitted.

[modifiers]

string

Modifiers used when the event was emitted.

[modifiersText]

string

Description of used modifiers.

Also See: