-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
30 lines (29 loc) · 777 Bytes
/
index.d.ts
File metadata and controls
30 lines (29 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import "chart.js";
declare module "chart.js" {
interface PluginOptionsByType<TType extends ChartType> {
crosshair?: {
line?: {
color?: string;
width?: number;
};
sync?: {
enabled?: boolean;
group?: string;
suppressTooltips?: boolean;
};
zoom?: {
enabled?: boolean;
zoomboxBackgroundColor?: string;
zoomboxBorderColor?: string;
};
snap?: {
enabled?: boolean;
};
callbacks?: {
beforeZoom?: (start: { x: number; y: number }, end: { x: number; y: number }) => boolean;
afterZoom?: (start: { x: number; y: number }, end: { x: number; y: number }) => void;
afterDraw?:(chart:Chart) => void;
};
};
}
}