chartjs-plugin-zoom / PanOptions
Interface: PanOptions
Defined in: options.ts:144
Container for pan options
Properties
enabled?
enabled?: boolean;Defined in: options.ts:148
Boolean to enable panning
mode?
mode?: ModeOption;Defined in: options.ts:159
Panning directions. Remove the appropriate direction to disable E.g. 'y' would only allow panning in the y direction A function that is called as the user is panning and returns the available directions can also be used: mode: function({ chart }) { return 'xy'; },
modifierKey?
modifierKey?: ModifierKey | null;Defined in: options.ts:164
Modifier key required for panning with mouse
onPan?
onPan?: GenericEvent;Defined in: options.ts:178
Function called while the user is panning
onPanComplete?
onPanComplete?: GenericEvent;Defined in: options.ts:183
Function called once panning is completed
onPanRejected?
onPanRejected?: RejectEvent<GestureEvent>;Defined in: options.ts:189
Function called when pan fails because modifier key was not detected. The event is the normalized gesture event that failed.
onPanStart?
onPanStart?: RejectableStartEvent<GestureEvent>;Defined in: options.ts:191
overScaleMode?
overScaleMode?: ModeOption;Defined in: options.ts:168
Deprecated
Use scaleMode instead
scaleMode?
scaleMode?: ModeOption;Defined in: options.ts:166
threshold?
threshold?: number;Defined in: options.ts:173
Minimal pan distance required before actually applying pan