Skip to content

Commit 63b700c

Browse files
committed
add info on webgl context lost event
1 parent 820f033 commit 63b700c

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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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() {
Lines changed: 12 additions & 0 deletions
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 web context if the browser is overloaded with webgl contexts and is forced to shut one down.
11+
The event handler: `plotly_webglcontextlost`, can be used to trigger an event after a graph using webgl loses it's webgl context.
12+
---

0 commit comments

Comments
 (0)