Run prettier

This commit is contained in:
2025-02-22 15:50:31 -08:00
parent b45f81e6c6
commit d9a7b5094c
9 changed files with 128 additions and 119 deletions

View File

@ -102,7 +102,7 @@ export class Point {
snap(x: number, y: number) {
return new Point(
lerp(x, Math.floor(this.x), Math.ceil(this.x)),
lerp(y, Math.floor(this.y), Math.ceil(this.y))
lerp(y, Math.floor(this.y), Math.ceil(this.y)),
);
}
}
@ -141,7 +141,6 @@ export class Rect {
return `Rect(${this.top},${this.size})`;
}
offset(offset: Point) {
return new Rect(this.top.offset(offset), this.size);
}
@ -303,4 +302,4 @@ export function lerp(amt: number, lo: number, hi: number) {
return hi;
}
return lo + (hi - lo) * amt;
};
}