Skip to content

Interface: CanvasEventMap ​

Defined in: types/desktop-engine.d.ts:1352

Canvas event map

Extends ​

Properties ​

click ​

ts
click: MousePayload;

Defined in: types/desktop-engine.d.ts:488

A click of the primary button

Inherited from ​

ComponentEventMap.click


contextlost ​

ts
contextlost: ContextLostPayload;

Defined in: types/desktop-engine.d.ts:1360

The same for a 2D context


dblclick ​

ts
dblclick: MousePayload;

Defined in: types/desktop-engine.d.ts:490

A double click of the primary button

Inherited from ​

ComponentEventMap.dblclick


framechange ​

ts
framechange: FrameChangePayload;

Defined in: types/desktop-engine.d.ts:486

Layout frame changed

Inherited from ​

ComponentEventMap.framechange


mousedown ​

ts
mousedown: MousePayload;

Defined in: types/desktop-engine.d.ts:492

A mouse button pressed: any button, see button

Inherited from ​

ComponentEventMap.mousedown


mouseenter ​

ts
mouseenter: MousePayload;

Defined in: types/desktop-engine.d.ts:496

Mouse entered

Inherited from ​

ComponentEventMap.mouseenter


mouseleave ​

ts
mouseleave: MousePayload;

Defined in: types/desktop-engine.d.ts:498

Mouse exited

Inherited from ​

ComponentEventMap.mouseleave


mousemove ​

ts
mousemove: MousePayload;

Defined in: types/desktop-engine.d.ts:500

Mouse moved

Inherited from ​

ComponentEventMap.mousemove


mouseup ​

ts
mouseup: MousePayload;

Defined in: types/desktop-engine.d.ts:494

A mouse button released: any button, see button

Inherited from ​

ComponentEventMap.mouseup


webglcontextlost ​

ts
webglcontextlost: ContextLostPayload;

Defined in: types/desktop-engine.d.ts:1358

The GPU stopped the work of the canvas' WebGL context (it took too long, e.g. a huge draw or a shader that loops for long, or it failed): the context is lost for good and nothing drawn shows any more, the canvas keeps what it last showed. Doesn't happen to content that stays within what the GPU can do in a frame


wheel ​

ts
wheel: WheelPayload;

Defined in: types/desktop-engine.d.ts:502

Scroll wheel, see WheelPayload for which windows get it

Inherited from ​

ComponentEventMap.wheel

The SDK is released under the Apache License 2.0