@opencvjs/types 4.10.0-release.4 → 4.11.0-release.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -59,15 +59,15 @@ export declare class RotatedRect {
59
59
  */
60
60
  public constructor(point1: Point2f, point2: Point2f, point3: Point2f);
61
61
 
62
- public boundingRect(): Rect;
62
+ public static boundingRect(rect: RotatedRect): Rect;
63
63
 
64
- public boundingRect2f(): Rect_;
64
+ public static boundingRect2f(rect: RotatedRect): Rect;
65
65
 
66
66
  /**
67
- * returns 4 vertices of the rectangle
67
+ * returns 4 vertices of the rectangle
68
68
  *
69
- * @param pts The points array for storing rectangle vertices. The order is bottomLeft, topLeft,
70
- * topRight, bottomRight.
69
+ * @param rect The rotated rectangle
70
+ * @returns Array of 4 points in order: bottomLeft, topLeft, topRight, bottomRight
71
71
  */
72
- public points(pts: Point2f): Point2f;
72
+ public static points(rect: RotatedRect): Point2f[];
73
73
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencvjs/types",
3
- "version": "4.10.0-release.4",
3
+ "version": "4.11.0-release.1",
4
4
  "author": "ocavue <ocavue@gmail.com>",
5
5
  "repository": "https://github.com/ocavue/opencvjs",
6
6
  "types": "./lib/index.d.ts",