diff --git a/surya/common/polygon.py b/surya/common/polygon.py index 2a8c3a9b..53af4b1e 100644 --- a/surya/common/polygon.py +++ b/surya/common/polygon.py @@ -47,6 +47,7 @@ def area(self): return self.width * self.height @computed_field + @property def bbox(self) -> List[float]: x_coords = [point[0] for point in self.polygon] y_coords = [point[1] for point in self.polygon] @@ -131,4 +132,4 @@ def shift(self, x_shift: float | None = None, y_shift: float | None = None): corner[0] += x_shift if y_shift is not None: for corner in self.polygon: - corner[1] += y_shift \ No newline at end of file + corner[1] += y_shift