MCPcopy
hub / github.com/plotly/plotly.js / _trigger

Function _trigger

test/jasmine/tests/gl2d_plot_interact_test.js:214–218  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

212 var _mock = Lib.extendDeep({}, require('../../image/mocks/gl2d_12.json'));
213
214 function _trigger(name) {
215 var ev = new window.WebGLContextEvent('webglcontextlost');
216 var canvas = gd.querySelector('.gl-canvas-' + name);
217 canvas.dispatchEvent(ev);
218 }
219
220 Plotly.newPlot(gd, _mock).then(function() {
221 return new Promise(function(resolve, reject) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…