add cam origin selector. fix wasm newpoly

This commit is contained in:
Stewart Allen 2025-07-10 16:54:02 -04:00
commit 5532cf28e4
12 changed files with 277 additions and 132 deletions

View file

@ -1117,6 +1117,14 @@ export class Polygon {
return this.first().isEqual(this.last());
}
fixClosed() {
if (this.appearsClosed()) {
this.points.pop();
this.open = false;
}
return this;
}
setClockwise() {
if (!this.isClockwise()) this.reverse();
return this;