@types/three 0.148.1 → 0.149.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.
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: Mon, 23 Jan 2023 18:32:36 GMT
11
+ * Last updated: Mon, 30 Jan 2023 20:02:38 GMT
12
12
  * Dependencies: [@types/webxr](https://npmjs.com/package/@types/webxr)
13
13
  * Global values: `THREE`
14
14
 
@@ -0,0 +1,16 @@
1
+ import { Object3D, Vector3, WebGLRenderer } from '../../../src/Three';
2
+ import { Octree } from '../math/Octree';
3
+
4
+ export class ViewHelper extends Object3D {
5
+ animating: boolean;
6
+ center: Vector3;
7
+
8
+ readonly isViewHelper: true;
9
+
10
+ constructor(camera: Octree, domElement: HTMLElement);
11
+
12
+ render(renderer: WebGLRenderer): void;
13
+ handleClick(event: PointerEvent): boolean;
14
+ update(delta: number): void;
15
+ dispose(): void;
16
+ }
@@ -13,6 +13,6 @@ export class HDRCubeTextureLoader extends Loader {
13
13
  onProgress?: (event: ProgressEvent) => void,
14
14
  onError?: (event: ErrorEvent) => void,
15
15
  ): CubeTexture;
16
- loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<CubeTexture>;
16
+ loadAsync(urls: string[], onProgress?: (event: ProgressEvent) => void): Promise<CubeTexture>;
17
17
  setDataType(type: TextureDataType): this;
18
18
  }
@@ -20,6 +20,7 @@ declare class IFCLoader extends Loader {
20
20
  onProgress?: (event: ProgressEvent) => void,
21
21
  onError?: (event: ErrorEvent) => void,
22
22
  ): void;
23
+ loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<IFCModel>;
23
24
 
24
25
  parse(buffer: ArrayBuffer): Promise<IFCModel>;
25
26
  }
@@ -13,6 +13,7 @@ export class USDZLoader extends Loader {
13
13
  onProgress?: (event: ProgressEvent) => void,
14
14
  onError?: (event: ErrorEvent) => void,
15
15
  ): void;
16
+ loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<Mesh>;
16
17
 
17
18
  parse(buffer: ArrayBuffer | string): THREE.Group;
18
19
  }
@@ -15,7 +15,7 @@ export class VOXLoader extends Loader {
15
15
  onProgress?: (event: ProgressEvent) => void,
16
16
  onError?: (event: ErrorEvent) => void,
17
17
  ): void;
18
- loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<object[]>;
18
+ loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<Chunk[]>;
19
19
  parse(data: ArrayBuffer): object[];
20
20
  }
21
21
 
@@ -14,6 +14,7 @@ export default class NodeLoader extends Loader {
14
14
  onProgress?: (event: ProgressEvent) => void,
15
15
  onError?: (event: ErrorEvent) => void,
16
16
  ): void;
17
+ loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<NodeLoaderResult>;
17
18
 
18
19
  parseNodes(json: AnyJson): NodeLoaderResult;
19
20
  parse(json: AnyJson): Node;
three/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for three 0.148
1
+ // Type definitions for three 0.149
2
2
  // Project: https://threejs.org/
3
3
  // Definitions by: Josh Ellis <https://github.com/joshuaellis>
4
4
  // Nathan Bierema <https://github.com/Methuselah96>
three/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/three",
3
- "version": "0.148.1",
3
+ "version": "0.149.0",
4
4
  "description": "TypeScript definitions for three",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three",
6
6
  "license": "MIT",
@@ -27,6 +27,6 @@
27
27
  "dependencies": {
28
28
  "@types/webxr": "*"
29
29
  },
30
- "typesPublisherContentHash": "ee8fd128bc5ae440fcab56b69067c71262d47937aa1ab8a080442efe025e59e5",
30
+ "typesPublisherContentHash": "26b43856591e0e71a44773611c3705a12a8926b63542851ba0c85e160758d30b",
31
31
  "typeScriptVersion": "4.4"
32
32
  }
three/src/Three.d.ts CHANGED
@@ -66,7 +66,7 @@ export * from './extras/core/Path';
66
66
  export * from './extras/core/ShapePath';
67
67
  export * from './extras/core/CurvePath';
68
68
  export * from './extras/core/Curve';
69
- export * from './extras/DataUtils';
69
+ export * as DataUtils from './extras/DataUtils';
70
70
  export * from './extras/Earcut';
71
71
  export * from './extras/ImageUtils';
72
72
  export * from './extras/ShapeUtils';
@@ -179,7 +179,6 @@ export * from './objects/Group';
179
179
  /**
180
180
  * Renderers
181
181
  */
182
- export * from './renderers/WebGLMultisampleRenderTarget';
183
182
  export * from './renderers/WebGLCubeRenderTarget';
184
183
  export * from './renderers/WebGLMultipleRenderTargets';
185
184
  export * from './renderers/WebGLRenderTarget';
@@ -226,8 +225,6 @@ export * from './scenes/Scene';
226
225
  export * from './textures/VideoTexture';
227
226
  export * from './textures/CompressedArrayTexture';
228
227
  export * from './textures/DataTexture';
229
- export * from './textures/DataTexture2DArray';
230
- export * from './textures/DataTexture3D';
231
228
  export * from './textures/CompressedTexture';
232
229
  export * from './textures/CubeTexture';
233
230
  export * from './textures/Data3DTexture';
three/src/constants.d.ts CHANGED
@@ -36,15 +36,12 @@ export const VSMShadowMap: ShadowMapType;
36
36
  // side
37
37
  /**
38
38
  * Defines which side of faces will be rendered - front, back or both.
39
- * Default is FrontSide.
40
- *
41
- * TwoPassDoubleSide will renderer double-sided transparent materials in two passes in back-front order to mitigate transparency artifacts.
39
+ * Default is {@link FrontSide}.
42
40
  */
43
41
  export enum Side {}
44
42
  export const FrontSide: Side;
45
43
  export const BackSide: Side;
46
44
  export const DoubleSide: Side;
47
- export const TwoPassDoubleSide: Side;
48
45
 
49
46
  // blending modes
50
47
  export enum Blending {}
@@ -154,7 +151,6 @@ export const UnsignedInt248Type: TextureDataType;
154
151
  // Pixel formats
155
152
  export enum PixelFormat {}
156
153
  export const AlphaFormat: PixelFormat;
157
- export const RGBFormat: PixelFormat;
158
154
  export const RGBAFormat: PixelFormat;
159
155
  export const LuminanceFormat: PixelFormat;
160
156
  export const LuminanceAlphaFormat: PixelFormat;
@@ -270,6 +266,12 @@ export const RGBA_ASTC_12x12_Format: CompressedPixelFormat;
270
266
  // BPTC compressed texture formats
271
267
  export const RGBA_BPTC_Format: CompressedPixelFormat;
272
268
 
269
+ // RGTC compressed texture formats
270
+ export const RED_RGTC1_Format: CompressedPixelFormat;
271
+ export const SIGNED_RED_RGTC1_Format: CompressedPixelFormat;
272
+ export const RED_GREEN_RGTC2_Format: CompressedPixelFormat;
273
+ export const SIGNED_RED_GREEN_RGTC2_Format: CompressedPixelFormat;
274
+
273
275
  // Loop styles for AnimationAction
274
276
  export enum AnimationActionLoopStyles {}
275
277
  export const LoopOnce: AnimationActionLoopStyles;
@@ -1,4 +1,6 @@
1
1
  import { BufferAttribute } from './BufferAttribute';
2
+ import { InterleavedBufferAttribute } from './InterleavedBufferAttribute';
3
+ import { GLBufferAttribute } from './GLBufferAttribute';
2
4
  import { Box3 } from './../math/Box3';
3
5
  import { Sphere } from './../math/Sphere';
4
6
  import { Matrix4 } from './../math/Matrix4';
@@ -6,7 +8,6 @@ import { Quaternion } from './../math/Quaternion';
6
8
  import { Vector2 } from './../math/Vector2';
7
9
  import { Vector3 } from './../math/Vector3';
8
10
  import { EventDispatcher } from './EventDispatcher';
9
- import { InterleavedBufferAttribute } from './InterleavedBufferAttribute';
10
11
  import { BuiltinShaderAttributeName } from '../constants';
11
12
 
12
13
  /**
@@ -47,7 +48,7 @@ export class BufferGeometry extends EventDispatcher {
47
48
  * @default {}
48
49
  */
49
50
  attributes: {
50
- [name: string]: BufferAttribute | InterleavedBufferAttribute;
51
+ [name: string]: BufferAttribute | InterleavedBufferAttribute | GLBufferAttribute;
51
52
  };
52
53
 
53
54
  /**
@@ -93,9 +94,11 @@ export class BufferGeometry extends EventDispatcher {
93
94
 
94
95
  setAttribute(
95
96
  name: BuiltinShaderAttributeName | (string & {}),
96
- attribute: BufferAttribute | InterleavedBufferAttribute,
97
+ attribute: BufferAttribute | InterleavedBufferAttribute | GLBufferAttribute,
97
98
  ): BufferGeometry;
98
- getAttribute(name: BuiltinShaderAttributeName | (string & {})): BufferAttribute | InterleavedBufferAttribute;
99
+ getAttribute(
100
+ name: BuiltinShaderAttributeName | (string & {}),
101
+ ): BufferAttribute | InterleavedBufferAttribute | GLBufferAttribute;
99
102
  deleteAttribute(name: BuiltinShaderAttributeName | (string & {})): BufferGeometry;
100
103
  hasAttribute(name: BuiltinShaderAttributeName | (string & {})): boolean;
101
104
 
@@ -5,6 +5,10 @@
5
5
  export class GLBufferAttribute {
6
6
  constructor(buffer: WebGLBuffer, type: number, itemSize: number, elementSize: 1 | 2 | 4, count: number);
7
7
 
8
+ /**
9
+ * @default ''
10
+ */
11
+ name: string;
8
12
  buffer: WebGLBuffer;
9
13
  type: number;
10
14
  itemSize: number;
@@ -51,8 +51,11 @@ export class Object3D<E extends BaseEvent = Event> extends EventDispatcher<E> {
51
51
  children: Object3D[];
52
52
 
53
53
  /**
54
- * Up direction.
55
- * @default THREE.Object3D.DefaultUp.clone()
54
+ * This is used by the {@link lookAt} method, for example, to determine the orientation of the result.
55
+ *
56
+ * Default is {@link Object3D.DEFAULT_UP} - that is, `( 0, 1, 0 )`.
57
+ *
58
+ * @default {@link Object3D.DEFAULT_UP}
56
59
  */
57
60
  up: Vector3;
58
61
 
@@ -103,16 +106,15 @@ export class Object3D<E extends BaseEvent = Event> extends EventDispatcher<E> {
103
106
  matrixWorld: Matrix4;
104
107
 
105
108
  /**
106
- * When this is set, it calculates the matrix of position, (rotation or quaternion) and scale every frame and also
107
- * recalculates the matrixWorld property.
108
- * @default THREE.Object3D.DefaultMatrixAutoUpdate
109
+ * When this is set, it calculates the matrix of position, (rotation or quaternion) and
110
+ * scale every frame and also recalculates the matrixWorld property. Default is {@link Object3D.DEFAULT_MATRIX_AUTO_UPDATE} (true).
109
111
  */
110
112
  matrixAutoUpdate: boolean;
111
113
 
112
114
  /**
113
- * When this is set, the renderer checks every frame if the object and its children need matrix updates.
114
- * Otherwise, you have to maintain all matrices in the object and its children yourself.
115
- * @default THREE.Object3D.DefaultMatrixWorldAutoUpdate
115
+ * If set, then the renderer checks every frame if the object and its children need matrix updates.
116
+ * When it isn't, then you have to maintain all matrices in the object and its children yourself.
117
+ * Default is {@link Object3D.DEFAULT_MATRIX_WORLD_AUTO_UPDATE} (true).
116
118
  */
117
119
  matrixWorldAutoUpdate: boolean;
118
120
 
@@ -215,9 +217,23 @@ export class Object3D<E extends BaseEvent = Event> extends EventDispatcher<E> {
215
217
  group: Group,
216
218
  ) => void;
217
219
 
218
- static DefaultUp: Vector3;
219
- static DefaultMatrixAutoUpdate: boolean;
220
- static DefaultMatrixWorldAutoUpdate: boolean;
220
+ /**
221
+ * The default {@link up} direction for objects, also used as the default position for {@link DirectionalLight},
222
+ * {@link HemisphereLight} and {@link Spotlight} (which creates lights shining from the top down).
223
+ *
224
+ * Set to ( 0, 1, 0 ) by default.
225
+ */
226
+ static DEFAULT_UP: Vector3;
227
+
228
+ /**
229
+ * The default setting for {@link matrixAutoUpdate} for newly created Object3Ds.
230
+ */
231
+ static DEFAULT_MATRIX_AUTO_UPDATE: boolean;
232
+
233
+ /**
234
+ * The default setting for {@link matrixWorldAutoUpdate} for newly created Object3Ds.
235
+ */
236
+ static DEFAULT_MATRIX_WORLD_AUTO_UPDATE: boolean;
221
237
 
222
238
  /**
223
239
  * Applies the matrix transform to the object and updates the object's position, rotation and scale.
@@ -1,14 +1,14 @@
1
- export class Uniform {
2
- constructor(value: any);
1
+ export class Uniform<T = any> {
2
+ constructor(value: T);
3
3
  /**
4
4
  * @deprecated
5
5
  */
6
- constructor(type: string, value: any);
6
+ constructor(type: string, value: T);
7
7
  /**
8
8
  * @deprecated
9
9
  */
10
10
  type: string;
11
- value: any;
11
+ value: T;
12
12
  /**
13
13
  * @deprecated Use {@link Object3D#onBeforeRender object.onBeforeRender()} instead.
14
14
  */
@@ -17,5 +17,5 @@ export class Uniform {
17
17
  /**
18
18
  * @deprecated Use {@link Object3D#onBeforeRender object.onBeforeRender()} instead.
19
19
  */
20
- onUpdate(callback: () => void): Uniform;
20
+ onUpdate(callback: () => void): Uniform<T>;
21
21
  }
@@ -1,18 +1,61 @@
1
+ import { Color } from '../math/Color';
2
+ import { Matrix4 } from '../math/Matrix4';
1
3
  import { Camera } from './../cameras/Camera';
2
4
  import { LineSegments } from './../objects/LineSegments';
3
5
 
6
+ /**
7
+ * This helps with visualizing what a camera contains in its frustum.
8
+ * It visualizes the frustum of a camera using a {@link LineSegments}.
9
+ *
10
+ * CameraHelper must be a child of the scene.
11
+ */
4
12
  export class CameraHelper extends LineSegments {
13
+ /**
14
+ * This create a new CameraHelper for the specified camera.
15
+ *
16
+ * @param camera - The camera to visualize.
17
+ */
5
18
  constructor(camera: Camera);
6
19
 
20
+ /**
21
+ * The camera being visualized.
22
+ */
7
23
  camera: Camera;
24
+
25
+ /**
26
+ * This contains the points used to visualize the camera.
27
+ */
8
28
  pointMap: { [id: string]: number[] };
9
29
 
30
+ /**
31
+ * Reference to the {@link Camera.matrixWorld}.
32
+ */
33
+ matrix: Matrix4;
34
+
35
+ /**
36
+ * See {@link Object3D.matrixAutoUpdate}.
37
+ * Set to `false` here as the helper is using the camera's {@link Camera.matrixWorld}.
38
+ */
39
+ matrixAutoUpdate: boolean;
40
+
10
41
  /**
11
42
  * @default 'CameraHelper'
12
43
  */
13
44
  type: string;
14
45
 
46
+ /**
47
+ * Updates the helper based on the projectionMatrix of the camera.
48
+ */
15
49
  update(): void;
16
50
 
51
+ /**
52
+ * Frees the GPU-related resources allocated by this instance.
53
+ * Call this method whenever this instance is no longer used in your app.
54
+ */
17
55
  dispose(): void;
56
+
57
+ /**
58
+ * Defines the colors of the helper.
59
+ */
60
+ setColors(frustum: Color, cone: Color, up: Color, target: Color, cross: Color): this;
18
61
  }
@@ -22,7 +22,9 @@ export class DirectionalLight extends Light {
22
22
  type: string;
23
23
 
24
24
  /**
25
- * @default THREE.Object3D.DefaultUp
25
+ * This is set equal to {@link Object3D.DEFAULT_UP} (0, 1, 0), so that the light shines from the top down.
26
+ *
27
+ * @default {@link Object3D.DEFAULT_UP}
26
28
  */
27
29
  readonly position: Vector3;
28
30
 
@@ -17,7 +17,9 @@ export class HemisphereLight extends Light {
17
17
  type: string;
18
18
 
19
19
  /**
20
- * @default THREE.Object3D.DefaultUp
20
+ * This is set equal to {@link Object3D.DEFAULT_UP} (0, 1, 0), so that the light shines from the top down.
21
+ *
22
+ * @default {@link Object3D.DEFAULT_UP}
21
23
  */
22
24
  position: Vector3;
23
25
 
@@ -25,7 +25,9 @@ export class SpotLight extends Light {
25
25
  type: string;
26
26
 
27
27
  /**
28
- * @default THREE.Object3D.DefaultUp
28
+ * This is set equal to {@link Object3D.DEFAULT_UP} (0, 1, 0), so that the light shines from the top down.
29
+ *
30
+ * @default {@link Object3D.DEFAULT_UP}
29
31
  */
30
32
  position: Vector3;
31
33
 
@@ -12,5 +12,5 @@ export class CubeTextureLoader extends Loader {
12
12
  onError?: (event: ErrorEvent) => void,
13
13
  ): CubeTexture;
14
14
 
15
- loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<CubeTexture>;
15
+ loadAsync(urls: string[], onProgress?: (event: ProgressEvent) => void): Promise<CubeTexture>;
16
16
  }
@@ -34,11 +34,10 @@ export class Loader {
34
34
 
35
35
  /*
36
36
  load(): void;
37
+ loadAsync(): Promise<unknown>;
37
38
  parse(): void;
38
39
  */
39
40
 
40
- loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<any>;
41
-
42
41
  setCrossOrigin(crossOrigin: string): this;
43
42
  setWithCredentials(value: boolean): this;
44
43
  setPath(path: string): this;
@@ -39,6 +39,7 @@ export interface MaterialParameters {
39
39
  polygonOffsetUnits?: number | undefined;
40
40
  precision?: 'highp' | 'mediump' | 'lowp' | null | undefined;
41
41
  premultipliedAlpha?: boolean | undefined;
42
+ forceSinglePass?: boolean | undefined;
42
43
  dithering?: boolean | undefined;
43
44
  side?: Side | undefined;
44
45
  shadowSide?: Side | undefined;
@@ -283,6 +284,11 @@ export class Material extends EventDispatcher {
283
284
  */
284
285
  premultipliedAlpha: boolean;
285
286
 
287
+ /**
288
+ * @default false
289
+ */
290
+ forceSinglePass: boolean;
291
+
286
292
  /**
287
293
  * Whether to apply dithering to the color to remove the appearance of banding. Default is false.
288
294
  * @default false
@@ -291,8 +297,9 @@ export class Material extends EventDispatcher {
291
297
 
292
298
  /**
293
299
  * Defines which of the face sides will be rendered - front, back or both.
294
- * Default is THREE.FrontSide. Other options are THREE.BackSide and THREE.DoubleSide.
295
- * @default THREE.FrontSide
300
+ * Default is {@link THREE.FrontSide}. Other options are {@link THREE.BackSide} and {@link THREE.DoubleSide}.
301
+ *
302
+ * @default {@link THREE.FrontSide}
296
303
  */
297
304
  side: Side;
298
305
 
three/src/math/Euler.d.ts CHANGED
@@ -23,7 +23,7 @@ export class Euler {
23
23
  z: number;
24
24
 
25
25
  /**
26
- * @default THREE.Euler.DefaultOrder
26
+ * @default THREE.Euler.DEFAULT_ORDER
27
27
  */
28
28
  order: EulerOrder;
29
29
  readonly isEuler: true;
@@ -42,8 +42,7 @@ export class Euler {
42
42
  toArray(array?: Array<number | string | undefined>, offset?: number): Array<number | string | undefined>;
43
43
  _onChange(callback: () => void): this;
44
44
 
45
- static RotationOrders: EulerOrder[];
46
- static DefaultOrder: 'XYZ';
45
+ static DEFAULT_ORDER: 'XYZ';
47
46
 
48
47
  [Symbol.iterator](): Generator<string | number, void>;
49
48
  }
@@ -21,10 +21,10 @@ export class Mesh<
21
21
  updateMorphTargets(): void;
22
22
 
23
23
  /**
24
- * Get the current position of the indicated vertex in local space,
24
+ * Get the local-space position of the vertex at the given index,
25
25
  * taking into account the current animation state of both morph targets and skinning.
26
26
  */
27
- getVertexPosition(vert: number, target: Vector3): Vector3;
27
+ getVertexPosition(index: number, target: Vector3): Vector3;
28
28
 
29
29
  raycast(raycaster: Raycaster, intersects: Intersection[]): void;
30
30
  }
@@ -1,18 +1,19 @@
1
1
  import { WebGLCapabilities } from './WebGLCapabilities';
2
2
  import { BufferAttribute } from '../../core/BufferAttribute';
3
3
  import { InterleavedBufferAttribute } from '../../core/InterleavedBufferAttribute';
4
+ import { GLBufferAttribute } from '../../core/GLBufferAttribute';
4
5
 
5
6
  export class WebGLAttributes {
6
7
  constructor(gl: WebGLRenderingContext | WebGL2RenderingContext, capabilities: WebGLCapabilities);
7
8
 
8
- get(attribute: BufferAttribute | InterleavedBufferAttribute): {
9
+ get(attribute: BufferAttribute | InterleavedBufferAttribute | GLBufferAttribute): {
9
10
  buffer: WebGLBuffer;
10
11
  type: number;
11
12
  bytesPerElement: number;
12
13
  version: number;
13
14
  };
14
15
 
15
- remove(attribute: BufferAttribute | InterleavedBufferAttribute): void;
16
+ remove(attribute: BufferAttribute | InterleavedBufferAttribute | GLBufferAttribute): void;
16
17
 
17
- update(attribute: BufferAttribute | InterleavedBufferAttribute, bufferType: number): void;
18
+ update(attribute: BufferAttribute | InterleavedBufferAttribute | GLBufferAttribute, bufferType: number): void;
18
19
  }
@@ -1,5 +1,6 @@
1
1
  import { Camera } from './../../cameras/Camera';
2
2
  import { Material } from './../../materials/Material';
3
+ import { Plane } from '../../math/Plane';
3
4
  import { WebGLProperties } from './WebGLProperties';
4
5
 
5
6
  export class WebGLClipping {
@@ -17,8 +18,9 @@ export class WebGLClipping {
17
18
  */
18
19
  numIntersection: number;
19
20
 
20
- init(planes: any[], enableLocalClipping: boolean, camera: Camera): boolean;
21
+ init(planes: any[], enableLocalClipping: boolean): boolean;
21
22
  beginShadows(): void;
22
23
  endShadows(): void;
24
+ setGlobalState(planes: Plane[], camera: Camera): void;
23
25
  setState(material: Material, camera: Camera, useCache: boolean): void;
24
26
  }
@@ -40,12 +40,12 @@ export class WebXRManager extends EventDispatcher {
40
40
  getBinding(): XRWebGLBinding;
41
41
  getFrame(): XRFrame;
42
42
  getSession(): XRSession | null;
43
- setSession(value: XRSession): Promise<void>;
43
+ setSession(value: XRSession | null): Promise<void>;
44
44
  getCamera(): WebXRArrayCamera;
45
45
  updateCamera(camera: PerspectiveCamera): void;
46
46
  setAnimationLoop(callback: XRFrameRequestCallback | null): void;
47
47
  getFoveation(): number | undefined;
48
- setFoveation(foveation: number): void;
48
+ setFoveation(value: number): void;
49
49
 
50
50
  /**
51
51
  * Returns the set of planes detected by WebXR's plane detection API.
@@ -1,5 +1,5 @@
1
1
  import { Texture } from './Texture';
2
- import { TextureFilter } from '../constants';
2
+ import { TextureFilter, Wrapping } from '../constants';
3
3
 
4
4
  export class Data3DTexture extends Texture {
5
5
  constructor(data: BufferSource, width: number, height: number, depth: number);
@@ -17,7 +17,7 @@ export class Data3DTexture extends Texture {
17
17
  /**
18
18
  * @default THREE.ClampToEdgeWrapping
19
19
  */
20
- wrapR: boolean;
20
+ wrapR: Wrapping;
21
21
 
22
22
  /**
23
23
  * @default false
@@ -1,6 +0,0 @@
1
- import { WebGLRenderTarget } from './WebGLRenderTarget';
2
-
3
- /**
4
- * @deprecated THREE.WebGLMultisampleRenderTarget has been removed. Use a normal {@link WebGLRenderTarget render target} and set the "samples" property to greater 0 to enable multisampling.
5
- */
6
- export class WebGLMultisampleRenderTarget extends WebGLRenderTarget {}
@@ -1,6 +0,0 @@
1
- import { DataArrayTexture } from './DataArrayTexture';
2
-
3
- /**
4
- * @deprecated THREE.DataTexture2DArray has been renamed to DataArrayTexture.
5
- */
6
- export class DataTexture2DArray extends DataArrayTexture {}
@@ -1,6 +0,0 @@
1
- import { Data3DTexture } from './Data3DTexture';
2
-
3
- /**
4
- * @deprecated THREE.DataTexture3D has been renamed to Data3DTexture.
5
- */
6
- export class DataTexture3D extends Data3DTexture {}