@types/three 0.183.1 → 0.184.1
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 +2 -2
- three/examples/jsm/Addons.d.ts +11 -0
- three/examples/jsm/controls/FirstPersonControls.d.ts +5 -10
- three/examples/jsm/controls/TransformControls.d.ts +24 -0
- three/examples/jsm/geometries/TextGeometry.d.ts +43 -71
- three/examples/jsm/helpers/LightProbeGridHelper.d.ts +12 -0
- three/examples/jsm/inspector/Extension.d.ts +9 -0
- three/examples/jsm/inspector/Inspector.d.ts +21 -2
- three/examples/jsm/inspector/RendererInspector.d.ts +7 -2
- three/examples/jsm/inspector/extensions/tsl-graph/TSLGraphEditor.d.ts +20 -0
- three/examples/jsm/inspector/extensions/tsl-graph/TSLGraphLoader.d.ts +11 -0
- three/examples/jsm/inspector/tabs/Parameters.d.ts +22 -1
- three/examples/jsm/inspector/ui/Tab.d.ts +5 -1
- three/examples/jsm/inspector/ui/Values.d.ts +23 -3
- three/examples/jsm/interaction/InteractionManager.d.ts +18 -0
- three/examples/jsm/lighting/DynamicLighting.d.ts +16 -0
- three/examples/jsm/lighting/LightProbeGrid.d.ts +34 -0
- three/examples/jsm/loaders/ColladaLoader.d.ts +1 -0
- three/examples/jsm/loaders/EXRLoader.d.ts +2 -0
- three/examples/jsm/loaders/LDrawLoader.d.ts +1 -1
- three/examples/jsm/loaders/VTKLoader.d.ts +6 -0
- three/examples/jsm/objects/Reflector.d.ts +1 -2
- three/examples/jsm/objects/SkyMesh.d.ts +1 -0
- three/examples/jsm/tsl/WebGLNodesHandler.d.ts +14 -0
- three/examples/jsm/tsl/display/FSR1Node.d.ts +17 -0
- three/examples/jsm/tsl/display/SharpenNode.d.ts +22 -0
- three/examples/jsm/tsl/display/TAAUNode.d.ts +31 -0
- three/examples/jsm/tsl/lighting/DynamicLightsNode.d.ts +21 -0
- three/examples/jsm/tsl/lighting/TiledLightsNode.d.ts +1 -1
- three/examples/jsm/tsl/lighting/data/AmbientLightDataNode.d.ts +9 -0
- three/examples/jsm/tsl/lighting/data/DirectionalLightDataNode.d.ts +9 -0
- three/examples/jsm/tsl/lighting/data/HemisphereLightDataNode.d.ts +9 -0
- three/examples/jsm/tsl/lighting/data/PointLightDataNode.d.ts +9 -0
- three/examples/jsm/tsl/lighting/data/SpotLightDataNode.d.ts +9 -0
- three/examples/jsm/utils/ColorUtils.d.ts +5 -0
- three/examples/jsm/utils/SceneOptimizer.d.ts +18 -0
- three/examples/jsm/webxr/XRHandMeshModel.d.ts +1 -0
- three/package.json +4 -5
- three/src/Three.Core.d.ts +13 -1
- three/src/Three.TSL.d.ts +7 -1
- three/src/Three.WebGPU.Nodes.d.ts +8 -4
- three/src/Three.WebGPU.d.ts +11 -4
- three/src/Three.d.ts +0 -11
- three/src/animation/AnimationMixer.d.ts +3 -1
- three/src/audio/AudioContext.d.ts +2 -2
- three/src/core/BufferAttribute.d.ts +13 -1
- three/src/core/RenderTarget.d.ts +8 -1
- three/src/core/UniformsGroup.d.ts +7 -1
- three/src/extras/Controls.d.ts +5 -1
- three/src/geometries/ExtrudeGeometry.d.ts +39 -53
- three/src/loaders/FileLoader.d.ts +2 -2
- three/src/materials/Material.d.ts +5 -1
- three/src/materials/MeshToonMaterial.d.ts +1 -1
- three/src/materials/nodes/Line2NodeMaterial.d.ts +7 -0
- three/src/materials/nodes/VolumeNodeMaterial.d.ts +1 -1
- three/src/materials/nodes/manager/NodeMaterialObserver.d.ts +11 -1
- three/src/math/ColorManagement.d.ts +1 -1
- three/src/math/Plane.d.ts +1 -1
- three/src/nodes/Nodes.d.ts +0 -1
- three/src/nodes/TSL.d.ts +1 -1
- three/src/nodes/accessors/BufferAttributeNode.d.ts +1 -1
- three/src/nodes/core/Node.d.ts +37 -9
- three/src/nodes/core/StackNode.d.ts +1 -1
- three/src/nodes/core/StructTypeNode.d.ts +0 -4
- three/src/nodes/core/UniformGroupNode.d.ts +4 -3
- three/src/nodes/core/UniformNode.d.ts +3 -0
- three/src/nodes/core/VarNode.d.ts +16 -10
- three/src/nodes/display/ViewportDepthTextureNode.d.ts +1 -3
- three/src/nodes/display/ViewportTextureNode.d.ts +5 -5
- three/src/nodes/functions/ShadowMaskModel.d.ts +2 -2
- three/src/nodes/gpgpu/BarrierNode.d.ts +2 -0
- three/src/nodes/gpgpu/ComputeBuiltinNode.d.ts +16 -7
- three/src/nodes/gpgpu/ComputeNode.d.ts +6 -2
- three/src/nodes/materialx/lib/mx_noise.d.ts +4 -5
- three/src/nodes/math/MathNode.d.ts +64 -6
- three/src/nodes/tsl/TSLBase.d.ts +1 -1
- three/src/nodes/tsl/TSLCore.d.ts +568 -160
- three/src/nodes/utils/ConvertNode.d.ts +9 -2
- three/src/nodes/utils/EventNode.d.ts +6 -0
- three/src/nodes/utils/JoinNode.d.ts +9 -5
- three/src/nodes/utils/LoopNode.d.ts +1 -2
- three/src/nodes/utils/{RemapNode.d.ts → Remap.d.ts} +6 -22
- three/src/objects/BatchedMesh.d.ts +2 -0
- three/src/objects/InstancedMesh.d.ts +6 -6
- three/src/objects/SkinnedMesh.d.ts +3 -0
- three/src/renderers/WebGLRenderer.d.ts +10 -1
- three/src/renderers/common/Animation.d.ts +2 -2
- three/src/renderers/common/Attributes.d.ts +9 -1
- three/src/renderers/common/Backend.d.ts +4 -0
- three/src/renderers/common/Background.d.ts +2 -2
- three/src/renderers/common/BindGroup.d.ts +0 -6
- three/src/renderers/common/Bindings.d.ts +2 -2
- three/src/renderers/common/CanvasTarget.d.ts +3 -1
- three/src/renderers/common/ComputePipeline.d.ts +1 -1
- three/src/renderers/common/Info.d.ts +132 -1
- three/src/renderers/common/InspectorBase.d.ts +7 -1
- three/src/renderers/common/Pipelines.d.ts +19 -3
- three/src/renderers/common/ReadbackBuffer.d.ts +63 -0
- three/src/renderers/common/RenderBundle.d.ts +4 -1
- three/src/renderers/common/RenderBundles.d.ts +3 -1
- three/src/renderers/common/RenderObject.d.ts +2 -2
- three/src/renderers/common/RenderObjects.d.ts +3 -3
- three/src/renderers/common/Renderer.d.ts +29 -16
- three/src/renderers/common/XRManager.d.ts +1 -7
- three/src/renderers/common/nodes/NodeManager.d.ts +51 -11
- three/src/renderers/shaders/ShaderChunk.d.ts +1 -0
- three/src/renderers/shaders/UniformsLib.d.ts +5 -1
- three/src/renderers/webgl/WebGLBufferRenderer.d.ts +0 -6
- three/src/renderers/webgl/WebGLIndexedBufferRenderer.d.ts +0 -6
- three/src/renderers/webgl/WebGLPrograms.d.ts +5 -0
- three/src/renderers/webgl-fallback/WebGLBackend.d.ts +2 -0
- three/src/renderers/webgl-fallback/nodes/GLSLNodeBuilder.d.ts +19 -0
- three/src/renderers/webgl-fallback/utils/WebGLCapabilities.d.ts +51 -0
- three/src/renderers/webgpu/WebGPUBackend.d.ts +9 -4
- three/src/renderers/webgpu/utils/WebGPUConstants.d.ts +6 -0
- three/src/renderers/webxr/WebXRController.d.ts +5 -1
- three/src/renderers/webxr/WebXRManager.d.ts +3 -1
- three/src/scenes/Scene.d.ts +2 -2
- three/src/textures/ExternalTexture.d.ts +3 -2
- three/src/textures/HTMLTexture.d.ts +27 -0
- three/src/textures/Texture.d.ts +16 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import Node from "../../core/Node.js";
|
|
2
|
-
import VarNode from "../../core/VarNode.js";
|
|
3
2
|
|
|
4
3
|
export const mx_select: (
|
|
5
4
|
b_immutable: Node | boolean,
|
|
@@ -14,7 +13,7 @@ export const mx_negate_if: (
|
|
|
14
13
|
|
|
15
14
|
export const mx_floor: (x_immutable: Node | number) => Node;
|
|
16
15
|
|
|
17
|
-
export const mx_floorfrac: (x_immutable: Node | number, i:
|
|
16
|
+
export const mx_floorfrac: (x_immutable: Node | number, i: Node) => Node;
|
|
18
17
|
|
|
19
18
|
export const mx_bilerp_0: (
|
|
20
19
|
v0_immutable: Node | number,
|
|
@@ -140,9 +139,9 @@ export const mx_gradient_scale3d: (v_immutable: Node | number) => Node;
|
|
|
140
139
|
export const mx_rotl32: (x_immutable: Node | number, k_immutable: Node | number) => Node;
|
|
141
140
|
|
|
142
141
|
export const mx_bjmix: (
|
|
143
|
-
a:
|
|
144
|
-
b:
|
|
145
|
-
c:
|
|
142
|
+
a: Node,
|
|
143
|
+
b: Node,
|
|
144
|
+
c: Node,
|
|
146
145
|
) => Node;
|
|
147
146
|
|
|
148
147
|
export const mx_bjfinal: (
|
|
@@ -18,11 +18,17 @@ export type MathNodeMethod1 =
|
|
|
18
18
|
| typeof MathNode.NORMALIZE
|
|
19
19
|
| typeof MathNode.FRACT
|
|
20
20
|
| typeof MathNode.SIN
|
|
21
|
+
| typeof MathNode.SINH
|
|
21
22
|
| typeof MathNode.COS
|
|
23
|
+
| typeof MathNode.COSH
|
|
22
24
|
| typeof MathNode.TAN
|
|
25
|
+
| typeof MathNode.TANH
|
|
23
26
|
| typeof MathNode.ASIN
|
|
27
|
+
| typeof MathNode.ASINH
|
|
24
28
|
| typeof MathNode.ACOS
|
|
29
|
+
| typeof MathNode.ACOSH
|
|
25
30
|
| typeof MathNode.ATAN
|
|
31
|
+
| typeof MathNode.ATANH
|
|
26
32
|
| typeof MathNode.ABS
|
|
27
33
|
| typeof MathNode.SIGN
|
|
28
34
|
| typeof MathNode.LENGTH
|
|
@@ -77,11 +83,17 @@ export default class MathNode extends TempNode {
|
|
|
77
83
|
static NORMALIZE: "normalize";
|
|
78
84
|
static FRACT: "fract";
|
|
79
85
|
static SIN: "sin";
|
|
86
|
+
static SINH: "sinh";
|
|
80
87
|
static COS: "cos";
|
|
88
|
+
static COSH: "cosh";
|
|
81
89
|
static TAN: "tan";
|
|
90
|
+
static TANH: "tanh";
|
|
82
91
|
static ASIN: "asin";
|
|
92
|
+
static ASINH: "asinh";
|
|
83
93
|
static ACOS: "acos";
|
|
94
|
+
static ACOSH: "acosh";
|
|
84
95
|
static ATAN: "atan";
|
|
96
|
+
static ATANH: "atanh";
|
|
85
97
|
static ABS: "abs";
|
|
86
98
|
static SIGN: "sign";
|
|
87
99
|
static LENGTH: "length";
|
|
@@ -236,20 +248,66 @@ declare module "../core/Node.js" {
|
|
|
236
248
|
}
|
|
237
249
|
}
|
|
238
250
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
251
|
+
interface TrigonometricFunction {
|
|
252
|
+
(x: FloatOrNumber): Node<"float">;
|
|
253
|
+
(x: Node<"vec2">): Node<"vec2">;
|
|
254
|
+
(x: Node<"vec3">): Node<"vec3">;
|
|
255
|
+
(x: Node<"vec4">): Node<"vec4">;
|
|
256
|
+
}
|
|
257
|
+
interface ArcTanFunction {
|
|
258
|
+
(y: FloatOrNumber, x?: FloatOrNumber): Node<"float">;
|
|
259
|
+
(y: Node<"vec2">, x?: Vec2OrLessOrFloat): Node<"vec2">;
|
|
260
|
+
(y: Node<"vec3">, x?: Vec3OrLessOrFloat): Node<"vec3">;
|
|
261
|
+
(y: Node<"vec4">, x?: Vec4OrLessOrFloat): Node<"vec4">;
|
|
262
|
+
}
|
|
263
|
+
export const sin: TrigonometricFunction;
|
|
264
|
+
export const sinh: TrigonometricFunction;
|
|
265
|
+
export const cos: TrigonometricFunction;
|
|
266
|
+
export const cosh: TrigonometricFunction;
|
|
267
|
+
export const tan: TrigonometricFunction;
|
|
268
|
+
export const tanh: TrigonometricFunction;
|
|
269
|
+
export const asin: TrigonometricFunction;
|
|
270
|
+
export const asinh: TrigonometricFunction;
|
|
271
|
+
export const acos: TrigonometricFunction;
|
|
272
|
+
export const acosh: TrigonometricFunction;
|
|
273
|
+
export const atan: ArcTanFunction;
|
|
274
|
+
export const atanh: TrigonometricFunction;
|
|
245
275
|
declare module "../core/Node.js" {
|
|
246
276
|
interface FloatExtensions {
|
|
247
277
|
sin: () => Node<"float">;
|
|
278
|
+
sinh: () => Node<"float">;
|
|
248
279
|
cos: () => Node<"float">;
|
|
280
|
+
cosh: () => Node<"float">;
|
|
249
281
|
tan: () => Node<"float">;
|
|
282
|
+
tanh: () => Node<"float">;
|
|
250
283
|
asin: () => Node<"float">;
|
|
284
|
+
asinh: () => Node<"float">;
|
|
251
285
|
acos: () => Node<"float">;
|
|
286
|
+
acosh: () => Node<"float">;
|
|
252
287
|
atan: (x?: FloatOrNumber) => Node<"float">;
|
|
288
|
+
atanh: () => Node<"float">;
|
|
289
|
+
}
|
|
290
|
+
interface FloatVecExtensions<TVec extends FloatVecType> {
|
|
291
|
+
sin: () => Node<TVec>;
|
|
292
|
+
sinh: () => Node<TVec>;
|
|
293
|
+
cos: () => Node<TVec>;
|
|
294
|
+
cosh: () => Node<TVec>;
|
|
295
|
+
tan: () => Node<TVec>;
|
|
296
|
+
tanh: () => Node<TVec>;
|
|
297
|
+
asin: () => Node<TVec>;
|
|
298
|
+
asinh: () => Node<TVec>;
|
|
299
|
+
acos: () => Node<TVec>;
|
|
300
|
+
acosh: () => Node<TVec>;
|
|
301
|
+
atanh: () => Node<TVec>;
|
|
302
|
+
}
|
|
303
|
+
interface Vec2Extensions {
|
|
304
|
+
atan: (x?: Vec2OrLessOrFloat) => Node<"vec2">;
|
|
305
|
+
}
|
|
306
|
+
interface Vec3Extensions {
|
|
307
|
+
atan: (x?: Vec3OrLessOrFloat) => Node<"vec3">;
|
|
308
|
+
}
|
|
309
|
+
interface Vec4Extensions {
|
|
310
|
+
atan: (x?: Vec4OrLessOrFloat) => Node<"vec4">;
|
|
253
311
|
}
|
|
254
312
|
}
|
|
255
313
|
|
three/src/nodes/tsl/TSLBase.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export * from "../math/MathNode.js";
|
|
|
21
21
|
export * from "../math/OperatorNode.js";
|
|
22
22
|
export * from "../utils/DebugNode.js";
|
|
23
23
|
export * from "../utils/Discard.js";
|
|
24
|
-
export * from "../utils/
|
|
24
|
+
export * from "../utils/Remap.js";
|
|
25
25
|
export * from "./TSLCore.js";
|
|
26
26
|
|
|
27
27
|
/**
|