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

Function d3_layout_treeLeft

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

Source from the content-addressed store, hash-verified

5885 return a.parent == b.parent ? 1 : 2;
5886 }
5887 function d3_layout_treeLeft(node) {
5888 var children = node.children;
5889 return children && children.length ? children[0] : node._tree.thread;
5890 }
5891 function d3_layout_treeRight(node) {
5892 var children = node.children, n;
5893 return children && (n = children.length) ? children[n - 1] : node._tree.thread;

Callers 1

apportionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected