MCPcopy Create free account
hub / github.com/idank/explainshell / d3_scale_bilinear

Function d3_scale_bilinear

explainshell/web/static/js/d3.v3.js:6364–6369  ·  view source on GitHub ↗
(domain, range, uninterpolate, interpolate)

Source from the content-addressed store, hash-verified

6362 return scale.rangeExtent ? scale.rangeExtent() : d3_scaleExtent(scale.range());
6363 }
6364 function d3_scale_bilinear(domain, range, uninterpolate, interpolate) {
6365 var u = uninterpolate(domain[0], domain[1]), i = interpolate(range[0], range[1]);
6366 return function(x) {
6367 return i(u(x));
6368 };
6369 }
6370 function d3_scale_nice(domain, nice) {
6371 var i0 = 0, i1 = domain.length - 1, x0 = domain[i0], x1 = domain[i1], dx;
6372 if (x1 < x0) {

Callers

nothing calls this directly

Calls 3

interpolateFunction · 0.85
iFunction · 0.70
uFunction · 0.70

Tested by

no test coverage detected