MCPcopy Create free account
hub / github.com/jipegit/OSXAuditor / d3_layout_bundlePath

Function d3_layout_bundlePath

d3-3.2.8/d3.js:5327–5339  ·  view source on GitHub ↗
(link)

Source from the content-addressed store, hash-verified

5325 };
5326 };
5327 function d3_layout_bundlePath(link) {
5328 var start = link.source, end = link.target, lca = d3_layout_bundleLeastCommonAncestor(start, end), points = [ start ];
5329 while (start !== lca) {
5330 start = start.parent;
5331 points.push(start);
5332 }
5333 var k = points.length;
5334 while (end !== lca) {
5335 points.splice(k, 0, end);
5336 end = end.parent;
5337 }
5338 return points;
5339 }
5340 function d3_layout_bundleAncestors(node) {
5341 var ancestors = [], parent = node.parent;
5342 while (parent != null) {

Callers 1

d3.jsFile · 0.85

Tested by

no test coverage detected