MCPcopy Create free account
hub / github.com/jipegit/OSXAuditor / d3_interpolateArray

Function d3_interpolateArray

d3-3.2.8/d3.js:5057–5066  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

5055 } ];
5056 d3.interpolateArray = d3_interpolateArray;
5057 function d3_interpolateArray(a, b) {
5058 var x = [], c = [], na = a.length, nb = b.length, n0 = Math.min(a.length, b.length), i;
5059 for (i = 0; i < n0; ++i) x.push(d3_interpolate(a[i], b[i]));
5060 for (;i < na; ++i) c[i] = a[i];
5061 for (;i < nb; ++i) c[i] = b[i];
5062 return function(t) {
5063 for (i = 0; i < n0; ++i) c[i] = x[i](t);
5064 return c;
5065 };
5066 }
5067 var d3_ease_default = function() {
5068 return d3_identity;
5069 };

Callers

nothing calls this directly

Calls 1

d3_interpolateFunction · 0.85

Tested by

no test coverage detected