refactor tile packing, cut tools file pathing

This commit is contained in:
Stewart Allen 2024-06-13 19:00:04 -04:00
commit d087aaae73
4 changed files with 284 additions and 218 deletions

View file

@ -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);
}