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

Function d3_interpolateArray

explainshell/web/static/js/d3.v3.js:4847–4856  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

4845 } ];
4846 d3.interpolateArray = d3_interpolateArray;
4847 function d3_interpolateArray(a, b) {
4848 var x = [], c = [], na = a.length, nb = b.length, n0 = Math.min(a.length, b.length), i;
4849 for (i = 0; i < n0; ++i) x.push(d3_interpolate(a[i], b[i]));
4850 for (;i < na; ++i) c[i] = a[i];
4851 for (;i < nb; ++i) c[i] = b[i];
4852 return function(t) {
4853 for (i = 0; i < n0; ++i) c[i] = x[i](t);
4854 return c;
4855 };
4856 }
4857 var d3_ease_default = function() {
4858 return d3_identity;
4859 };

Callers 1

d3.v3.jsFile · 0.85

Calls 1

d3_interpolateFunction · 0.85

Tested by

no test coverage detected