UNPKG

plotly.js

Version:

The open source JavaScript graphing library that also powers plotly.py and Plotly Dash

11 lines (7 loc) • 203 B
'use strict'; const { normalize: rgba } = require('../components/color'); function str2RgbaArray(color) { if(!color) return [0, 0, 0, 1]; return rgba(color); } module.exports = str2RgbaArray;