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

Function createErrorBars

stackgl_modules/index.js:14873–14908  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

14871}
14872
14873function createErrorBars(options) {
14874 var gl = options.gl
14875 var buffer = createBuffer(gl)
14876 var vao = createVAO(gl, [
14877 {
14878 buffer: buffer,
14879 type: gl.FLOAT,
14880 size: 3,
14881 offset: 0,
14882 stride: 40
14883 },
14884 {
14885 buffer: buffer,
14886 type: gl.FLOAT,
14887 size: 4,
14888 offset: 12,
14889 stride: 40
14890 },
14891 {
14892 buffer: buffer,
14893 type: gl.FLOAT,
14894 size: 3,
14895 offset: 28,
14896 stride: 40
14897 }
14898 ])
14899
14900 var shader = createShader(gl)
14901 shader.attributes.position.location = 0
14902 shader.attributes.color.location = 1
14903 shader.attributes.offset.location = 2
14904
14905 var result = new ErrorBars(gl, buffer, vao, shader)
14906 result.update(options)
14907 return result
14908}
14909
14910
14911/***/ }),

Callers 1

convert.jsFile · 0.85

Calls 3

createBufferFunction · 0.85
createVAOFunction · 0.85
createShaderFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…