(children)
| 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; |