MCPcopy Index your code
hub / github.com/plotly/plotly.js / checkContextLoss

Function checkContextLoss

stackgl_modules/index.js:18864–18876  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18862 }
18863
18864 function checkContextLoss() {
18865 if(scene.contextLost) {
18866 return true
18867 }
18868 if(gl.isContextLost()) {
18869 scene.contextLost = true
18870 scene.mouseListener.enabled = false
18871 scene.selection.object = null
18872 if(scene.oncontextloss) {
18873 scene.oncontextloss()
18874 }
18875 }
18876 }
18877
18878 canvas.addEventListener('webglcontextlost', checkContextLoss)
18879

Callers 2

renderPickFunction · 0.85
redrawFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…