add cam origin selector. fix wasm newpoly
This commit is contained in:
parent
2ddd07eecf
commit
5532cf28e4
12 changed files with 277 additions and 132 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue