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:1445

Properties

altDown

altDown: boolean

Source

graphics/graphics.ts:1439


button

button: number

Source

graphics/graphics.ts:1437


ctrlDown

ctrlDown: boolean

Source

graphics/graphics.ts:1440


leftButtonDown

leftButtonDown: boolean

Source

graphics/graphics.ts:1442


modDown

modDown: boolean

Source

graphics/graphics.ts:1441


shiftDown

shiftDown: boolean

Source

graphics/graphics.ts:1438


touchDistance

touchDistance: number

Source

graphics/graphics.ts:1443


x

x: number

X-position in CCS (Canvas coord-system)

Source

graphics/graphics.ts:1430


y

y: number

Y-position in CCS (Canvas coord-system)

Source

graphics/graphics.ts:1435