@vertexvis/geometry 0.23.5 → 0.23.6-canary.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.
- package/dist/bundle.cjs.js +115 -83
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +115 -84
- package/dist/bundle.esm.js.map +1 -1
- package/dist/cdn/__tests__/vector4.test.d.ts +1 -0
- package/dist/cdn/bundle.esm.js +115 -84
- 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/index.d.ts +2 -1
- package/dist/cdn/vector4.d.ts +23 -0
- package/dist/index.d.ts +2 -1
- package/dist/vector4.d.ts +23 -0
- package/package.json +3 -3
package/dist/cdn/index.d.ts
CHANGED
|
@@ -16,5 +16,6 @@ import * as Quaternion from './quaternion';
|
|
|
16
16
|
import * as Ray from './ray';
|
|
17
17
|
import * as Rectangle from './rectangle';
|
|
18
18
|
import * as Vector3 from './vector3';
|
|
19
|
+
import * as Vector4 from './vector4';
|
|
19
20
|
export * from './math';
|
|
20
|
-
export { Angle, BoundingBox, BoundingSphere, Dimensions, Euler, Line3, Matrix, Matrix2, Matrix4, Plane, Point, Quaternion, Ray, Rectangle, Vector3, };
|
|
21
|
+
export { Angle, BoundingBox, BoundingSphere, Dimensions, Euler, Line3, Matrix, Matrix2, Matrix4, Plane, Point, Quaternion, Ray, Rectangle, Vector3, Vector4, };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A `Vector4` represents a vector of 4 dimension values. It may represent a
|
|
3
|
+
* point or direction. It may also be used to represent a quadruplet of values,
|
|
4
|
+
* such as a row or column in a transformation matrix.
|
|
5
|
+
*/
|
|
6
|
+
export interface Vector4 {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
z: number;
|
|
10
|
+
w: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Returns a new Vector4. If `value` is undefined, then `{x: 0, y: 0, z: 0,
|
|
14
|
+
* w: 0}` is returned.
|
|
15
|
+
*/
|
|
16
|
+
export declare function create(value?: Partial<Vector4>): Vector4;
|
|
17
|
+
/**
|
|
18
|
+
* Parses a JSON string representation of a `Vector4`.
|
|
19
|
+
*
|
|
20
|
+
* @param json A JSON string either in the form of `[x, y, z, w]` or `{"x": 0, "y": 0, "z": 0, "w": 0}`.
|
|
21
|
+
* @returns A parsed `Vector4`.
|
|
22
|
+
*/
|
|
23
|
+
export declare function fromJson(json: string): Vector4;
|
package/dist/index.d.ts
CHANGED
|
@@ -16,5 +16,6 @@ import * as Quaternion from './quaternion';
|
|
|
16
16
|
import * as Ray from './ray';
|
|
17
17
|
import * as Rectangle from './rectangle';
|
|
18
18
|
import * as Vector3 from './vector3';
|
|
19
|
+
import * as Vector4 from './vector4';
|
|
19
20
|
export * from './math';
|
|
20
|
-
export { Angle, BoundingBox, BoundingSphere, Dimensions, Euler, Line3, Matrix, Matrix2, Matrix4, Plane, Point, Quaternion, Ray, Rectangle, Vector3, };
|
|
21
|
+
export { Angle, BoundingBox, BoundingSphere, Dimensions, Euler, Line3, Matrix, Matrix2, Matrix4, Plane, Point, Quaternion, Ray, Rectangle, Vector3, Vector4, };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A `Vector4` represents a vector of 4 dimension values. It may represent a
|
|
3
|
+
* point or direction. It may also be used to represent a quadruplet of values,
|
|
4
|
+
* such as a row or column in a transformation matrix.
|
|
5
|
+
*/
|
|
6
|
+
export interface Vector4 {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
z: number;
|
|
10
|
+
w: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Returns a new Vector4. If `value` is undefined, then `{x: 0, y: 0, z: 0,
|
|
14
|
+
* w: 0}` is returned.
|
|
15
|
+
*/
|
|
16
|
+
export declare function create(value?: Partial<Vector4>): Vector4;
|
|
17
|
+
/**
|
|
18
|
+
* Parses a JSON string representation of a `Vector4`.
|
|
19
|
+
*
|
|
20
|
+
* @param json A JSON string either in the form of `[x, y, z, w]` or `{"x": 0, "y": 0, "z": 0, "w": 0}`.
|
|
21
|
+
* @returns A parsed `Vector4`.
|
|
22
|
+
*/
|
|
23
|
+
export declare function fromJson(json: string): Vector4;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vertexvis/geometry",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.6-canary.1",
|
|
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)",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@types/jest": "^27.5.1",
|
|
41
41
|
"@vertexvis/eslint-config-vertexvis-typescript": "^0.5.0",
|
|
42
42
|
"@vertexvis/jest-config-vertexvis": "^0.5.4",
|
|
43
|
-
"@vertexwebsdk/build": "0.23.
|
|
43
|
+
"@vertexwebsdk/build": "0.23.6-canary.1",
|
|
44
44
|
"eslint": "^8.17.0",
|
|
45
45
|
"jest": "^27.5.1",
|
|
46
46
|
"rollup": "^2.75.6",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"tslib": ">=2.1.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "5f2054062845deebe257c39ff7f49f5849a5672b"
|
|
55
55
|
}
|