Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update types with more possible events #9336

Merged
merged 1 commit into from Jul 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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