MCPcopy
hub / github.com/jipegit/OSXAuditor / d3_layout_packTransform

Function d3_layout_packTransform

d3-3.2.8/d3.js:6407–6416  ·  view source on GitHub ↗
(node, x, y, k)

Source from the content-addressed store, hash-verified

6405 delete node._pack_prev;
6406 }
6407 function d3_layout_packTransform(node, x, y, k) {
6408 var children = node.children;
6409 node.x = x += k * node.x;
6410 node.y = y += k * node.y;
6411 node.r *= k;
6412 if (children) {
6413 var i = -1, n = children.length;
6414 while (++i < n) d3_layout_packTransform(children[i], x, y, k);
6415 }
6416 }
6417 function d3_layout_packPlace(a, b, c) {
6418 var db = a.r + c.r, dx = b.x - a.x, dy = b.y - a.y;
6419 if (db && (dx || dy)) {

Callers 1

packFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected