From b006c0c638eb1f19d8314d40657cca33577f0776 Mon Sep 17 00:00:00 2001 From: Sava Markovic Date: Fri, 11 Dec 2020 10:50:14 +0800 Subject: [PATCH] Add onWebGlContextLost event --- README.md | 1 + src/factory.js | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 2cd242a..5540cb8 100644 --- a/README.md +++ b/README.md @@ -180,6 +180,7 @@ Event handlers for specific [`plotly.js` events](https://plot.ly/javascript/plot | `onTransitioning` | `Function` | `plotly_transitioning` | | `onTransitionInterrupted` | `Function` | `plotly_transitioninterrupted` | | `onUnhover` | `Function` | `plotly_unhover` | +| `onWebGlContextLost` | `Function` | `plotly_webglcontextlost` | ## Customizing the `plotly.js` bundle diff --git a/src/factory.js b/src/factory.js index d6444b9..9911014 100644 --- a/src/factory.js +++ b/src/factory.js @@ -35,6 +35,7 @@ const eventNames = [ 'Transitioning', 'TransitionInterrupted', 'Unhover', + 'WebGlContextLost', ]; const updateEvents = [