(nodes)
| 5475 | return b.value - a.value; |
| 5476 | } |
| 5477 | function d3_layout_hierarchyLinks(nodes) { |
| 5478 | return d3.merge(nodes.map(function(parent) { |
| 5479 | return (parent.children || []).map(function(child) { |
| 5480 | return { |
| 5481 | source: parent, |
| 5482 | target: child |
| 5483 | }; |
| 5484 | }); |
| 5485 | })); |
| 5486 | } |
| 5487 | d3.layout.partition = function() { |
| 5488 | var hierarchy = d3.layout.hierarchy(), size = [ 1, 1 ]; |
| 5489 | function position(node, x, dx, dy) { |
nothing calls this directly
no outgoing calls
no test coverage detected