Lines Matching refs:rsum
112 var rsum = 0; // Sum of children in this span.
120 rsum += size;
126 var score = Math.max(5*space*space*rmax / (rsum*rsum),
127 1*rsum*rsum / (space*space*rmin));
129 rsum -= size; // Undo size addition from just above.
134 return [end, rsum];
173 var end = span[0], rsum = span[1];
188 var frac = size / rsum;
190 width = rsum / space;
193 height = rsum / space;
212 x1 += Math.round((rsum / space) / pixels_to_units);
214 y1 += Math.round((rsum / space) / pixels_to_units);