Skip to content

ISpriteEvents

Type interface

Sources

ISpriteEvents is an interface: it describes a shape of data and is not imported on its own.

Inheritance

ISpriteEvents extends IEntityEvents.

ISpriteEvents is extended by IContainerEvents, IGraphicsEvents, IPictureEvents.

Properties

blur

Type { originalEvent: FocusEvent, target: Sprite }

Invoked when element loses focus.

boundschanged

Type object

The element's bounds changed.

click

Type ISpritePointerEvent

The element was clicked or tapped. A press and release more than 5 pixels apart is not a click.

dataitemchanged

Type { newDataItem: DataItem | undefined, oldDataItem: DataItem | undefined }

The element's data item changed.

dblclick

Type ISpritePointerEvent

The element was double-clicked or double-tapped. Also dispatched on its parents.

dragged

Type ISpritePointerEvent

The element moved while being dragged.

dragstart

Type ISpritePointerEvent

Dragging of the element started: the pointer moved more than 5 pixels after pressing on it.

dragstop

Type ISpritePointerEvent

Dragging of the element stopped.

focus

Type { originalEvent: FocusEvent, target: Sprite }

Invoked when element gains focus.

globalpointerdown

Type ISpritePointerEvent

A pointer button was pressed, or a touch started, anywhere in the window, even outside the chart.

globalpointermove

Type ISpritePointerEvent

The pointer moved anywhere in the window, even outside the chart.

globalpointerup

Type ISpritePointerEvent

A pointer button was released, or a touch ended, anywhere in the window, even outside the chart.

middleclick

Type ISpritePointerEvent

The element was clicked with the middle mouse button.

pointerdown

Type ISpritePointerEvent

A pointer button was pressed, or a touch started, over the element. Also dispatched on its parents.

pointerout

Type ISpritePointerEvent

The pointer left the element.

pointerover

Type ISpritePointerEvent

The pointer moved over the element.

pointerup

Type ISpritePointerEvent

A pointer button was released, or a touch ended, over the element.

positionchanged

Type object

The element's position changed.

rightclick

Type ISpritePointerEvent

The element was clicked with the right mouse button.

wheel

Type { originalEvent: WheelEvent, point: IPoint }

The mouse wheel turned while the pointer was over the element. Also dispatched on its parents.