@types/three 0.136.0 → 0.138.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.
Files changed (130) hide show
  1. three/README.md +1 -1
  2. three/examples/jsm/{WebGL.d.ts → capabilities/WebGL.d.ts} +3 -1
  3. three/examples/jsm/controls/OrbitControls.d.ts +4 -1
  4. three/examples/jsm/curves/CurveExtras.d.ts +52 -54
  5. three/examples/jsm/exporters/EXRExporter.d.ts +20 -0
  6. three/examples/jsm/geometries/ConvexGeometry.d.ts +1 -1
  7. three/examples/jsm/helpers/OctreeHelper.d.ts +14 -0
  8. three/examples/jsm/interactive/HTMLMesh.d.ts +1 -0
  9. three/examples/jsm/loaders/GLTFLoader.d.ts +2 -9
  10. three/examples/jsm/loaders/LDrawLoader.d.ts +6 -0
  11. three/examples/jsm/loaders/LUT3dlLoader.d.ts +2 -2
  12. three/examples/jsm/loaders/LUTCubeLoader.d.ts +2 -2
  13. three/examples/jsm/loaders/VOXLoader.d.ts +2 -2
  14. three/examples/jsm/math/OBB.d.ts +1 -1
  15. three/examples/jsm/objects/Reflector.d.ts +1 -0
  16. three/examples/jsm/objects/Refractor.d.ts +1 -0
  17. three/examples/jsm/postprocessing/LUTPass.d.ts +3 -3
  18. three/examples/jsm/utils/LDrawUtils.d.ts +5 -0
  19. three/examples/jsm/utils/PackedPhongMaterial.d.ts +10 -0
  20. three/examples/jsm/utils/SceneUtils.d.ts +10 -12
  21. three/index.d.ts +1 -1
  22. three/package.json +3 -3
  23. three/src/Three.d.ts +5 -0
  24. three/src/constants.d.ts +4 -19
  25. three/src/core/Raycaster.d.ts +3 -2
  26. three/src/extras/ImageUtils.d.ts +2 -0
  27. three/src/extras/PMREMGenerator.d.ts +2 -2
  28. three/src/materials/Material.d.ts +5 -6
  29. three/src/math/Box3.d.ts +2 -2
  30. three/src/math/Color.d.ts +2 -0
  31. three/src/math/Euler.d.ts +0 -1
  32. three/src/math/Vector3.d.ts +5 -0
  33. three/src/renderers/WebGL3DRenderTarget.d.ts +28 -0
  34. three/src/renderers/WebGLArrayRenderTarget.d.ts +28 -0
  35. three/src/renderers/WebGLMultipleRenderTargets.d.ts +9 -1
  36. three/src/renderers/WebGLMultisampleRenderTarget.d.ts +5 -12
  37. three/src/renderers/WebGLRenderTarget.d.ts +7 -1
  38. three/src/renderers/WebGLRenderer.d.ts +3 -4
  39. three/src/renderers/webgl/WebGLUtils.d.ts +3 -1
  40. three/src/renderers/webxr/WebXRManager.d.ts +1 -1
  41. three/src/textures/CompressedTexture.d.ts +2 -1
  42. three/src/textures/CubeTexture.d.ts +1 -1
  43. three/src/textures/Data3DTexture.d.ts +33 -0
  44. three/src/textures/DataArrayTexture.d.ts +33 -0
  45. three/src/textures/DataTexture.d.ts +2 -1
  46. three/src/textures/DataTexture2DArray.d.ts +5 -32
  47. three/src/textures/DataTexture3D.d.ts +5 -32
  48. three/src/textures/DepthTexture.d.ts +2 -1
  49. three/src/textures/Source.d.ts +39 -0
  50. three/src/textures/Texture.d.ts +30 -3
  51. three/src/textures/VideoTexture.d.ts +1 -1
  52. three/examples/jsm/loaders/VRMLoader.d.ts +0 -19
  53. three/examples/jsm/nodes/Nodes.d.ts +0 -106
  54. three/examples/jsm/nodes/accessors/CameraNode.d.ts +0 -29
  55. three/examples/jsm/nodes/accessors/ColorsNode.d.ts +0 -10
  56. three/examples/jsm/nodes/accessors/LightNode.d.ts +0 -12
  57. three/examples/jsm/nodes/accessors/NormalNode.d.ts +0 -13
  58. three/examples/jsm/nodes/accessors/PositionNode.d.ts +0 -15
  59. three/examples/jsm/nodes/accessors/ReflectNode.d.ts +0 -12
  60. three/examples/jsm/nodes/accessors/ResolutionNode.d.ts +0 -14
  61. three/examples/jsm/nodes/accessors/ScreenUVNode.d.ts +0 -11
  62. three/examples/jsm/nodes/accessors/UVNode.d.ts +0 -10
  63. three/examples/jsm/nodes/core/AttributeNode.d.ts +0 -13
  64. three/examples/jsm/nodes/core/ConstNode.d.ts +0 -22
  65. three/examples/jsm/nodes/core/ExpressionNode.d.ts +0 -5
  66. three/examples/jsm/nodes/core/FunctionCallNode.d.ts +0 -17
  67. three/examples/jsm/nodes/core/FunctionNode.d.ts +0 -28
  68. three/examples/jsm/nodes/core/InputNode.d.ts +0 -12
  69. three/examples/jsm/nodes/core/Node.d.ts +0 -34
  70. three/examples/jsm/nodes/core/NodeBuilder.d.ts +0 -149
  71. three/examples/jsm/nodes/core/NodeFrame.d.ts +0 -17
  72. three/examples/jsm/nodes/core/NodeLib.d.ts +0 -22
  73. three/examples/jsm/nodes/core/NodeUniform.d.ts +0 -17
  74. three/examples/jsm/nodes/core/NodeUtils.d.ts +0 -7
  75. three/examples/jsm/nodes/core/StructNode.d.ts +0 -19
  76. three/examples/jsm/nodes/core/TempNode.d.ts +0 -23
  77. three/examples/jsm/nodes/core/VarNode.d.ts +0 -12
  78. three/examples/jsm/nodes/effects/BlurNode.d.ts +0 -31
  79. three/examples/jsm/nodes/effects/ColorAdjustmentNode.d.ts +0 -27
  80. three/examples/jsm/nodes/effects/LuminanceNode.d.ts +0 -18
  81. three/examples/jsm/nodes/inputs/BoolNode.d.ts +0 -19
  82. three/examples/jsm/nodes/inputs/ColorNode.d.ts +0 -21
  83. three/examples/jsm/nodes/inputs/CubeTextureNode.d.ts +0 -17
  84. three/examples/jsm/nodes/inputs/FloatNode.d.ts +0 -19
  85. three/examples/jsm/nodes/inputs/IntNode.d.ts +0 -19
  86. three/examples/jsm/nodes/inputs/Matrix3Node.d.ts +0 -22
  87. three/examples/jsm/nodes/inputs/Matrix4Node.d.ts +0 -22
  88. three/examples/jsm/nodes/inputs/PropertyNode.d.ts +0 -10
  89. three/examples/jsm/nodes/inputs/RTTNode.d.ts +0 -27
  90. three/examples/jsm/nodes/inputs/ReflectorNode.d.ts +0 -21
  91. three/examples/jsm/nodes/inputs/ScreenNode.d.ts +0 -11
  92. three/examples/jsm/nodes/inputs/TextureNode.d.ts +0 -20
  93. three/examples/jsm/nodes/inputs/Vector2Node.d.ts +0 -21
  94. three/examples/jsm/nodes/inputs/Vector3Node.d.ts +0 -21
  95. three/examples/jsm/nodes/inputs/Vector4Node.d.ts +0 -21
  96. three/examples/jsm/nodes/materials/BasicNodeMaterial.d.ts +0 -11
  97. three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts +0 -21
  98. three/examples/jsm/nodes/materials/NodeMaterial.d.ts +0 -28
  99. three/examples/jsm/nodes/materials/PhongNodeMaterial.d.ts +0 -21
  100. three/examples/jsm/nodes/materials/SpriteNodeMaterial.d.ts +0 -12
  101. three/examples/jsm/nodes/materials/StandardNodeMaterial.d.ts +0 -25
  102. three/examples/jsm/nodes/materials/nodes/BasicNode.d.ts +0 -15
  103. three/examples/jsm/nodes/materials/nodes/MeshStandardNode.d.ts +0 -25
  104. three/examples/jsm/nodes/materials/nodes/PhongNode.d.ts +0 -14
  105. three/examples/jsm/nodes/materials/nodes/RawNode.d.ts +0 -10
  106. three/examples/jsm/nodes/materials/nodes/SpriteNode.d.ts +0 -13
  107. three/examples/jsm/nodes/materials/nodes/StandardNode.d.ts +0 -15
  108. three/examples/jsm/nodes/math/CondNode.d.ts +0 -26
  109. three/examples/jsm/nodes/math/MathNode.d.ts +0 -57
  110. three/examples/jsm/nodes/math/OperatorNode.d.ts +0 -17
  111. three/examples/jsm/nodes/misc/BumpMapNode.d.ts +0 -21
  112. three/examples/jsm/nodes/misc/NormalMapNode.d.ts +0 -19
  113. three/examples/jsm/nodes/misc/TextureCubeNode.d.ts +0 -21
  114. three/examples/jsm/nodes/misc/TextureCubeUVNode.d.ts +0 -18
  115. three/examples/jsm/nodes/postprocessing/NodePass.d.ts +0 -15
  116. three/examples/jsm/nodes/postprocessing/NodePostProcessing.d.ts +0 -26
  117. three/examples/jsm/nodes/procedural/CheckerNode.d.ts +0 -17
  118. three/examples/jsm/nodes/procedural/NoiseNode.d.ts +0 -17
  119. three/examples/jsm/nodes/utils/BypassNode.d.ts +0 -11
  120. three/examples/jsm/nodes/utils/ColorSpaceNode.d.ts +0 -55
  121. three/examples/jsm/nodes/utils/JoinNode.d.ts +0 -15
  122. three/examples/jsm/nodes/utils/MaxMIPLevelNode.d.ts +0 -11
  123. three/examples/jsm/nodes/utils/SpecularMIPLevelNode.d.ts +0 -17
  124. three/examples/jsm/nodes/utils/SubSlot.d.ts +0 -9
  125. three/examples/jsm/nodes/utils/SwitchNode.d.ts +0 -11
  126. three/examples/jsm/nodes/utils/TimerNode.d.ts +0 -19
  127. three/examples/jsm/nodes/utils/UVTransformNode.d.ts +0 -15
  128. three/examples/jsm/nodes/utils/VelocityNode.d.ts +0 -28
  129. three/examples/jsm/objects/ReflectorRTT.d.ts +0 -6
  130. three/examples/jsm/utils/RoughnessMipmapper.d.ts +0 -7
@@ -1,17 +0,0 @@
1
- import { TempNode } from '../core/TempNode';
2
- import { FunctionNode } from '../core/FunctionNode';
3
- import { UVNode } from '../accessors/UVNode';
4
- import { UVTransformNode } from '../utils/UVTransformNode';
5
-
6
- export class CheckerNode extends TempNode {
7
- constructor(uv?: UVNode | UVTransformNode);
8
-
9
- uv: UVNode | UVTransformNode;
10
- nodeType: string;
11
-
12
- copy(source: CheckerNode): this;
13
-
14
- static Nodes: {
15
- checker: FunctionNode;
16
- };
17
- }
@@ -1,17 +0,0 @@
1
- import { TempNode } from '../core/TempNode';
2
- import { FunctionNode } from '../core/FunctionNode';
3
- import { UVNode } from '../accessors/UVNode';
4
- import { UVTransformNode } from '../utils/UVTransformNode';
5
-
6
- export class NoiseNode extends TempNode {
7
- constructor(uv?: UVNode | UVTransformNode);
8
-
9
- uv: UVNode | UVTransformNode;
10
- nodeType: string;
11
-
12
- copy(source: NoiseNode): this;
13
-
14
- static Nodes: {
15
- snoise: FunctionNode;
16
- };
17
- }
@@ -1,11 +0,0 @@
1
- import { Node } from '../core/Node';
2
-
3
- export class BypassNode extends Node {
4
- constructor(code: Node, value?: Node);
5
-
6
- code: Node;
7
- value: Node | undefined;
8
- nodeType: string;
9
-
10
- copy(source: BypassNode): this;
11
- }
@@ -1,55 +0,0 @@
1
- import { Node } from '../core/Node';
2
- import { TempNode } from '../core/TempNode';
3
- import { FunctionNode } from '../core/FunctionNode';
4
-
5
- export class ColorSpaceNode extends TempNode {
6
- constructor(input: Node, method?: string);
7
-
8
- input: Node;
9
- method: string | undefined;
10
- nodeType: string;
11
-
12
- fromEncoding(encoding: number): void;
13
- fromDecoding(encoding: number): void;
14
- copy(source: ColorSpaceNode): this;
15
-
16
- static Nodes: {
17
- LinearToLinear: FunctionNode;
18
- GammaToLinear: FunctionNode;
19
- LinearToGamma: FunctionNode;
20
- sRGBToLinear: FunctionNode;
21
- LinearTosRGB: FunctionNode;
22
- RGBEToLinear: FunctionNode;
23
- LinearToRGBE: FunctionNode;
24
- RGBMToLinear: FunctionNode;
25
- LinearToRGBM: FunctionNode;
26
- RGBDToLinear: FunctionNode;
27
- LinearToRGBD: FunctionNode;
28
- cLogLuvM: FunctionNode;
29
- LinearToLogLuv: FunctionNode;
30
- cLogLuvInverseM: FunctionNode;
31
- LogLuvToLinear: FunctionNode;
32
- };
33
-
34
- static LINEAR_TO_LINEAR: string;
35
-
36
- static GAMMA_TO_LINEAR: string;
37
- static LINEAR_TO_GAMMA: string;
38
-
39
- static SRGB_TO_LINEAR: string;
40
- static LINEAR_TO_SRGB: string;
41
-
42
- static RGBE_TO_LINEAR: string;
43
- static LINEAR_TO_RGBE: string;
44
-
45
- static RGBM_TO_LINEAR: string;
46
- static LINEAR_TO_RGBM: string;
47
-
48
- static RGBD_TO_LINEAR: string;
49
- static LINEAR_TO_RGBD: string;
50
-
51
- static LINEAR_TO_LOG_LUV: string;
52
- static LOG_LUV_TO_LINEAR: string;
53
-
54
- static getEncodingComponents(encoding: number): any[];
55
- }
@@ -1,15 +0,0 @@
1
- import { TempNode } from '../core/TempNode';
2
- import { Node } from '../core/Node';
3
-
4
- export class JoinNode extends TempNode {
5
- constructor(x: Node, y: Node, z?: Node, w?: Node);
6
-
7
- x: Node;
8
- y: Node;
9
- z: Node | undefined;
10
- w: Node | undefined;
11
- nodeType: string;
12
-
13
- getNumElements(): number;
14
- copy(source: JoinNode): this;
15
- }
@@ -1,11 +0,0 @@
1
- import { FloatNode } from '../inputs/FloatNode';
2
- import { Node } from '../core/Node';
3
-
4
- export class MaxMIPLevelNode extends FloatNode {
5
- constructor(texture: Node);
6
-
7
- texture: Node;
8
- maxMIPLevel: number;
9
- nodeType: string;
10
- value: number;
11
- }
@@ -1,17 +0,0 @@
1
- import { TempNode } from '../core/TempNode';
2
- import { MaxMIPLevelNode } from '../utils/MaxMIPLevelNode';
3
- import { FunctionNode } from '../core/FunctionNode';
4
-
5
- export class SpecularMIPLevelNode extends TempNode {
6
- constructor(texture: Node);
7
-
8
- texture: Node;
9
- maxMIPLevel: MaxMIPLevelNode;
10
- nodeType: string;
11
-
12
- copy(source: SpecularMIPLevelNode): this;
13
-
14
- static Nodes: {
15
- getSpecularMIPLevel: FunctionNode;
16
- };
17
- }
@@ -1,9 +0,0 @@
1
- import { TempNode } from '../core/TempNode';
2
-
3
- export class SubSlots extends TempNode {
4
- constructor(slots?: object);
5
-
6
- slots: Node[];
7
-
8
- copy(source: SubSlots): this;
9
- }
@@ -1,11 +0,0 @@
1
- import { Node } from '../core/Node';
2
-
3
- export class SwitchNode extends Node {
4
- constructor(node: Node, components?: string);
5
-
6
- node: Node;
7
- components: string;
8
- nodeType: string;
9
-
10
- copy(source: SwitchNode): this;
11
- }
@@ -1,19 +0,0 @@
1
- import { NodeFrame } from '../core/NodeFrame';
2
- import { FloatNode } from '../inputs/FloatNode';
3
-
4
- export class TimerNode extends FloatNode {
5
- constructor(scale?: number, scope?: string, timeScale?: boolean);
6
-
7
- scale: number;
8
- scope: string;
9
- timeScale: boolean;
10
- nodeType: string;
11
-
12
- getUnique(): boolean;
13
- updateFrame(frame: NodeFrame): void;
14
- copy(source: TimerNode): this;
15
-
16
- static GLOBAL: string;
17
- static LOCAL: string;
18
- static DELTA: string;
19
- }
@@ -1,15 +0,0 @@
1
- import { ExpressionNode } from '../core/ExpressionNode';
2
- import { Matrix3Node } from '../inputs/Matrix3Node';
3
- import { UVNode } from '../accessors/UVNode';
4
-
5
- export class UVTransformNode extends ExpressionNode {
6
- constructor(uv?: UVNode, position?: Matrix3Node);
7
-
8
- uv: UVNode;
9
- position: Matrix3Node;
10
-
11
- nodeType: string;
12
-
13
- setUvTransform(tx: number, ty: number, sx: number, sy: number, rotation: number, cx?: number, cy?: number): void;
14
- copy(source: UVTransformNode): this;
15
- }
@@ -1,28 +0,0 @@
1
- import { Object3D, Vector3 } from '../../../../src/Three';
2
-
3
- import { NodeFrame } from '../core/NodeFrame';
4
- import { Vector3Node } from '../inputs/Vector3Node';
5
-
6
- export interface VelocityNodeParams {
7
- damping: number;
8
- spring: number;
9
- type: string;
10
- }
11
-
12
- export class VelocityNode extends Vector3Node {
13
- constructor(target: Object3D, params?: VelocityNodeParams);
14
-
15
- velocity: Vector3;
16
- moment: Vector3 | undefined;
17
- speed: Vector3 | undefined;
18
- springVelocity: Vector3 | undefined;
19
- lastVelocity: Vector3 | undefined;
20
-
21
- nodeType: string;
22
-
23
- setParams(params: VelocityNodeParams): void;
24
- setTarget(target: Object3D): void;
25
- updateFrameVelocity(frame: NodeFrame): void;
26
- updateFrame(frame: NodeFrame): void;
27
- copy(source: VelocityNode): this;
28
- }
@@ -1,6 +0,0 @@
1
- import { BufferGeometry } from '../../../src/Three';
2
- import { Reflector, ReflectorOptions } from './Reflector';
3
-
4
- export class ReflectorRTT extends Reflector {
5
- constructor(geometry?: BufferGeometry, options?: ReflectorOptions);
6
- }
@@ -1,7 +0,0 @@
1
- import { WebGLRenderer, MeshStandardMaterial } from '../../../src/Three';
2
-
3
- export class RoughnessMipmapper {
4
- constructor(renderer: WebGLRenderer);
5
- generateMipmaps(material: MeshStandardMaterial): void;
6
- dispose(): void;
7
- }