Skip to content

Commit b1876a4

Browse files
authored
Add missing mouse events to CoreChartOptions.events type (#10124)
* add missing mouse events to CoreChartOptions.events type * allow all html event names in CoreChartOptions.events
1 parent 7d3a1b8 commit b1876a4

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

types/index.esm.d.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,20 +1493,7 @@ export interface CoreChartOptions<TType extends ChartType> extends ParsingOption
14931493
* The events option defines the browser events that the chart should listen to for tooltips and hovering.
14941494
* @default ['mousemove', 'mouseout', 'click', 'touchstart', 'touchmove']
14951495
*/
1496-
events: (
1497-
'mousemove' |
1498-
'mouseout' |
1499-
'click' |
1500-
'touchstart' |
1501-
'touchmove' |
1502-
'touchend' |
1503-
'pointerenter' |
1504-
'pointerdown' |
1505-
'pointermove' |
1506-
'pointerup' |
1507-
'pointerleave' |
1508-
'pointerout'
1509-
)[];
1496+
events: (keyof HTMLElementEventMap)[]
15101497

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

0 commit comments

Comments
 (0)