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

Properties

altDown

altDown: boolean

Source

graphics/graphics.ts:1445


button

button: number

Source

graphics/graphics.ts:1443


ctrlDown

ctrlDown: boolean

Source

graphics/graphics.ts:1446


leftButtonDown

leftButtonDown: boolean

Source

graphics/graphics.ts:1448


modDown

modDown: boolean

Source

graphics/graphics.ts:1447


shiftDown

shiftDown: boolean

Source

graphics/graphics.ts:1444


touchDistance

touchDistance: number

Source

graphics/graphics.ts:1449


x

x: number

X-position in CCS (Canvas coord-system)

Source

graphics/graphics.ts:1436


y

y: number

Y-position in CCS (Canvas coord-system)

Source

graphics/graphics.ts:1441