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

Function bound

explainshell/web/static/js/d3.v3.js:6011–6016  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

6009 if (!(nodes = node.children) || !(n = nodes.length)) return;
6010 var nodes, xMin = Infinity, xMax = -Infinity, yMin = Infinity, yMax = -Infinity, a, b, c, i, j, k, n;
6011 function bound(node) {
6012 xMin = Math.min(node.x - node.r, xMin);
6013 xMax = Math.max(node.x + node.r, xMax);
6014 yMin = Math.min(node.y - node.r, yMin);
6015 yMax = Math.max(node.y + node.r, yMax);
6016 }
6017 nodes.forEach(d3_layout_packLink);
6018 a = nodes[0];
6019 a.x = -a.r;

Callers 1

d3_layout_packSiblingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected