]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Update types with more possible events (#9336)
authorEvert Timberg <evert.timberg+github@gmail.com>
Thu, 1 Jul 2021 13:37:49 +0000 (09:37 -0400)
committerGitHub <noreply@github.com>
Thu, 1 Jul 2021 13:37:49 +0000 (09:37 -0400)
types/index.esm.d.ts

index 235670cd8995568ed1721ed5fb12e490cae1df39..e56376fae2242ba0ed24555819e0de71f850b0f8 100644 (file)
@@ -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.