@types/three 0.167.0 → 0.167.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.
- three/README.md +1 -1
- three/package.json +2 -2
- three/src/Three.WebGPU.d.ts +4 -0
- three/src/Three.d.ts +4 -0
- three/src/math/Matrix3.d.ts +7 -2
- three/src/math/Matrix4.d.ts +7 -2
three/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for three (https://threejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 26 Jul 2024 22:07:36 GMT
|
|
12
12
|
* Dependencies: [@tweenjs/tween.js](https://npmjs.com/package/@tweenjs/tween.js), [@types/stats.js](https://npmjs.com/package/@types/stats.js), [@types/webxr](https://npmjs.com/package/@types/webxr), [fflate](https://npmjs.com/package/fflate), [meshoptimizer](https://npmjs.com/package/meshoptimizer)
|
|
13
13
|
|
|
14
14
|
# Credits
|
three/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/three",
|
|
3
|
-
"version": "0.167.
|
|
3
|
+
"version": "0.167.1",
|
|
4
4
|
"description": "TypeScript definitions for three",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,6 +46,6 @@
|
|
|
46
46
|
"fflate": "~0.8.2",
|
|
47
47
|
"meshoptimizer": "~0.18.1"
|
|
48
48
|
},
|
|
49
|
-
"typesPublisherContentHash": "
|
|
49
|
+
"typesPublisherContentHash": "c19f8ca521abd8214f99319a1133aaa39fc7986cb8f9506e00d88620b67af369",
|
|
50
50
|
"typeScriptVersion": "4.8"
|
|
51
51
|
}
|
three/src/Three.WebGPU.d.ts
CHANGED
|
@@ -67,12 +67,16 @@ export * from "./helpers/SkeletonHelper.js";
|
|
|
67
67
|
export * from "./helpers/SpotLightHelper.js";
|
|
68
68
|
export * from "./lights/AmbientLight.js";
|
|
69
69
|
export * from "./lights/DirectionalLight.js";
|
|
70
|
+
export type { DirectionalLightShadow } from "./lights/DirectionalLightShadow.js";
|
|
70
71
|
export * from "./lights/HemisphereLight.js";
|
|
71
72
|
export * from "./lights/Light.js";
|
|
72
73
|
export * from "./lights/LightProbe.js";
|
|
74
|
+
export type { LightShadow, LightShadowJSON } from "./lights/LightShadow.js";
|
|
73
75
|
export * from "./lights/PointLight.js";
|
|
76
|
+
export type { PointLightShadow } from "./lights/PointLightShadow.js";
|
|
74
77
|
export * from "./lights/RectAreaLight.js";
|
|
75
78
|
export * from "./lights/SpotLight.js";
|
|
79
|
+
export type { SpotLightShadow } from "./lights/SpotLightShadow.js";
|
|
76
80
|
export * from "./loaders/AnimationLoader.js";
|
|
77
81
|
export * from "./loaders/AudioLoader.js";
|
|
78
82
|
export * from "./loaders/BufferGeometryLoader.js";
|
three/src/Three.d.ts
CHANGED
|
@@ -67,12 +67,16 @@ export * from "./helpers/SkeletonHelper.js";
|
|
|
67
67
|
export * from "./helpers/SpotLightHelper.js";
|
|
68
68
|
export * from "./lights/AmbientLight.js";
|
|
69
69
|
export * from "./lights/DirectionalLight.js";
|
|
70
|
+
export type { DirectionalLightShadow } from "./lights/DirectionalLightShadow.js";
|
|
70
71
|
export * from "./lights/HemisphereLight.js";
|
|
71
72
|
export * from "./lights/Light.js";
|
|
72
73
|
export * from "./lights/LightProbe.js";
|
|
74
|
+
export type { LightShadow, LightShadowJSON } from "./lights/LightShadow.js";
|
|
73
75
|
export * from "./lights/PointLight.js";
|
|
76
|
+
export type { PointLightShadow } from "./lights/PointLightShadow.js";
|
|
74
77
|
export * from "./lights/RectAreaLight.js";
|
|
75
78
|
export * from "./lights/SpotLight.js";
|
|
79
|
+
export type { SpotLightShadow } from "./lights/SpotLightShadow.js";
|
|
76
80
|
export * from "./loaders/AnimationLoader.js";
|
|
77
81
|
export * from "./loaders/AudioLoader.js";
|
|
78
82
|
export * from "./loaders/BufferGeometryLoader.js";
|
three/src/math/Matrix3.d.ts
CHANGED
|
@@ -170,10 +170,15 @@ export class Matrix3 {
|
|
|
170
170
|
/**
|
|
171
171
|
* Writes the elements of this matrix to an array in
|
|
172
172
|
* {@link https://en.wikipedia.org/wiki/Row-_and_column-major_order#Column-major_order column-major} format.
|
|
173
|
-
|
|
173
|
+
*/
|
|
174
|
+
toArray(): Matrix3Tuple;
|
|
175
|
+
/**
|
|
176
|
+
* Writes the elements of this matrix to an array in
|
|
177
|
+
* {@link https://en.wikipedia.org/wiki/Row-_and_column-major_order#Column-major_order column-major} format.
|
|
178
|
+
* @param array array to store the resulting vector in. If not given a new array will be created.
|
|
174
179
|
* @param offset (optional) offset in the array at which to put the result.
|
|
175
180
|
*/
|
|
176
|
-
toArray<TArray extends ArrayLike<number
|
|
181
|
+
toArray<TArray extends ArrayLike<number>>(array: TArray, offset?: number): TArray;
|
|
177
182
|
|
|
178
183
|
clone(): this;
|
|
179
184
|
}
|
three/src/math/Matrix4.d.ts
CHANGED
|
@@ -272,8 +272,13 @@ export class Matrix4 {
|
|
|
272
272
|
/**
|
|
273
273
|
* Writes the elements of this matrix to an array in
|
|
274
274
|
* {@link https://en.wikipedia.org/wiki/Row-_and_column-major_order#Column-major_order column-major} format.
|
|
275
|
-
|
|
275
|
+
*/
|
|
276
|
+
toArray(): Matrix4Tuple;
|
|
277
|
+
/**
|
|
278
|
+
* Writes the elements of this matrix to an array in
|
|
279
|
+
* {@link https://en.wikipedia.org/wiki/Row-_and_column-major_order#Column-major_order column-major} format.
|
|
280
|
+
* @param array array to store the resulting vector in.
|
|
276
281
|
* @param offset (optional) offset in the array at which to put the result.
|
|
277
282
|
*/
|
|
278
|
-
toArray<TArray extends ArrayLike<number
|
|
283
|
+
toArray<TArray extends ArrayLike<number>>(array: TArray, offset?: number): TArray;
|
|
279
284
|
}
|