@types/three 0.167.0 → 0.167.2
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 +11 -0
- three/src/Three.d.ts +41 -1
- three/src/math/Matrix3.d.ts +7 -2
- three/src/math/Matrix4.d.ts +7 -2
- three/src/renderers/webxr/WebXRDepthSensing.d.ts +0 -7
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: Tue, 20 Aug 2024 22:36:03 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.2",
|
|
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": "b2631004bef25b94aabf001fd93006de112c6e2e3bd264b1182ce7d196d50498",
|
|
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";
|
|
@@ -153,6 +157,13 @@ export type {
|
|
|
153
157
|
XRJointSpace,
|
|
154
158
|
XRTargetRaySpace,
|
|
155
159
|
} from "./renderers/webxr/WebXRController.js";
|
|
160
|
+
export type { WebXRDepthSensing } from "./renderers/webxr/WebXRDepthSensing.js";
|
|
161
|
+
export type {
|
|
162
|
+
WebXRArrayCamera,
|
|
163
|
+
WebXRCamera,
|
|
164
|
+
WebXRManager,
|
|
165
|
+
WebXRManagerEventMap,
|
|
166
|
+
} from "./renderers/webxr/WebXRManager.js";
|
|
156
167
|
export * from "./scenes/Fog.js";
|
|
157
168
|
export * from "./scenes/FogExp2.js";
|
|
158
169
|
export * from "./scenes/Scene.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";
|
|
@@ -134,8 +138,37 @@ export * from "./renderers/shaders/ShaderChunk.js";
|
|
|
134
138
|
export * from "./renderers/shaders/ShaderLib.js";
|
|
135
139
|
export * from "./renderers/shaders/UniformsLib.js";
|
|
136
140
|
export { UniformsUtils } from "./renderers/shaders/UniformsUtils.js";
|
|
137
|
-
export type {
|
|
141
|
+
export type { WebGLAttributes } from "./renderers/webgl/WebGLAttributes.js";
|
|
142
|
+
export type { WebGLBindingStates } from "./renderers/webgl/WebGLBindingStates.js";
|
|
143
|
+
export type { WebGLBufferRenderer } from "./renderers/webgl/WebGLBufferRenderer.js";
|
|
144
|
+
export type { WebGLCapabilities, WebGLCapabilitiesParameters } from "./renderers/webgl/WebGLCapabilities.js";
|
|
145
|
+
export type { WebGLClipping } from "./renderers/webgl/WebGLClipping.js";
|
|
146
|
+
export type { WebGLCubeMaps } from "./renderers/webgl/WebGLCubeMaps.js";
|
|
147
|
+
export type { WebGLCubeUVMaps } from "./renderers/webgl/WebGLCubeUVMaps.js";
|
|
148
|
+
export type { WebGLExtensions } from "./renderers/webgl/WebGLExtensions.js";
|
|
149
|
+
export type { WebGLGeometries } from "./renderers/webgl/WebGLGeometries.js";
|
|
150
|
+
export type { WebGLIndexedBufferRenderer } from "./renderers/webgl/WebGLIndexedBufferRenderer.js";
|
|
151
|
+
export type { WebGLInfo } from "./renderers/webgl/WebGLInfo.js";
|
|
152
|
+
export type { WebGLLights, WebGLLightsState } from "./renderers/webgl/WebGLLights.js";
|
|
153
|
+
export type { WebGLObjects } from "./renderers/webgl/WebGLObjects.js";
|
|
154
|
+
export type { WebGLProgram } from "./renderers/webgl/WebGLProgram.js";
|
|
155
|
+
export type {
|
|
156
|
+
WebGLProgramParameters,
|
|
157
|
+
WebGLProgramParametersWithUniforms,
|
|
158
|
+
WebGLPrograms,
|
|
159
|
+
} from "./renderers/webgl/WebGLPrograms.js";
|
|
160
|
+
export type { WebGLProperties } from "./renderers/webgl/WebGLProperties.js";
|
|
161
|
+
export type { RenderItem, WebGLRenderList, WebGLRenderLists } from "./renderers/webgl/WebGLRenderLists.js";
|
|
162
|
+
export type { WebGLShader } from "./renderers/webgl/WebGLShader.js";
|
|
138
163
|
export type { WebGLShadowMap } from "./renderers/webgl/WebGLShadowMap.js";
|
|
164
|
+
export type {
|
|
165
|
+
WebGLColorBuffer,
|
|
166
|
+
WebGLDepthBuffer,
|
|
167
|
+
WebGLState,
|
|
168
|
+
WebGLStencilBuffer,
|
|
169
|
+
} from "./renderers/webgl/WebGLState.js";
|
|
170
|
+
export type { WebGLTextures } from "./renderers/webgl/WebGLTextures.js";
|
|
171
|
+
export type { WebGLUniforms } from "./renderers/webgl/WebGLUniforms.js";
|
|
139
172
|
export * from "./renderers/webgl/WebGLUtils.js";
|
|
140
173
|
export * from "./renderers/WebGL3DRenderTarget.js";
|
|
141
174
|
export * from "./renderers/WebGLArrayRenderTarget.js";
|
|
@@ -153,6 +186,13 @@ export type {
|
|
|
153
186
|
XRJointSpace,
|
|
154
187
|
XRTargetRaySpace,
|
|
155
188
|
} from "./renderers/webxr/WebXRController.js";
|
|
189
|
+
export type { WebXRDepthSensing } from "./renderers/webxr/WebXRDepthSensing.js";
|
|
190
|
+
export type {
|
|
191
|
+
WebXRArrayCamera,
|
|
192
|
+
WebXRCamera,
|
|
193
|
+
WebXRManager,
|
|
194
|
+
WebXRManagerEventMap,
|
|
195
|
+
} from "./renderers/webxr/WebXRManager.js";
|
|
156
196
|
export * from "./scenes/Fog.js";
|
|
157
197
|
export * from "./scenes/FogExp2.js";
|
|
158
198
|
export * from "./scenes/Scene.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
|
}
|
|
@@ -3,13 +3,6 @@ import { Texture } from "../../textures/Texture.js";
|
|
|
3
3
|
import { WebGLRenderer } from "../WebGLRenderer.js";
|
|
4
4
|
import { WebXRArrayCamera } from "./WebXRManager.js";
|
|
5
5
|
|
|
6
|
-
// FIXME Replace by XRWebGLDepthInformation when typed in @types/webxr
|
|
7
|
-
interface XRWebGLDepthInformation {
|
|
8
|
-
readonly texture: WebGLTexture;
|
|
9
|
-
readonly depthNear: number;
|
|
10
|
-
readonly depthFar: number;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
6
|
export class WebXRDepthSensing {
|
|
14
7
|
texture: Texture | null;
|
|
15
8
|
mesh: Mesh | null;
|