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

Function worst

d3-3.2.8/d3.js:6544–6554  ·  view source on GitHub ↗
(row, u)

Source from the content-addressed store, hash-verified

6542 }
6543 }
6544 function worst(row, u) {
6545 var s = row.area, r, rmax = 0, rmin = Infinity, i = -1, n = row.length;
6546 while (++i < n) {
6547 if (!(r = row[i].area)) continue;
6548 if (r < rmin) rmin = r;
6549 if (r > rmax) rmax = r;
6550 }
6551 s *= s;
6552 u *= u;
6553 return s ? Math.max(u * rmax * ratio / s, s / (u * rmin * ratio)) : Infinity;
6554 }
6555 function position(row, u, rect, flush) {
6556 var i = -1, n = row.length, x = rect.x, y = rect.y, v = u ? round(row.area / u) : 0, o;
6557 if (u == rect.dx) {

Callers 1

squarifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected