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

Function getContext

stackgl_modules/index.js:18428–18439  ·  view source on GitHub ↗
(canvas, options)

Source from the content-addressed store, hash-verified

18426}
18427
18428function getContext(canvas, options) {
18429 var gl = null
18430 try {
18431 gl = canvas.getContext('webgl', options)
18432 if(!gl) {
18433 gl = canvas.getContext('experimental-webgl', options)
18434 }
18435 } catch(e) {
18436 return null
18437 }
18438 return gl
18439}
18440
18441function roundUpPow10(x) {
18442 var y = Math.round(Math.log(Math.abs(x)) / Math.log(10))

Callers 2

scene.jsFile · 0.85
createSceneFunction · 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…