Skip to content

Commit 9edffd9

Browse files
authored
Merge pull request #1120 from plotly/webglcontextlost-event
add info on webgl context lost event
2 parents 0f423d0 + 764de6c commit 9edffd9

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

_posts/plotly_js/chart-events/events/2017-01-01-order10_afterplot.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
plot_url: https://codepen.io/plotly/embed/YeGGdy/?height=500&theme-id=15263&default-tab=result
44
language: plotly_js
55
suite: events
6-
order: 11
6+
order: 10.2
77
sitemap: false
88
arrangement: horizontal
99
markdown_content: |

_posts/plotly_js/chart-events/events/2017-01-01-order7_doubleclick_event.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
plot_url: https://codepen.io/plotly/embed/WoZOdq/?height=500&theme-id=15263&default-tab=result
44
language: plotly_js
55
suite: events
6-
order: 11
6+
order: 10.3
77
sitemap: false
88
arrangement: horizontal
99
markdown_content: |

_posts/plotly_js/chart-events/events/2017-01-01-order8_add_events.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
sitemap: false
88
arrangement: horizontal
99
markdown_content: |
10-
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:
10+
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:
1111
---
1212

1313
function eventTriggeredHandler() {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: Webgl Context Lost Event
3+
language: plotly_js
4+
suite: events
5+
order: 10.1
6+
sitemap: false
7+
arrangement: horizontal
8+
markdown_content: |
9+
Plotly graphs which use WebGL receive a "WebGL context" from the browser which gives them access to gpu resources.
10+
A program may lose its WebGL context if the browser is overloaded with them and is forced to shut one down.
11+
The event handler: `plotly_webglcontextlost`, can be used to trigger an event after a graph loses it's WebGL context.
12+
---

0 commit comments

Comments
 (0)