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

Function interpolate

docs/app/js/sanddance-app.js:127010–127013  ·  view source on GitHub ↗
(type, gamma)

Source from the content-addressed store, hash-verified

127008 }
127009}
127010function interpolate(type, gamma) {
127011 const interp = _d3Interpolate[method(type)];
127012 return gamma != null && interp && interp.gamma ? interp.gamma(gamma) : interp;
127013}
127014function method(type) {
127015 return "interpolate" + type.toLowerCase().split("-").map((s)=>s[0].toUpperCase() + s.slice(1)).join("");
127016}

Callers 7

interpolateColorsFunction · 0.70
bimapFunction · 0.70
polymapFunction · 0.70
piecewiseFunction · 0.70
rangeFunction · 0.70
sanddance-app.jsFile · 0.70
polygonEndFunction · 0.70

Calls 4

methodFunction · 0.70
cornerFunction · 0.70
comparePointFunction · 0.70
gammaMethod · 0.45

Tested by

no test coverage detected