refactor tile packing, cut tools file pathing
This commit is contained in:
parent
8017fe37e5
commit
d087aaae73
4 changed files with 284 additions and 218 deletions
|
|
@ -717,10 +717,10 @@ class Polygon {
|
|||
/**
|
||||
* move all poly points by some offset
|
||||
*/
|
||||
move(offset) {
|
||||
move(offset, skipinner) {
|
||||
this._bounds = undefined;
|
||||
this.points = this.points.map(point => point.move(offset));
|
||||
if (this.inner) {
|
||||
if (!skipinner && this.inner) {
|
||||
for (let inner of this.inner) {
|
||||
inner.move(offset);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue