Skip to content

CanvasPointerEvent

CanvasPointerEvent

Constructors

new CanvasPointerEvent()

new CanvasPointerEvent(x, y, e): CanvasPointerEvent

Parameters

x: number

y: number

e

e.altKey: boolean

e.button: number

e.ctrlKey: boolean

e.metaKey: boolean

e.shiftKey: boolean

e.touchDistance?: number

Returns

CanvasPointerEvent

Source

graphics/graphics.ts:1407

Properties

ModDown

ModDown: boolean

Source

graphics/graphics.ts:1403


altDown

altDown: boolean

Source

graphics/graphics.ts:1401


button

button: number

Source

graphics/graphics.ts:1399


ctrlDown

ctrlDown: boolean

Source

graphics/graphics.ts:1402


leftButtonDown

leftButtonDown: boolean

Source

graphics/graphics.ts:1404


shiftDown

shiftDown: boolean

Source

graphics/graphics.ts:1400


touchDistance

touchDistance: number

Source

graphics/graphics.ts:1405


x

x: number

X-position in CCS (Canvas coord-system)

Source

graphics/graphics.ts:1392


y

y: number

Y-position in CCS (Canvas coord-system)

Source

graphics/graphics.ts:1397