@types/three 0.135.0 → 0.136.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, 06 Dec 2021 23:31:03 GMT
11
+ * Last updated: Mon, 03 Jan 2022 15:01:28 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `THREE`
14
14
 
@@ -152,8 +152,6 @@ export class ArcballControls extends EventDispatcher {
152
152
 
153
153
  unsetMouseAction(mouse: ArcballControlsMouseActionMouse, key?: ArcballControlsMouseActionKeys): boolean;
154
154
 
155
- setTarget(x: number, y: number, z: number): void;
156
-
157
155
  update(): void;
158
156
 
159
157
  dispose(): void;
@@ -37,5 +37,6 @@ export class TransformControls extends Object3D {
37
37
  setScaleSnap(scaleSnap: number | null): void;
38
38
  setSize(size: number): void;
39
39
  setSpace(space: 'world' | 'local'): void;
40
+ reset(): void;
40
41
  dispose(): void;
41
42
  }
@@ -1,24 +1,20 @@
1
- import {
2
- CubeTexture,
3
- LoadingManager,
4
- DataTextureLoader,
5
- PixelFormat,
6
- TextureDataType,
7
- TextureEncoding,
8
- } from '../../../src/Three';
1
+ import { CubeTexture, LoadingManager, DataTextureLoader, PixelFormat, TextureDataType } from '../../../src/Three';
9
2
 
10
3
  export interface RGBM {
11
4
  width: number;
12
5
  height: number;
13
- data: Uint8Array;
6
+ data: Uint16Array | Float32Array;
14
7
  header: string;
15
8
  format: PixelFormat;
16
9
  type: TextureDataType;
17
10
  flipY: boolean;
18
- encoding: TextureEncoding;
19
11
  }
20
12
 
21
13
  export class RGBMLoader extends DataTextureLoader {
14
+ type: TextureDataType;
15
+
16
+ maxRange: number;
17
+
22
18
  constructor(manager?: LoadingManager);
23
19
 
24
20
  loadCubemap(
@@ -29,4 +25,8 @@ export class RGBMLoader extends DataTextureLoader {
29
25
  ): CubeTexture;
30
26
 
31
27
  parse(buffer: ArrayBuffer): RGBM;
28
+
29
+ setDataType(dataType: TextureDataType): this;
30
+
31
+ setMaxRange(value: number): this;
32
32
  }
@@ -13,4 +13,6 @@ export class Reflector extends Mesh {
13
13
  constructor(geometry?: BufferGeometry, options?: ReflectorOptions);
14
14
 
15
15
  getRenderTarget(): WebGLRenderTarget;
16
+
17
+ dispose(): void;
16
18
  }
@@ -13,4 +13,6 @@ export class Refractor extends Mesh {
13
13
  constructor(geometry?: BufferGeometry, options?: RefractorOptions);
14
14
 
15
15
  getRenderTarget(): WebGLRenderTarget;
16
+
17
+ dispose(): void;
16
18
  }
three/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for three 0.135
1
+ // Type definitions for three 0.136
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.135.0",
3
+ "version": "0.136.0",
4
4
  "description": "TypeScript definitions for three",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three",
6
6
  "license": "MIT",
@@ -25,6 +25,6 @@
25
25
  },
26
26
  "scripts": {},
27
27
  "dependencies": {},
28
- "typesPublisherContentHash": "d0154c4f95513cc2c40c0bf65e56ad0b1bd41ffca75f306c6e9bf6c0c8e6dd84",
28
+ "typesPublisherContentHash": "fc646ca261a81275f767c4d73525a7edd6d769ac837d7a54015dad64f2d216e1",
29
29
  "typeScriptVersion": "3.8"
30
30
  }
three/src/Three.d.ts CHANGED
@@ -224,4 +224,5 @@ export * from './textures/CompressedTexture';
224
224
  export * from './textures/CubeTexture';
225
225
  export * from './textures/CanvasTexture';
226
226
  export * from './textures/DepthTexture';
227
+ export * from './textures/FramebufferTexture';
227
228
  export * from './textures/Texture';
three/src/constants.d.ts CHANGED
@@ -157,7 +157,6 @@ export const RGBFormat: PixelFormat;
157
157
  export const RGBAFormat: PixelFormat;
158
158
  export const LuminanceFormat: PixelFormat;
159
159
  export const LuminanceAlphaFormat: PixelFormat;
160
- export const RGBEFormat: PixelFormat;
161
160
  export const DepthFormat: PixelFormat;
162
161
  export const DepthStencilFormat: PixelFormat;
163
162
  export const RedFormat: PixelFormat;
@@ -315,12 +314,9 @@ export const TriangleFanDrawMode: TrianglesDrawModes;
315
314
  export enum TextureEncoding {}
316
315
  export const LinearEncoding: TextureEncoding;
317
316
  export const sRGBEncoding: TextureEncoding;
318
- export const GammaEncoding: TextureEncoding;
319
- export const RGBEEncoding: TextureEncoding;
320
317
  export const LogLuvEncoding: TextureEncoding;
321
318
  export const RGBM7Encoding: TextureEncoding;
322
319
  export const RGBM16Encoding: TextureEncoding;
323
- export const RGBDEncoding: TextureEncoding;
324
320
 
325
321
  // Depth packing strategies
326
322
  export enum DepthPackingStrategies {}
three/src/math/Color.d.ts CHANGED
@@ -85,28 +85,6 @@ export class Color {
85
85
  */
86
86
  copy(color: Color): this;
87
87
 
88
- /**
89
- * Copies given color making conversion from gamma to linear space.
90
- * @param color Color to copy.
91
- */
92
- copyGammaToLinear(color: Color, gammaFactor?: number): Color;
93
-
94
- /**
95
- * Copies given color making conversion from linear to gamma space.
96
- * @param color Color to copy.
97
- */
98
- copyLinearToGamma(color: Color, gammaFactor?: number): Color;
99
-
100
- /**
101
- * Converts this color from gamma to linear space.
102
- */
103
- convertGammaToLinear(gammaFactor?: number): Color;
104
-
105
- /**
106
- * Converts this color from linear to gamma space.
107
- */
108
- convertLinearToGamma(gammaFactor?: number): Color;
109
-
110
88
  /**
111
89
  * Copies given color making conversion from sRGB to linear space.
112
90
  * @param color Color to copy.
@@ -453,11 +453,6 @@ export class WebGLRenderer implements Renderer {
453
453
  */
454
454
  resetState(): void;
455
455
 
456
- /**
457
- * @deprecated
458
- */
459
- gammaFactor: number;
460
-
461
456
  /**
462
457
  * @deprecated Use {@link WebGLRenderer#xr .xr} instead.
463
458
  */
@@ -0,0 +1,8 @@
1
+ import { Texture } from './Texture';
2
+ import { PixelFormat } from '../constants';
3
+
4
+ export class FramebufferTexture extends Texture {
5
+ readonly isFramebufferTexture: true;
6
+
7
+ constructor(width: number, height: number, format: PixelFormat);
8
+ }