@mocanvas/editor · interface

TLPointerInfo

interface TLPointerInfo

What getPointerInfo reads off a pointer event.


Properties · 9

accelKey: boolean

metaKey on Apple platforms, ctrlKey elsewhere.

altKey: boolean
button: number
ctrlKey: boolean
isPen: boolean

Whether the event came from a pen rather than a mouse or a finger.

metaKey: boolean
point: VecModel

Position relative to the element the event was read against.

pointerId: number
shiftKey: boolean

Mentioned here

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.