v1.0 with SW PWA enabled
This commit is contained in:
14
frontend/node_modules/d3-interpolate/src/numberArray.js
generated
vendored
Normal file
14
frontend/node_modules/d3-interpolate/src/numberArray.js
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
export default function(a, b) {
|
||||
if (!b) b = [];
|
||||
var n = a ? Math.min(b.length, a.length) : 0,
|
||||
c = b.slice(),
|
||||
i;
|
||||
return function(t) {
|
||||
for (i = 0; i < n; ++i) c[i] = a[i] * (1 - t) + b[i] * t;
|
||||
return c;
|
||||
};
|
||||
}
|
||||
|
||||
export function isNumberArray(x) {
|
||||
return ArrayBuffer.isView(x) && !(x instanceof DataView);
|
||||
}
|
||||
Reference in New Issue
Block a user