You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/options.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,7 @@ const chart = new Chart('id', {
45
45
| `onPan` | `{chart}` | Called while the chart is being panned
46
46
| `onPanComplete` | `{chart}` | Called once panning is completed
47
47
| `onPanRejected` | `{chart,event}` | Called when panning is rejected due to missing modifier key. `event` is the a [hammer event](https://hammerjs.github.io/api#event-object) that failed
48
+
| `onPanStart` | `{chart,event,point}` | Called when panning is about to start. If this callback returns false, panning is aborted and `onPanRejected` is invoked
48
49
49
50
## Zoom
50
51
@@ -67,6 +68,7 @@ const chart = new Chart('id', {
67
68
| `onZoom` | `{chart}` | Called while the chart is being zoomed
68
69
| `onZoomComplete` | `{chart}` | Called once zooming is completed
69
70
| `onZoomRejected` | `{chart,event}` | Called when zoom is rejected due to missing modifier key. `event` is the a [hammer event](https://hammerjs.github.io/api#event-object) that failed
71
+
| `onZoomStart` | `{chart,event,point}` | Called when zooming is about to start. If this callback returns false, zooming is aborted and `onZoomRejected` is invoked
0 commit comments