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

Function d3_layout_treeShift

explainshell/web/static/js/d3.v3.js:5931–5939  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

5929 visit(node, null);
5930 }
5931 function d3_layout_treeShift(node) {
5932 var shift = 0, change = 0, children = node.children, i = children.length, child;
5933 while (--i >= 0) {
5934 child = children[i]._tree;
5935 child.prelim += shift;
5936 child.mod += shift;
5937 shift += child.shift + (change += child.change);
5938 }
5939 }
5940 function d3_layout_treeMove(ancestor, node, shift) {
5941 ancestor = ancestor._tree;
5942 node = node._tree;

Callers 1

firstWalkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected