Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Prune

Manav Rathi76cb218ccea3
diff --git a/web/apps/photos/src/services/ml/geom.ts b/web/apps/photos/src/services/ml/geom.ts
index e24fdc6698..1cf51963cf 100644
--- a/web/apps/photos/src/services/ml/geom.ts
+++ b/web/apps/photos/src/services/ml/geom.ts
@@ -58,32 +58,12 @@ export class Box implements IRect {
this.height = height;
}
- public get left(): number {
- return this.x;
- }
- public get top(): number {
- return this.y;
- }
- public get right(): number {
- return this.x + this.width;
- }
- public get bottom(): number {
- return this.y + this.height;
- }
- public get area(): number {
- return this.width * this.height;
- }
public get topLeft(): Point {
- return new Point(this.left, this.top);
- }
- public get topRight(): Point {
- return new Point(this.right, this.top);
- }
- public get bottomLeft(): Point {
- return new Point(this.left, this.bottom);
+ return new Point(this.x, this.y);
}
+
public get bottomRight(): Point {
- return new Point(this.right, this.bottom);
+ return new Point(this.x + this.width, this.y + this.height);
}
public round(): Box {