@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 +1 -1
- three/examples/jsm/controls/ArcballControls.d.ts +0 -2
- three/examples/jsm/controls/TransformControls.d.ts +1 -0
- three/examples/jsm/loaders/RGBMLoader.d.ts +10 -10
- three/examples/jsm/objects/Reflector.d.ts +2 -0
- three/examples/jsm/objects/Refractor.d.ts +2 -0
- three/index.d.ts +1 -1
- three/package.json +2 -2
- three/src/Three.d.ts +1 -0
- three/src/constants.d.ts +0 -4
- three/src/math/Color.d.ts +0 -22
- three/src/renderers/WebGLRenderer.d.ts +0 -5
- three/src/textures/FramebufferTexture.d.ts +8 -0
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,
|
|
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;
|
|
@@ -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:
|
|
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
|
}
|
three/index.d.ts
CHANGED
three/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/three",
|
|
3
|
-
"version": "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": "
|
|
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.
|