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

Function isValidScale

src/components/colorscale/scales.js:183–186  ·  view source on GitHub ↗
(scl)

Source from the content-addressed store, hash-verified

181}
182
183function isValidScale(scl) {
184 if(scales[scl] !== undefined) return true;
185 else return isValidScaleArray(scl);
186}
187
188module.exports = {
189 scales: scales,

Callers 3

colorscale_test.jsFile · 0.85
defaults.jsFile · 0.85
hasColorscaleFunction · 0.85

Calls 1

isValidScaleArrayFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…