MCPcopy Index your code
hub / github.com/microsoft/SandDance / value

Function value

docs/app/js/sanddance-app.js:122247–122249  ·  view source on GitHub ↗
(value4, dflt)

Source from the content-addressed store, hash-verified

122245 context25.globalCompositeOperation = item.blend || "source-over";
122246}
122247function value(value4, dflt) {
122248 return value4 == null ? dflt : value4;
122249}
122250function addStops(gradient2, stops) {
122251 const n = stops.length;
122252 for(let i = 0; i < n; ++i)gradient2.addColorStop(stops[i].offset, stops[i].color);

Callers 9

getFunction · 0.70
gradientFunction · 0.70
offset$1Function · 0.70
toCanvasFunction · 0.70
sanddance-app.jsFile · 0.70
_Function · 0.70
lookupFunction · 0.70
legendGradientLabelsFunction · 0.70
buildAxisEncodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected