Skip to content

Commit

Permalink
fix #10
Browse files Browse the repository at this point in the history
  • Loading branch information
Kcnarf committed Nov 4, 2020
1 parent 9d98ec3 commit a5753de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
6 changes: 1 addition & 5 deletions build/d3-voronoi-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@
var DEFAULT_INITIAL_POSITION = randomInitialPosition();
var DEFAULT_INITIAL_WEIGHT = halfAverageAreaInitialWeight();
var RANDOM_INITIAL_POSITION = randomInitialPosition();
var epsilon = 1;
var epsilon = 1e-10;
//end: constants

/////// Inputs ///////
Expand Down Expand Up @@ -800,10 +800,6 @@
}
}
if (fixApplied) {
// console.log('# fix: ' + fixCount);
// if (fixCount > 2) {
// debugger;
// }
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion build/d3-voronoi-map.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions src/d3-voronoi-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function voronoiMapSimulation(data) {
var DEFAULT_INITIAL_POSITION = randomInitialPosition();
var DEFAULT_INITIAL_WEIGHT = halfAverageAreaInitialWeight();
var RANDOM_INITIAL_POSITION = randomInitialPosition();
var epsilon = 1;
var epsilon = 1e-10;
//end: constants

/////// Inputs ///////
Expand Down Expand Up @@ -457,10 +457,6 @@ export function voronoiMapSimulation(data) {
}
}
if (fixApplied) {
// console.log('# fix: ' + fixCount);
// if (fixCount > 2) {
// debugger;
// }
break;
}
}
Expand Down

0 comments on commit a5753de

Please sign in to comment.