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

Function str2RgbaArray

src/lib/str2rgbarray.js:5–8  ·  view source on GitHub ↗
(color)

Source from the content-addressed store, hash-verified

3var rgba = require('color-normalize');
4
5function str2RgbaArray(color) {
6 if(!color) return [0, 0, 0, 1];
7 return rgba(color);
8}
9
10module.exports = str2RgbaArray;

Callers 8

calculateErrorParamsFunction · 0.85
convertPlotlyOptionsFunction · 0.85
convert.jsFile · 0.85
convert.jsFile · 0.85
convert.jsFile · 0.85
parseColorArrayFunction · 0.85
convert.jsFile · 0.85
convert.jsFile · 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…