From dd77ab395c6fd425a76b8aa37b5bff2641a8f47d Mon Sep 17 00:00:00 2001 From: zoryamba Date: Mon, 30 Nov 2020 19:55:51 +0200 Subject: [PATCH] add plotly_beforehover event --- README.md | 1 + src/factory.js | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index c1b53c7..2cd242a 100644 --- a/README.md +++ b/README.md @@ -157,6 +157,7 @@ Event handlers for specific [`plotly.js` events](https://plot.ly/javascript/plot | `onAnimationInterrupted` | `Function` | `plotly_animationinterrupted` | | `onAutoSize` | `Function` | `plotly_autosize` | | `onBeforeExport` | `Function` | `plotly_beforeexport` | +| `onBeforeHover` | `Function` | `plotly_beforehover` | | `onButtonClicked` | `Function` | `plotly_buttonclicked` | | `onClick` | `Function` | `plotly_click` | | `onClickAnnotation` | `Function` | `plotly_clickannotation` | diff --git a/src/factory.js b/src/factory.js index 3db9ddf..d6444b9 100644 --- a/src/factory.js +++ b/src/factory.js @@ -12,6 +12,7 @@ const eventNames = [ 'AnimationInterrupted', 'AutoSize', 'BeforeExport', + 'BeforeHover', 'ButtonClicked', 'Click', 'ClickAnnotation',