Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions types/options.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Chart, Color, Point } from 'chart.js';


type Mode = 'x' | 'y' | 'xy';
type Key = 'ctrl' | 'alt' | 'shift' | 'meta';

export interface DragEffectOptions {
borderColor?: Color;
Expand Down Expand Up @@ -48,6 +49,11 @@ export interface ZoomOptions {
*/
threshold?: number;

/**
* Modifier key required for zooming with mouse
*/
wheelModifierKey?: Key;

/**
* Function called while the user is zooming
*/
Expand Down Expand Up @@ -87,6 +93,11 @@ export interface PanOptions {
*/
mode?: Mode | { (char: Chart): Mode };

/**
* Modifier key required for panning with mouse
*/
modifierKey?: Key;

overScaleMode?: Mode | { (char: Chart): Mode };

/**
Expand Down