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

Function arrayToColor

src/traces/scatter3d/convert.js:348–358  ·  view source on GitHub ↗
(colors)

Source from the content-addressed store, hash-verified

346}
347
348function arrayToColor(colors) {
349 if (!Lib.isArrayOrTypedArray(colors)) {
350 return null;
351 }
352
353 if (colors.length === 4 && typeof colors[0] === 'number') {
354 return _arrayToColor(colors);
355 }
356
357 return colors.map(_arrayToColor);
358}
359
360proto.update = function (data) {
361 var gl = this.scene.glplot.gl;

Callers 1

convert.jsFile · 0.85

Calls 1

_arrayToColorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…