diff --git a/.gitignore b/.gitignore index e503c2efa..41e2fc277 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ .DS_Store .esm-cache .vscode/ +.idea/ /node_modules/ /.tx/tmp/ npm-debug.log diff --git a/modules/actions/circularize.js b/modules/actions/circularize.js index c040f1854..008575c22 100644 --- a/modules/actions/circularize.js +++ b/modules/actions/circularize.js @@ -133,7 +133,6 @@ export function actionCircularize(wayId, projection, maxAngle) { var nearAngle = nearNodes[nodeId]; var dist = Math.abs(nearAngle - angle); if (dist < min) { - dist = min; origNode = origNodes[nodeId]; } } @@ -252,7 +251,7 @@ export function actionCircularize(wayId, projection, maxAngle) { return false; } } - + //check if central angles are smaller than maxAngle for (i = 0; i Math.PI){ angle = (2*Math.PI - angle); } - + if (angle > maxAngle + epsilonAngle) { return false; } diff --git a/modules/osm/multipolygon.js b/modules/osm/multipolygon.js index 67d42c57d..efc734b5f 100644 --- a/modules/osm/multipolygon.js +++ b/modules/osm/multipolygon.js @@ -210,7 +210,6 @@ export function osmJoinWays(toJoin, graph) { } if (!nodes) { // couldn't find a joinable way/member - doneSequence = true; break; } diff --git a/modules/ui/edit_menu.js b/modules/ui/edit_menu.js index 99e24c0ec..e7eda610f 100644 --- a/modules/ui/edit_menu.js +++ b/modules/ui/edit_menu.js @@ -126,7 +126,7 @@ export function uiEditMenu(context) { } // update - buttons = buttonsEnter + buttonsEnter .merge(buttons) .classed('disabled', function(d) { return d.disabled(); });