Skip to content

Commit

Permalink
measure cells based on the shortest circumference
Browse files Browse the repository at this point in the history
this gives a more regular subdivision
  • Loading branch information
jamis committed Dec 27, 2015
1 parent fee542c commit 2cf841c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/layout/toroidal.js
Expand Up @@ -42,10 +42,10 @@ require['layout/toroidal'] = function() {
var southCirc = 2 * Math.PI * southRadius;
var northCirc = 2 * Math.PI * northRadius;

var longest = southCirc;
if (northCirc > longest) longest = northCirc;
var shortest = southCirc;
if (northCirc < shortest) shortest = northCirc;

var idealCount = longest / rowHeight;
var idealCount = shortest / rowHeight;
var count = 1;

if(rowIdx == 0) {
Expand Down

0 comments on commit 2cf841c

Please sign in to comment.