Skip to content

Commit

Permalink
Update website
Browse files Browse the repository at this point in the history
  • Loading branch information
mbloch committed Apr 4, 2024
1 parent d72ed13 commit d8a13ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions mapshaper-gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -10779,11 +10779,16 @@
// finish the path if a vertex is selected (but not an interpolated point)
var finish = hoverVertexInfo?.type == 'vertex';
if (getLastArcLength(target) < 2) {
error$1('Defective path');
stop$1('Defective path');
}
if (finish && polygonMode()) {
shapes1 = target.shapes.slice(initialShapeCount);
shapes2 = convertClosedPaths(shapes1);
try {
shapes2 = convertClosedPaths(shapes1);
} catch(e) {
console.error(e);
stop$1('Invalid path');
}
}
if (shapes2) {
replaceDrawnShapes(shapes2);
Expand Down
2 changes: 1 addition & 1 deletion mapshaper.js
Original file line number Diff line number Diff line change
Expand Up @@ -45536,7 +45536,7 @@ ${svg}
});
}

var version = "0.6.83";
var version = "0.6.84";

// Parse command line args into commands and run them
// Function takes an optional Node-style callback. A Promise is returned if no callback is given.
Expand Down

0 comments on commit d8a13ef

Please sign in to comment.