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

Function d3_layout_hierarchyLinks

explainshell/web/static/js/d3.v3.js:5477–5486  ·  view source on GitHub ↗
(nodes)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected