From 63b700cbf46b09b4ac4ea00f8b59f64cf589cdaa Mon Sep 17 00:00:00 2001 From: michaelbabyn Date: Thu, 4 Oct 2018 16:03:48 -0400 Subject: [PATCH 1/2] add info on webgl context lost event --- .../events/2017-01-01-order10_afterplot.html | 2 +- .../events/2017-01-01-order7_doubleclick_event.html | 2 +- .../events/2017-01-01-order8_add_events.html | 2 +- .../events/2018-10-04-webglcontextlost.html | 12 ++++++++++++ 4 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 _posts/plotly_js/chart-events/events/2018-10-04-webglcontextlost.html diff --git a/_posts/plotly_js/chart-events/events/2017-01-01-order10_afterplot.html b/_posts/plotly_js/chart-events/events/2017-01-01-order10_afterplot.html index 1a485177cf15..c48b097554d8 100644 --- a/_posts/plotly_js/chart-events/events/2017-01-01-order10_afterplot.html +++ b/_posts/plotly_js/chart-events/events/2017-01-01-order10_afterplot.html @@ -3,7 +3,7 @@ plot_url: https://codepen.io/plotly/embed/YeGGdy/?height=500&theme-id=15263&default-tab=result language: plotly_js suite: events -order: 11 +order: 10.2 sitemap: false arrangement: horizontal markdown_content: | diff --git a/_posts/plotly_js/chart-events/events/2017-01-01-order7_doubleclick_event.html b/_posts/plotly_js/chart-events/events/2017-01-01-order7_doubleclick_event.html index d72a8b071c86..c7fd6d6cf9cb 100644 --- a/_posts/plotly_js/chart-events/events/2017-01-01-order7_doubleclick_event.html +++ b/_posts/plotly_js/chart-events/events/2017-01-01-order7_doubleclick_event.html @@ -3,7 +3,7 @@ plot_url: https://codepen.io/plotly/embed/WoZOdq/?height=500&theme-id=15263&default-tab=result language: plotly_js suite: events -order: 11 +order: 10.3 sitemap: false arrangement: horizontal markdown_content: | diff --git a/_posts/plotly_js/chart-events/events/2017-01-01-order8_add_events.html b/_posts/plotly_js/chart-events/events/2017-01-01-order8_add_events.html index 3d8291f8a649..b41a0923e47e 100644 --- a/_posts/plotly_js/chart-events/events/2017-01-01-order8_add_events.html +++ b/_posts/plotly_js/chart-events/events/2017-01-01-order8_add_events.html @@ -7,7 +7,7 @@ sitemap: false arrangement: horizontal markdown_content: | - The following Plotly events do not emit additional data or update information: [`plotly_afterplot`](), [`plotly_autosize`](), [`plotly_deselect`](), [`plotly_doubleclick`](), [`plotly_redraw`](), and [`plotly_animated`](). These event handlers can be used to notify or trigger an additional event with the following syntax: + The following Plotly events do not emit additional data or update information: [`plotly_webglcontextlost`](#webgl-context-lost-event), [`plotly_afterplot`](#afterplot-event), [`plotly_autosize`](), [`plotly_deselect`](), [`plotly_doubleclick`](#double-click-event), [`plotly_redraw`](), and [`plotly_animated`](). These event handlers can be used to notify or trigger an additional event with the following syntax: --- function eventTriggeredHandler() { diff --git a/_posts/plotly_js/chart-events/events/2018-10-04-webglcontextlost.html b/_posts/plotly_js/chart-events/events/2018-10-04-webglcontextlost.html new file mode 100644 index 000000000000..34fc84121ab1 --- /dev/null +++ b/_posts/plotly_js/chart-events/events/2018-10-04-webglcontextlost.html @@ -0,0 +1,12 @@ +--- +name: Webgl Context Lost Event +language: plotly_js +suite: events +order: 10.1 +sitemap: false +arrangement: horizontal +markdown_content: | + Plotly graphs which use webgl receive a "webgl context" from the browser which gives them access to gpu resources. + A program may lose its web context if the browser is overloaded with webgl contexts and is forced to shut one down. + The event handler: `plotly_webglcontextlost`, can be used to trigger an event after a graph using webgl loses it's webgl context. +--- From 764de6c10dc2adcd5d85ba41f0ee43126ae7a303 Mon Sep 17 00:00:00 2001 From: michaelbabyn <41019918+michaelbabyn@users.noreply.github.com> Date: Wed, 10 Oct 2018 15:39:06 -0400 Subject: [PATCH 2/2] Update 2018-10-04-webglcontextlost.html change webgl to WebGL --- .../chart-events/events/2018-10-04-webglcontextlost.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_posts/plotly_js/chart-events/events/2018-10-04-webglcontextlost.html b/_posts/plotly_js/chart-events/events/2018-10-04-webglcontextlost.html index 34fc84121ab1..dd17a1e1ee06 100644 --- a/_posts/plotly_js/chart-events/events/2018-10-04-webglcontextlost.html +++ b/_posts/plotly_js/chart-events/events/2018-10-04-webglcontextlost.html @@ -6,7 +6,7 @@ sitemap: false arrangement: horizontal markdown_content: | - Plotly graphs which use webgl receive a "webgl context" from the browser which gives them access to gpu resources. - A program may lose its web context if the browser is overloaded with webgl contexts and is forced to shut one down. - The event handler: `plotly_webglcontextlost`, can be used to trigger an event after a graph using webgl loses it's webgl context. + Plotly graphs which use WebGL receive a "WebGL context" from the browser which gives them access to gpu resources. + A program may lose its WebGL context if the browser is overloaded with them and is forced to shut one down. + The event handler: `plotly_webglcontextlost`, can be used to trigger an event after a graph loses it's WebGL context. ---