From: Evert Timberg Date: Thu, 1 Jul 2021 13:37:49 +0000 (-0400) Subject: Update types with more possible events (#9336) X-Git-Tag: v3.4.1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f58c1f8e03ebcbca8e5c7d06932ded3687d9bdf;p=thirdparty%2FChart.js.git Update types with more possible events (#9336) --- diff --git a/types/index.esm.d.ts b/types/index.esm.d.ts index 235670cd8..e56376fae 100644 --- a/types/index.esm.d.ts +++ b/types/index.esm.d.ts @@ -1436,7 +1436,20 @@ export interface CoreChartOptions 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.