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

Function d3_interpolateObject

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

Source from the content-addressed store, hash-verified

4951 }
4952 d3.interpolateObject = d3_interpolateObject;
4953 function d3_interpolateObject(a, b) {
4954 var i = {}, c = {}, k;
4955 for (k in a) {
4956 if (k in b) {
4957 i[k] = d3_interpolate(a[k], b[k]);
4958 } else {
4959 c[k] = a[k];
4960 }
4961 }
4962 for (k in b) {
4963 if (!(k in a)) {
4964 c[k] = b[k];
4965 }
4966 }
4967 return function(t) {
4968 for (k in i) c[k] = i[k](t);
4969 return c;
4970 };
4971 }
4972 d3.interpolateNumber = d3_interpolateNumber;
4973 function d3_interpolateNumber(a, b) {
4974 b -= a = +a;

Callers

nothing calls this directly

Calls 1

d3_interpolateFunction · 0.85

Tested by

no test coverage detected