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

Function createTextSprites

stackgl_modules/index.js:13149–13176  ·  view source on GitHub ↗
(
    gl,
    bounds,
    labels,
    labelFont,
    ticks,
    tickFont)

Source from the content-addressed store, hash-verified

13147}
13148
13149function createTextSprites(
13150 gl,
13151 bounds,
13152 labels,
13153 labelFont,
13154 ticks,
13155 tickFont) {
13156
13157 var buffer = createBuffer(gl)
13158 var vao = createVAO(gl, [
13159 { "buffer": buffer,
13160 "size": 3
13161 }
13162 ])
13163
13164 var shader = createShader(gl)
13165 shader.attributes.position.location = 0
13166
13167 var result = new TextSprites(
13168 gl,
13169 shader,
13170 buffer,
13171 vao)
13172
13173 result.update(bounds, labels, labelFont, ticks, tickFont)
13174
13175 return result
13176}
13177
13178
13179/***/ }),

Callers

nothing calls this directly

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…