@vertexvis/geometry 0.13.2-canary.9 → 0.14.0
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.
- package/README.md +1 -1
- package/dist/boundingBox.d.ts +9 -0
- package/dist/bundle.cjs.js +35 -1
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +35 -1
- package/dist/bundle.esm.js.map +1 -1
- package/dist/cdn/boundingBox.d.ts +9 -0
- package/dist/cdn/bundle.esm.js +35 -1
- package/dist/cdn/bundle.esm.js.map +1 -1
- package/dist/cdn/bundle.esm.min.js +1 -1
- package/dist/cdn/bundle.esm.min.js.map +1 -1
- package/dist/cdn/rectangle.d.ts +7 -0
- package/dist/rectangle.d.ts +7 -0
- package/package.json +3 -3
package/dist/cdn/rectangle.d.ts
CHANGED
|
@@ -109,6 +109,13 @@ export declare function isSquare(rect: Rectangle): boolean;
|
|
|
109
109
|
* @param padding The padding to add.
|
|
110
110
|
*/
|
|
111
111
|
export declare function pad(rect: Rectangle, padding: number): Rectangle;
|
|
112
|
+
/**
|
|
113
|
+
* Returns `true` if the given rectangle contains all the given `points`.
|
|
114
|
+
*
|
|
115
|
+
* @param rect The rectangle to check against.
|
|
116
|
+
* @param points The points to check.
|
|
117
|
+
*/
|
|
118
|
+
export declare function containsPoints(rect: Rectangle, ...points: Point.Point[]): boolean;
|
|
112
119
|
/**
|
|
113
120
|
* Parses a JSON string representation of a Rectangle and returns an object.
|
|
114
121
|
*
|
package/dist/rectangle.d.ts
CHANGED
|
@@ -109,6 +109,13 @@ export declare function isSquare(rect: Rectangle): boolean;
|
|
|
109
109
|
* @param padding The padding to add.
|
|
110
110
|
*/
|
|
111
111
|
export declare function pad(rect: Rectangle, padding: number): Rectangle;
|
|
112
|
+
/**
|
|
113
|
+
* Returns `true` if the given rectangle contains all the given `points`.
|
|
114
|
+
*
|
|
115
|
+
* @param rect The rectangle to check against.
|
|
116
|
+
* @param points The points to check.
|
|
117
|
+
*/
|
|
118
|
+
export declare function containsPoints(rect: Rectangle, ...points: Point.Point[]): boolean;
|
|
112
119
|
/**
|
|
113
120
|
* Parses a JSON string representation of a Rectangle and returns an object.
|
|
114
121
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vertexvis/geometry",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Library for 2D and 3D geometric types.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Vertex Developers <support@vertexvis.com> (https://developer.vertexvis.com)",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@types/jest": "^26.0.20",
|
|
40
40
|
"@vertexvis/eslint-config-vertexvis-typescript": "^0.5.0",
|
|
41
41
|
"@vertexvis/jest-config-vertexvis": "^0.5.4",
|
|
42
|
-
"@vertexwebsdk/build": "0.
|
|
42
|
+
"@vertexwebsdk/build": "0.14.0",
|
|
43
43
|
"eslint": "^8.6.0",
|
|
44
44
|
"jest": "^26.6.3",
|
|
45
45
|
"rollup": "^2.63.0",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"tslib": ">=2.1.0"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "933bf93aab0d356bc6a0e906c8240a6e428e9614"
|
|
54
54
|
}
|