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

Function parseScale

src/components/colorscale/scales.js:142–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140 if(!scl) return dflt;
141
142 function parseScale() {
143 try {
144 scl = scales[scl] || JSON.parse(scl);
145 } catch(e) {
146 scl = dflt;
147 }
148 }
149
150 if(typeof scl === 'string') {
151 parseScale();

Callers 1

getScaleFunction · 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…