chartjs-plugin-zoom / GestureEvent
Interface: GestureEvent
Defined in: gestures.ts:13
Normalized gesture event handed to the pan/zoom callbacks. Replaces the former Hammer.js event object; it carries only the fields the plugin consumes, all derived from native PointerEvents.
Properties
center
center: object;Defined in: gestures.ts:15
Gesture centroid in client coordinates (midpoint of the active pointers).
x
x: number;y
y: number;deltaX
deltaX: number;Defined in: gestures.ts:17
Cumulative pan offset in pixels since the gesture started.
deltaY
deltaY: number;Defined in: gestures.ts:18
distance
distance: number;Defined in: gestures.ts:20
Straight-line distance the gesture has travelled since it started, in pixels.
pointers
pointers: object[];Defined in: gestures.ts:24
The active pointers, in client coordinates.
clientX
clientX: number;clientY
clientY: number;pointerType
pointerType: string;Defined in: gestures.ts:30
Pointer device type: mouse, touch or pen.
scale
scale: number;Defined in: gestures.ts:22
Cumulative pinch scale relative to the gesture start (1 = unchanged).
srcEvent
srcEvent: PointerEvent;Defined in: gestures.ts:28
The native pointer event that produced this gesture event.
target
target: HTMLElement;Defined in: gestures.ts:26
The canvas the gesture is bound to.