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

Function d3_layout_clusterX

explainshell/web/static/js/d3.v3.js:6142–6146  ·  view source on GitHub ↗
(children)

Source from the content-addressed store, hash-verified

6140 });
6141 }
6142 function d3_layout_clusterX(children) {
6143 return children.reduce(function(x, child) {
6144 return x + child.x;
6145 }, 0) / children.length;
6146 }
6147 function d3_layout_clusterLeft(node) {
6148 var children = node.children;
6149 return children && children.length ? d3_layout_clusterLeft(children[0]) : node;

Callers 1

clusterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected