File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
import type { Chart , Color , Point } from 'chart.js'
2
- import type { PanAmount , ZoomAmount } from './types'
3
2
4
3
export type Mode = 'x' | 'y' | 'xy'
5
4
export type ModeFn = ( context : { chart : Chart } ) => Mode
@@ -122,7 +121,7 @@ export interface ZoomOptions {
122
121
/**
123
122
* Function called while the user is zooming
124
123
*/
125
- onZoom ?: ( context : { chart : Chart ; trigger : ZoomTrigger ; amount ?: ZoomAmount } ) => void
124
+ onZoom ?: ( context : { chart : Chart ; trigger : ZoomTrigger ; amount ?: { x : number , y : number } } ) => void
126
125
127
126
/**
128
127
* Function called once zooming is completed
@@ -174,7 +173,7 @@ export interface PanOptions {
174
173
/**
175
174
* Function called while the user is panning
176
175
*/
177
- onPan ?: ( context : { chart : Chart ; trigger : PanTrigger ; delta : PanAmount } ) => void
176
+ onPan ?: ( context : { chart : Chart ; trigger : PanTrigger ; delta : { x : number , y : number } } ) => void
178
177
179
178
/**
180
179
* Function called once panning is completed
You can’t perform that action at this time.
0 commit comments