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

Function d3_layout_treeMove

d3-3.2.8/d3.js:6264–6273  ·  view source on GitHub ↗
(ancestor, node, shift)

Source from the content-addressed store, hash-verified

6262 }
6263 }
6264 function d3_layout_treeMove(ancestor, node, shift) {
6265 ancestor = ancestor._tree;
6266 node = node._tree;
6267 var change = shift / (node.number - ancestor.number);
6268 ancestor.change += change;
6269 node.change -= change;
6270 node.shift += shift;
6271 node.prelim += shift;
6272 node.mod += shift;
6273 }
6274 function d3_layout_treeAncestor(vim, node, ancestor) {
6275 return vim._tree.ancestor.parent == node.parent ? vim._tree.ancestor : ancestor;
6276 }

Callers 1

apportionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected