@inweb/viewer-core
Version:
3D CAD and BIM data Viewer core
78 lines (77 loc) • 1.75 kB
TypeScript
export declare const CanvasEvents: string[];
export declare const CANVAS_EVENTS: string[];
/**
* Canvas Events.
*
* @event
*/
export interface CanvasEventMap {
/**
* Event that fires on mouse click.
*/
click: MouseEvent;
/**
* Event that fires when the user attempts to open a context menu.
*/
contextmenu: PointerEvent;
/**
* Event that fires on mouse double click.
*/
dblclick: MouseEvent;
/**
* Event that fires on mouse button is down.
*/
mousedown: MouseEvent;
/**
* Event that fires on mouse leave.
*/
mouseleave: MouseEvent;
/**
* Event that fires on mouse move.
*/
mousemove: MouseEvent;
/**
* Event that fires on mouse button is up.
*/
mouseup: MouseEvent;
/**
* Event is fired when the browser determines that there are unlikely to be any more pointer events.
*/
pointercancel: PointerEvent;
/**
* Event that fires on mouse button is down.
*/
pointerdown: PointerEvent;
/**
* Event that fires on mouse leave.
*/
pointerleave: PointerEvent;
/**
* Event that fires on mouse move.
*/
pointermove: PointerEvent;
/**
* Event that fires on mouse button is up.
*/
pointerup: PointerEvent;
/**
* Event that fires touch is canceled.
*/
touchcancel: TouchEvent;
/**
* Event that fires touch is ended.
*/
touchend: TouchEvent;
/**
* Event that fires touch is moving.
*/
touchmove: TouchEvent;
/**
* Event that fires when touch is started.
*/
touchstart: TouchEvent;
/**
* Event that fires when mouse wheel is moving.
*/
wheel: MouseEvent;
}