Skip to content

chartjs-plugin-zoom / PanOptions

Interface: PanOptions ​

Defined in: options.ts:144

Container for pan options

Properties ​

enabled? ​

ts
enabled?: boolean;

Defined in: options.ts:148

Boolean to enable panning


mode? ​

ts
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? ​

ts
modifierKey?: ModifierKey | null;

Defined in: options.ts:164

Modifier key required for panning with mouse


onPan? ​

ts
onPan?: GenericEvent;

Defined in: options.ts:178

Function called while the user is panning


onPanComplete? ​

ts
onPanComplete?: GenericEvent;

Defined in: options.ts:183

Function called once panning is completed


onPanRejected? ​

ts
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? ​

ts
onPanStart?: RejectableStartEvent<GestureEvent>;

Defined in: options.ts:191


overScaleMode? ​

ts
overScaleMode?: ModeOption;

Defined in: options.ts:168

Deprecated ​

Use scaleMode instead


scaleMode? ​

ts
scaleMode?: ModeOption;

Defined in: options.ts:166


threshold? ​

ts
threshold?: number;

Defined in: options.ts:173

Minimal pan distance required before actually applying pan

MIT Licensed