@@ -12,16 +12,16 @@ declare module 'chart.js' {
1212 }
1313 // eslint-disable-next-line @typescript-eslint/no-unused-vars
1414 interface Chart < TType extends keyof ChartTypeRegistry = keyof ChartTypeRegistry , TData = DistributiveArray < ChartTypeRegistry [ TType ] [ 'defaultDataPoint' ] > , TLabel = unknown > {
15+ pan ( pan : PanAmount , options ?: Partial < PanOptions > , scales ?: Scale [ ] ) : void ;
16+ zoom ( zoom : ZoomAmount , options ?: Partial < ZoomOptions > , useTransition ?: boolean ) : void ;
1517 resetZoom ( ) : void ;
16- pan ( pan : PanAmount , options ?: Partial < PanOptions > , scales ?: Scale [ ] ) ;
17- zoom ( zoom : ZoomAmount , options ?: Partial < ZoomOptions > , useTransition ?: boolean ) ;
1818 }
1919}
2020
2121declare const Zoom : Plugin ;
2222
2323export default Zoom ;
2424
25- export function doPan ( chart : Chart , pan : PanAmount , options ?: Partial < PanOptions > , scales ?: Scale [ ] ) ;
26- export function doZoom ( chart : Chart , zoom : ZoomAmount , options ?: Partial < ZoomOptions > , useTransition ?: boolean ) ;
27- export function resetZoom ( chart : Chart ) ;
25+ export function doPan ( chart : Chart , pan : PanAmount , options ?: Partial < PanOptions > , scales ?: Scale [ ] ) : void ;
26+ export function doZoom ( chart : Chart , zoom : ZoomAmount , options ?: Partial < ZoomOptions > , useTransition ?: boolean ) : void ;
27+ export function resetZoom ( chart : Chart ) : void ;
0 commit comments