Skip to content

Commit

Permalink
allow all html event names in CoreChartOptions.events
Browse files Browse the repository at this point in the history
  • Loading branch information
jmorel committed Feb 9, 2022
1 parent 0a40d30 commit 35cad3f
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions types/index.esm.d.ts
Expand Up @@ -1492,27 +1492,7 @@ 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' |
'mouseenter' |
'mouseleave' |
'mousedown' |
'mouseup' |
'click' |
'dblclick' |
'mouseover' |
'contextmenu' |
'touchstart' |
'touchmove' |
'touchend' |
'pointerenter' |
'pointerdown' |
'pointermove' |
'pointerup' |
'pointerleave' |
'pointerout'
)[];
events: (keyof HTMLElementEventMap)[]

/**
* 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 35cad3f

Please sign in to comment.