MCPcopy Index your code
hub / github.com/idank/explainshell / worst

Function worst

explainshell/web/static/js/d3.v3.js:6208–6218  ·  view source on GitHub ↗
(row, u)

Source from the content-addressed store, hash-verified

6206 }
6207 }
6208 function worst(row, u) {
6209 var s = row.area, r, rmax = 0, rmin = Infinity, i = -1, n = row.length;
6210 while (++i < n) {
6211 if (!(r = row[i].area)) continue;
6212 if (r < rmin) rmin = r;
6213 if (r > rmax) rmax = r;
6214 }
6215 s *= s;
6216 u *= u;
6217 return s ? Math.max(u * rmax * ratio / s, s / (u * rmin * ratio)) : Infinity;
6218 }
6219 function position(row, u, rect, flush) {
6220 var i = -1, n = row.length, x = rect.x, y = rect.y, v = u ? round(row.area / u) : 0, o;
6221 if (u == rect.dx) {

Callers 1

squarifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected