(canvas, options)
| 18426 | } |
| 18427 | |
| 18428 | function 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 | |
| 18441 | function roundUpPow10(x) { |
| 18442 | var y = Math.round(Math.log(Math.abs(x)) / Math.log(10)) |
no outgoing calls
no test coverage detected
searching dependent graphs…