Skip to content

Commit

Permalink
Update types with more possible events (#9336)
Browse files Browse the repository at this point in the history
  • Loading branch information
etimberg committed Jul 1, 2021
1 parent 760fcff commit 5f58c1f
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion types/index.esm.d.ts
Expand Up @@ -1436,7 +1436,20 @@ export interface CoreChartOptions<TType extends ChartType> extends ParsingOption
* The events option defines the browser events that the chart should listen to for tooltips and hovering.
* @default ['mousemove', 'mouseout', 'click', 'touchstart', 'touchmove']
*/
events: ('mousemove' | 'mouseout' | 'click' | 'touchstart' | 'touchmove')[];
events: (
'mousemove' |
'mouseout' |
'click' |
'touchstart' |
'touchmove' |
'touchend' |
'pointerenter' |
'pointerdown' |
'pointermove' |
'pointerup' |
'pointerleave' |
'pointerout'
)[];

/**
* Called when any of the events fire. Passed the event, an array of active elements (bars, points, etc), and the chart.
Expand Down

0 comments on commit 5f58c1f

Please sign in to comment.