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

Function d3_interpolateObject

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

Source from the content-addressed store, hash-verified

4743 }
4744 d3.interpolateObject = d3_interpolateObject;
4745 function d3_interpolateObject(a, b) {
4746 var i = {}, c = {}, k;
4747 for (k in a) {
4748 if (k in b) {
4749 i[k] = d3_interpolateByName(k)(a[k], b[k]);
4750 } else {
4751 c[k] = a[k];
4752 }
4753 }
4754 for (k in b) {
4755 if (!(k in a)) {
4756 c[k] = b[k];
4757 }
4758 }
4759 return function(t) {
4760 for (k in i) c[k] = i[k](t);
4761 return c;
4762 };
4763 }
4764 d3.interpolateString = d3_interpolateString;
4765 function d3_interpolateString(a, b) {
4766 var m, i, j, s0 = 0, s1 = 0, s = [], q = [], n, o;

Callers

nothing calls this directly

Calls 1

d3_interpolateByNameFunction · 0.85

Tested by

no test coverage detected