@types/three 0.170.0 → 0.171.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 (106) hide show
  1. three/README.md +1 -1
  2. three/build/three.core.d.ts +1 -0
  3. three/build/three.core.min.d.ts +1 -0
  4. three/build/three.tsl.d.ts +1 -0
  5. three/build/three.tsl.min.d.ts +1 -0
  6. three/examples/jsm/controls/ArcballControls.d.ts +5 -0
  7. three/examples/jsm/controls/TransformControls.d.ts +1 -1
  8. three/examples/jsm/csm/CSMShadowNode.d.ts +1 -2
  9. three/examples/jsm/exporters/GLTFExporter.d.ts +23 -7
  10. three/examples/jsm/geometries/DecalGeometry.d.ts +1 -1
  11. three/examples/jsm/materials/LDrawConditionalLineNodeMaterial.d.ts +1 -1
  12. three/examples/jsm/objects/SkyMesh.d.ts +2 -2
  13. three/examples/jsm/objects/Water2Mesh.d.ts +13 -2
  14. three/examples/jsm/objects/WaterMesh.d.ts +11 -2
  15. three/examples/jsm/tsl/display/AfterImageNode.d.ts +2 -1
  16. three/examples/jsm/tsl/display/AnaglyphPassNode.d.ts +1 -1
  17. three/examples/jsm/tsl/display/AnamorphicNode.d.ts +2 -2
  18. three/examples/jsm/tsl/display/BleachBypass.d.ts +2 -1
  19. three/examples/jsm/tsl/display/BloomNode.d.ts +2 -1
  20. three/examples/jsm/tsl/display/DenoiseNode.d.ts +3 -4
  21. three/examples/jsm/tsl/display/DepthOfFieldNode.d.ts +2 -1
  22. three/examples/jsm/tsl/display/DotScreenNode.d.ts +2 -2
  23. three/examples/jsm/tsl/display/FXAANode.d.ts +2 -1
  24. three/examples/jsm/tsl/display/FilmNode.d.ts +2 -1
  25. three/examples/jsm/tsl/display/GTAONode.d.ts +5 -8
  26. three/examples/jsm/tsl/display/GaussianBlurNode.d.ts +2 -2
  27. three/examples/jsm/tsl/display/LensflareNode.d.ts +2 -2
  28. three/examples/jsm/tsl/display/Lut3DNode.d.ts +2 -2
  29. three/examples/jsm/tsl/display/MotionBlur.d.ts +2 -1
  30. three/examples/jsm/tsl/display/OutlineNode.d.ts +2 -2
  31. three/examples/jsm/tsl/display/ParallaxBarrierPassNode.d.ts +1 -1
  32. three/examples/jsm/tsl/display/PixelationPassNode.d.ts +2 -2
  33. three/examples/jsm/tsl/display/RGBShiftNode.d.ts +2 -1
  34. three/examples/jsm/tsl/display/SMAANode.d.ts +2 -1
  35. three/examples/jsm/tsl/display/SSAAPassNode.d.ts +2 -2
  36. three/examples/jsm/tsl/display/SSRNode.d.ts +2 -2
  37. three/examples/jsm/tsl/display/Sepia.d.ts +2 -1
  38. three/examples/jsm/tsl/display/SobelOperatorNode.d.ts +2 -1
  39. three/examples/jsm/tsl/display/StereoCompositePassNode.d.ts +1 -2
  40. three/examples/jsm/tsl/display/StereoPassNode.d.ts +2 -2
  41. three/examples/jsm/tsl/display/TRAAPassNode.d.ts +2 -2
  42. three/examples/jsm/tsl/display/TransitionNode.d.ts +2 -1
  43. three/examples/jsm/tsl/display/hashBlur.d.ts +2 -1
  44. three/examples/jsm/tsl/lighting/TiledLightsNode.d.ts +2 -1
  45. three/package.json +4 -4
  46. three/src/Three.Core.d.ts +158 -0
  47. three/src/Three.TSL.d.ts +528 -0
  48. three/src/Three.WebGPU.Nodes.d.ts +14 -195
  49. three/src/Three.WebGPU.d.ts +13 -195
  50. three/src/Three.d.ts +2 -158
  51. three/src/animation/AnimationClip.d.ts +3 -1
  52. three/src/core/Clock.d.ts +4 -6
  53. three/src/core/InterleavedBuffer.d.ts +12 -0
  54. three/src/materials/Material.d.ts +6 -4
  55. three/src/materials/nodes/LineDashedNodeMaterial.d.ts +3 -0
  56. three/src/materials/nodes/NodeMaterial.d.ts +4 -1
  57. three/src/nodes/Nodes.d.ts +1 -1
  58. three/src/nodes/TSL.d.ts +8 -2
  59. three/src/nodes/accessors/Arrays.d.ts +6 -0
  60. three/src/nodes/accessors/BuiltinNode.d.ts +14 -0
  61. three/src/nodes/accessors/ClippingNode.d.ts +6 -0
  62. three/src/nodes/accessors/InstanceNode.d.ts +15 -3
  63. three/src/nodes/accessors/InstancedMeshNode.d.ts +11 -0
  64. three/src/nodes/accessors/Lights.d.ts +15 -0
  65. three/src/nodes/accessors/StorageBufferNode.d.ts +20 -11
  66. three/src/nodes/accessors/StorageTextureNode.d.ts +5 -3
  67. three/src/nodes/core/IndexNode.d.ts +2 -0
  68. three/src/nodes/core/NodeUtils.d.ts +7 -0
  69. three/src/nodes/core/StackNode.d.ts +6 -1
  70. three/src/nodes/core/constants.d.ts +6 -0
  71. three/src/nodes/display/BlendModes.d.ts +32 -0
  72. three/src/nodes/display/ScreenNode.d.ts +5 -0
  73. three/src/nodes/display/ViewportDepthNode.d.ts +3 -1
  74. three/src/nodes/gpgpu/AtomicFunctionNode.d.ts +88 -0
  75. three/src/nodes/gpgpu/BarrierNode.d.ts +12 -0
  76. three/src/nodes/gpgpu/ComputeBuiltinNode.d.ts +13 -0
  77. three/src/nodes/gpgpu/WorkgroupInfoNode.d.ts +17 -0
  78. three/src/nodes/lighting/AnalyticLightNode.d.ts +11 -0
  79. three/src/nodes/lighting/LightsNode.d.ts +2 -2
  80. three/src/nodes/lighting/PointLightNode.d.ts +3 -0
  81. three/src/nodes/lighting/PointShadowNode.d.ts +30 -0
  82. three/src/nodes/lighting/ShadowNode.d.ts +26 -3
  83. three/src/nodes/math/OperatorNode.d.ts +3 -0
  84. three/src/nodes/tsl/TSLBase.d.ts +5 -0
  85. three/src/nodes/tsl/TSLCore.d.ts +3 -0
  86. three/src/nodes/utils/SplitNode.d.ts +1 -1
  87. three/src/objects/BatchedMesh.d.ts +4 -4
  88. three/src/objects/ClippingGroup.d.ts +41 -0
  89. three/src/renderers/WebGLRenderer.d.ts +2 -0
  90. three/src/renderers/common/Animation.d.ts +11 -4
  91. three/src/renderers/common/ClippingContext.d.ts +16 -14
  92. three/src/renderers/common/RenderList.d.ts +5 -0
  93. three/src/renderers/common/RenderObject.d.ts +8 -4
  94. three/src/renderers/common/RenderObjects.d.ts +3 -0
  95. three/src/renderers/common/Renderer.d.ts +14 -1
  96. three/src/renderers/common/UniformsGroup.d.ts +1 -0
  97. three/src/renderers/common/extras/PMREMGenerator.d.ts +15 -1
  98. three/src/renderers/common/nodes/NodeLibrary.d.ts +2 -4
  99. three/src/renderers/common/nodes/NodeUniform.d.ts +7 -0
  100. three/src/renderers/webgl/WebGLState.d.ts +1 -1
  101. three/src/textures/Data3DTexture.d.ts +4 -2
  102. three/src/textures/DataArrayTexture.d.ts +1 -1
  103. three/src/textures/DataTexture.d.ts +6 -1
  104. three/src/nodes/display/BlendMode.d.ts +0 -10
  105. three/src/nodes/lighting/LightNode.d.ts +0 -18
  106. three/src/textures/types.d.ts +0 -9
@@ -1,205 +1,24 @@
1
- export * from "./animation/AnimationAction.js";
2
- export * from "./animation/AnimationClip.js";
3
- export * from "./animation/AnimationMixer.js";
4
- export * from "./animation/AnimationObjectGroup.js";
5
- export { AnimationUtils } from "./animation/AnimationUtils.js";
6
- export * from "./animation/KeyframeTrack.js";
7
- export * from "./animation/PropertyBinding.js";
8
- export * from "./animation/PropertyMixer.js";
9
- export * from "./animation/tracks/BooleanKeyframeTrack.js";
10
- export * from "./animation/tracks/ColorKeyframeTrack.js";
11
- export * from "./animation/tracks/NumberKeyframeTrack.js";
12
- export * from "./animation/tracks/QuaternionKeyframeTrack.js";
13
- export * from "./animation/tracks/StringKeyframeTrack.js";
14
- export * from "./animation/tracks/VectorKeyframeTrack.js";
15
- export * from "./audio/Audio.js";
16
- export * from "./audio/AudioAnalyser.js";
17
- export * from "./audio/AudioContext.js";
18
- export * from "./audio/AudioListener.js";
19
- export * from "./audio/PositionalAudio.js";
20
- export * from "./cameras/ArrayCamera.js";
21
- export * from "./cameras/Camera.js";
22
- export * from "./cameras/CubeCamera.js";
23
- export * from "./cameras/OrthographicCamera.js";
24
- export * from "./cameras/PerspectiveCamera.js";
25
- export * from "./cameras/StereoCamera.js";
26
- export * from "./constants.js";
27
- export * from "./core/BufferAttribute.js";
28
- export * from "./core/BufferGeometry.js";
29
- export * from "./core/Clock.js";
30
- export * from "./core/EventDispatcher.js";
31
- export * from "./core/GLBufferAttribute.js";
32
- export * from "./core/InstancedBufferAttribute.js";
33
- export * from "./core/InstancedBufferGeometry.js";
34
- export * from "./core/InstancedInterleavedBuffer.js";
35
- export * from "./core/InterleavedBuffer.js";
36
- export * from "./core/InterleavedBufferAttribute.js";
37
- export * from "./core/Layers.js";
38
- export * from "./core/Object3D.js";
39
- export * from "./core/Raycaster.js";
40
- export * from "./core/RenderTarget.js";
41
- export * from "./core/Uniform.js";
42
- export * from "./core/UniformsGroup.js";
43
- export * from "./extras/Controls.js";
44
- export * from "./extras/core/Curve.js";
45
- export * from "./extras/core/CurvePath.js";
46
- export * from "./extras/core/Path.js";
47
- export * from "./extras/core/Shape.js";
48
- export * from "./extras/core/ShapePath.js";
49
- export * from "./extras/curves/Curves.js";
50
- export { DataUtils } from "./extras/DataUtils.js";
51
- export * from "./extras/ImageUtils.js";
52
- // export * from "./extras/PMREMGenerator.js";
53
- export * from "./extras/ShapeUtils.js";
54
- export { TextureUtils } from "./extras/TextureUtils.js";
55
- export * from "./geometries/Geometries.js";
56
- export * from "./helpers/ArrowHelper.js";
57
- export * from "./helpers/AxesHelper.js";
58
- export * from "./helpers/Box3Helper.js";
59
- export * from "./helpers/BoxHelper.js";
60
- export * from "./helpers/CameraHelper.js";
61
- export * from "./helpers/DirectionalLightHelper.js";
62
- export * from "./helpers/GridHelper.js";
63
- export * from "./helpers/HemisphereLightHelper.js";
64
- export * from "./helpers/PlaneHelper.js";
65
- export * from "./helpers/PointLightHelper.js";
66
- export * from "./helpers/PolarGridHelper.js";
67
- export * from "./helpers/SkeletonHelper.js";
68
- export * from "./helpers/SpotLightHelper.js";
69
- export * from "./lights/AmbientLight.js";
70
- export * from "./lights/DirectionalLight.js";
71
- export type { DirectionalLightShadow } from "./lights/DirectionalLightShadow.js";
72
- export * from "./lights/HemisphereLight.js";
73
- export * from "./lights/Light.js";
74
- export * from "./lights/LightProbe.js";
75
- export type { LightShadow, LightShadowJSON } from "./lights/LightShadow.js";
76
- export * from "./lights/PointLight.js";
77
- export type { PointLightShadow } from "./lights/PointLightShadow.js";
78
- export * from "./lights/RectAreaLight.js";
79
- export * from "./lights/SpotLight.js";
80
- export type { SpotLightShadow } from "./lights/SpotLightShadow.js";
81
- export * from "./loaders/AnimationLoader.js";
82
- export * from "./loaders/AudioLoader.js";
83
- export * from "./loaders/BufferGeometryLoader.js";
84
- export * from "./loaders/Cache.js";
85
- export * from "./loaders/CompressedTextureLoader.js";
86
- export * from "./loaders/CubeTextureLoader.js";
87
- export * from "./loaders/DataTextureLoader.js";
88
- export * from "./loaders/FileLoader.js";
89
- export * from "./loaders/ImageBitmapLoader.js";
90
- export * from "./loaders/ImageLoader.js";
91
- export * from "./loaders/Loader.js";
92
- export * from "./loaders/LoaderUtils.js";
93
- export * from "./loaders/LoadingManager.js";
94
- export * from "./loaders/MaterialLoader.js";
95
- export * from "./loaders/ObjectLoader.js";
96
- export * from "./loaders/TextureLoader.js";
97
- export * from "./materials/Materials.js";
98
- export * from "./materials/nodes/NodeMaterials.js";
99
- export * from "./math/Box2.js";
100
- export * from "./math/Box3.js";
101
- export * from "./math/Color.js";
102
- export { ColorManagement, ColorSpaceDefinition } from "./math/ColorManagement.js";
103
- export * from "./math/Cylindrical.js";
104
- export * from "./math/Euler.js";
105
- export * from "./math/Frustum.js";
106
- export * from "./math/Interpolant.js";
107
- export * from "./math/interpolants/CubicInterpolant.js";
108
- export * from "./math/interpolants/DiscreteInterpolant.js";
109
- export * from "./math/interpolants/LinearInterpolant.js";
110
- export * from "./math/interpolants/QuaternionLinearInterpolant.js";
111
- export * from "./math/Line3.js";
112
- export { MathUtils } from "./math/MathUtils.js";
113
- export * from "./math/Matrix2.js";
114
- export * from "./math/Matrix3.js";
115
- export * from "./math/Matrix4.js";
116
- export * from "./math/Plane.js";
117
- export * from "./math/Quaternion.js";
118
- export * from "./math/Ray.js";
119
- export * from "./math/Sphere.js";
120
- export * from "./math/Spherical.js";
121
- export * from "./math/SphericalHarmonics3.js";
122
- export * from "./math/Triangle.js";
123
- export * from "./math/Vector2.js";
124
- export * from "./math/Vector3.js";
125
- export * from "./math/Vector4.js";
126
- export * from "./objects/BatchedMesh.js";
127
- export * from "./objects/Bone.js";
128
- export * from "./objects/Group.js";
129
- export * from "./objects/InstancedMesh.js";
130
- export * from "./objects/Line.js";
131
- export * from "./objects/LineLoop.js";
132
- export * from "./objects/LineSegments.js";
133
- export * from "./objects/LOD.js";
134
- export * from "./objects/Mesh.js";
135
- export * from "./objects/Points.js";
136
- export * from "./objects/Skeleton.js";
137
- export * from "./objects/SkinnedMesh.js";
138
- export * from "./objects/Sprite.js";
139
- // export * from "./renderers/shaders/ShaderChunk.js";
140
- // export * from "./renderers/shaders/ShaderLib.js";
141
- // export * from "./renderers/shaders/UniformsLib.js";
142
- // export { UniformsUtils } from './renderers/shaders/UniformsUtils.js';
143
- export type { WebGLProgramParameters, WebGLProgramParametersWithUniforms } from "./renderers/webgl/WebGLPrograms.js";
144
- export type { WebGLShadowMap } from "./renderers/webgl/WebGLShadowMap.js";
145
- // export * from "./renderers/webgl/WebGLUtils.js";
146
- export * from "./renderers/WebGL3DRenderTarget.js";
147
- export * from "./renderers/WebGLArrayRenderTarget.js";
148
- export * from "./renderers/WebGLCubeRenderTarget.js";
149
- // export * from "./renderers/WebGLRenderer.js";
150
- export * from "./renderers/WebGLRenderTarget.js";
151
- export type {
152
- WebXRController,
153
- WebXRSpaceEventMap,
154
- XRControllerEventType,
155
- XRGripSpace,
156
- XRHandInputState,
157
- XRHandJoints,
158
- XRHandSpace,
159
- XRJointSpace,
160
- XRTargetRaySpace,
161
- } from "./renderers/webxr/WebXRController.js";
162
- export type { WebXRDepthSensing } from "./renderers/webxr/WebXRDepthSensing.js";
163
- export type {
164
- WebXRArrayCamera,
165
- WebXRCamera,
166
- WebXRManager,
167
- WebXRManagerEventMap,
168
- } from "./renderers/webxr/WebXRManager.js";
169
- export * from "./scenes/Fog.js";
170
- export * from "./scenes/FogExp2.js";
171
- export * from "./scenes/Scene.js";
172
- export * from "./textures/CanvasTexture.js";
173
- export * from "./textures/CompressedArrayTexture.js";
174
- export * from "./textures/CompressedCubeTexture.js";
175
- export * from "./textures/CompressedTexture.js";
176
- export * from "./textures/CubeTexture.js";
177
- export * from "./textures/Data3DTexture.js";
178
- export * from "./textures/DataArrayTexture.js";
179
- export * from "./textures/DataTexture.js";
180
- export * from "./textures/DepthTexture.js";
181
- export * from "./textures/FramebufferTexture.js";
182
- export * from "./textures/Source.js";
183
- export * from "./textures/Texture.js";
184
- export * from "./textures/VideoTexture.js";
185
- export * from "./Three.Legacy.js";
186
- export { createCanvasElement } from "./utils.js";
1
+ export * from "./Three.Core.js";
187
2
 
3
+ export * from "./materials/nodes/NodeMaterials.js";
4
+ export { default as BundleGroup } from "./renderers/common/BundleGroup.js";
5
+ export { default as PMREMGenerator } from "./renderers/common/extras/PMREMGenerator.js";
6
+ export { default as Lighting } from "./renderers/common/Lighting.js";
7
+ export { default as PostProcessing } from "./renderers/common/PostProcessing.js";
8
+ export { default as QuadMesh } from "./renderers/common/QuadMesh.js";
9
+ export type { default as Renderer } from "./renderers/common/Renderer.js";
10
+ export { default as WebGPURenderer } from "./renderers/webgpu/WebGPURenderer.Nodes.js";
11
+ import * as PostProcessingUtils from "./renderers/common/PostProcessingUtils.js";
12
+ export { PostProcessingUtils };
188
13
  export { default as IESSpotLight } from "./lights/webgpu/IESSpotLight.js";
189
14
  export { default as NodeLoader } from "./loaders/nodes/NodeLoader.js";
190
15
  export { default as NodeMaterialLoader } from "./loaders/nodes/NodeMaterialLoader.js";
191
16
  export { default as NodeObjectLoader } from "./loaders/nodes/NodeObjectLoader.js";
192
17
  export * from "./nodes/Nodes.js";
193
- export * from "./nodes/TSL.js";
194
- export { default as PMREMGenerator } from "./renderers/common/extras/PMREMGenerator.js";
195
- export { default as PostProcessing } from "./renderers/common/PostProcessing.js";
196
- import * as PostProcessingUtils from "./renderers/common/PostProcessingUtils.js";
197
- export { PostProcessingUtils };
18
+ import * as TSL from "./nodes/TSL.js";
19
+ export { TSL };
20
+ export { ClippingGroup } from "./objects/ClippingGroup.js";
198
21
  export { default as IndirectStorageBufferAttribute } from "./renderers/common/IndirectStorageBufferAttribute.js";
199
- export { default as Lighting } from "./renderers/common/Lighting.js";
200
- export { default as QuadMesh } from "./renderers/common/QuadMesh.js";
201
- export type { default as Renderer } from "./renderers/common/Renderer.js";
202
22
  export { default as StorageBufferAttribute } from "./renderers/common/StorageBufferAttribute.js";
203
23
  export { default as StorageInstancedBufferAttribute } from "./renderers/common/StorageInstancedBufferAttribute.js";
204
24
  export { default as StorageTexture } from "./renderers/common/StorageTexture.js";
205
- export { default as WebGPURenderer } from "./renderers/webgpu/WebGPURenderer.Nodes.js";
@@ -1,206 +1,24 @@
1
- export * from "./animation/AnimationAction.js";
2
- export * from "./animation/AnimationClip.js";
3
- export * from "./animation/AnimationMixer.js";
4
- export * from "./animation/AnimationObjectGroup.js";
5
- export { AnimationUtils } from "./animation/AnimationUtils.js";
6
- export * from "./animation/KeyframeTrack.js";
7
- export * from "./animation/PropertyBinding.js";
8
- export * from "./animation/PropertyMixer.js";
9
- export * from "./animation/tracks/BooleanKeyframeTrack.js";
10
- export * from "./animation/tracks/ColorKeyframeTrack.js";
11
- export * from "./animation/tracks/NumberKeyframeTrack.js";
12
- export * from "./animation/tracks/QuaternionKeyframeTrack.js";
13
- export * from "./animation/tracks/StringKeyframeTrack.js";
14
- export * from "./animation/tracks/VectorKeyframeTrack.js";
15
- export * from "./audio/Audio.js";
16
- export * from "./audio/AudioAnalyser.js";
17
- export * from "./audio/AudioContext.js";
18
- export * from "./audio/AudioListener.js";
19
- export * from "./audio/PositionalAudio.js";
20
- export * from "./cameras/ArrayCamera.js";
21
- export * from "./cameras/Camera.js";
22
- export * from "./cameras/CubeCamera.js";
23
- export * from "./cameras/OrthographicCamera.js";
24
- export * from "./cameras/PerspectiveCamera.js";
25
- export * from "./cameras/StereoCamera.js";
26
- export * from "./constants.js";
27
- export * from "./core/BufferAttribute.js";
28
- export * from "./core/BufferGeometry.js";
29
- export * from "./core/Clock.js";
30
- export * from "./core/EventDispatcher.js";
31
- export * from "./core/GLBufferAttribute.js";
32
- export * from "./core/InstancedBufferAttribute.js";
33
- export * from "./core/InstancedBufferGeometry.js";
34
- export * from "./core/InstancedInterleavedBuffer.js";
35
- export * from "./core/InterleavedBuffer.js";
36
- export * from "./core/InterleavedBufferAttribute.js";
37
- export * from "./core/Layers.js";
38
- export * from "./core/Object3D.js";
39
- export * from "./core/Raycaster.js";
40
- export * from "./core/RenderTarget.js";
41
- export * from "./core/Uniform.js";
42
- export * from "./core/UniformsGroup.js";
43
- export * from "./extras/Controls.js";
44
- export * from "./extras/core/Curve.js";
45
- export * from "./extras/core/CurvePath.js";
46
- export * from "./extras/core/Path.js";
47
- export * from "./extras/core/Shape.js";
48
- export * from "./extras/core/ShapePath.js";
49
- export * from "./extras/curves/Curves.js";
50
- export { DataUtils } from "./extras/DataUtils.js";
51
- export * from "./extras/ImageUtils.js";
52
- // export * from "./extras/PMREMGenerator.js";
53
- export * from "./extras/ShapeUtils.js";
54
- export { TextureUtils } from "./extras/TextureUtils.js";
55
- export * from "./geometries/Geometries.js";
56
- export * from "./helpers/ArrowHelper.js";
57
- export * from "./helpers/AxesHelper.js";
58
- export * from "./helpers/Box3Helper.js";
59
- export * from "./helpers/BoxHelper.js";
60
- export * from "./helpers/CameraHelper.js";
61
- export * from "./helpers/DirectionalLightHelper.js";
62
- export * from "./helpers/GridHelper.js";
63
- export * from "./helpers/HemisphereLightHelper.js";
64
- export * from "./helpers/PlaneHelper.js";
65
- export * from "./helpers/PointLightHelper.js";
66
- export * from "./helpers/PolarGridHelper.js";
67
- export * from "./helpers/SkeletonHelper.js";
68
- export * from "./helpers/SpotLightHelper.js";
69
- export * from "./lights/AmbientLight.js";
70
- export * from "./lights/DirectionalLight.js";
71
- export type { DirectionalLightShadow } from "./lights/DirectionalLightShadow.js";
72
- export * from "./lights/HemisphereLight.js";
73
- export * from "./lights/Light.js";
74
- export * from "./lights/LightProbe.js";
75
- export type { LightShadow, LightShadowJSON } from "./lights/LightShadow.js";
76
- export * from "./lights/PointLight.js";
77
- export type { PointLightShadow } from "./lights/PointLightShadow.js";
78
- export * from "./lights/RectAreaLight.js";
79
- export * from "./lights/SpotLight.js";
80
- export type { SpotLightShadow } from "./lights/SpotLightShadow.js";
81
- export * from "./loaders/AnimationLoader.js";
82
- export * from "./loaders/AudioLoader.js";
83
- export * from "./loaders/BufferGeometryLoader.js";
84
- export * from "./loaders/Cache.js";
85
- export * from "./loaders/CompressedTextureLoader.js";
86
- export * from "./loaders/CubeTextureLoader.js";
87
- export * from "./loaders/DataTextureLoader.js";
88
- export * from "./loaders/FileLoader.js";
89
- export * from "./loaders/ImageBitmapLoader.js";
90
- export * from "./loaders/ImageLoader.js";
91
- export * from "./loaders/Loader.js";
92
- export * from "./loaders/LoaderUtils.js";
93
- export * from "./loaders/LoadingManager.js";
94
- export * from "./loaders/MaterialLoader.js";
95
- export * from "./loaders/ObjectLoader.js";
96
- export * from "./loaders/TextureLoader.js";
97
- export * from "./materials/Materials.js";
98
- export * from "./math/Box2.js";
99
- export * from "./math/Box3.js";
100
- export * from "./math/Color.js";
101
- export { ColorManagement, ColorSpaceDefinition } from "./math/ColorManagement.js";
102
- export * from "./math/Cylindrical.js";
103
- export * from "./math/Euler.js";
104
- export * from "./math/Frustum.js";
105
- export * from "./math/Interpolant.js";
106
- export * from "./math/interpolants/CubicInterpolant.js";
107
- export * from "./math/interpolants/DiscreteInterpolant.js";
108
- export * from "./math/interpolants/LinearInterpolant.js";
109
- export * from "./math/interpolants/QuaternionLinearInterpolant.js";
110
- export * from "./math/Line3.js";
111
- export { MathUtils } from "./math/MathUtils.js";
112
- export * from "./math/Matrix2.js";
113
- export * from "./math/Matrix3.js";
114
- export * from "./math/Matrix4.js";
115
- export * from "./math/Plane.js";
116
- export * from "./math/Quaternion.js";
117
- export * from "./math/Ray.js";
118
- export * from "./math/Sphere.js";
119
- export * from "./math/Spherical.js";
120
- export * from "./math/SphericalHarmonics3.js";
121
- export * from "./math/Triangle.js";
122
- export * from "./math/Vector2.js";
123
- export * from "./math/Vector3.js";
124
- export * from "./math/Vector4.js";
125
- export * from "./objects/BatchedMesh.js";
126
- export * from "./objects/Bone.js";
127
- export * from "./objects/Group.js";
128
- export * from "./objects/InstancedMesh.js";
129
- export * from "./objects/Line.js";
130
- export * from "./objects/LineLoop.js";
131
- export * from "./objects/LineSegments.js";
132
- export * from "./objects/LOD.js";
133
- export * from "./objects/Mesh.js";
134
- export * from "./objects/Points.js";
135
- export * from "./objects/Skeleton.js";
136
- export * from "./objects/SkinnedMesh.js";
137
- export * from "./objects/Sprite.js";
138
- // export * from "./renderers/shaders/ShaderChunk.js";
139
- // export * from "./renderers/shaders/ShaderLib.js";
140
- // export * from "./renderers/shaders/UniformsLib.js";
141
- // export { UniformsUtils } from './renderers/shaders/UniformsUtils.js';
142
- export type { WebGLProgramParameters, WebGLProgramParametersWithUniforms } from "./renderers/webgl/WebGLPrograms.js";
143
- export type { WebGLShadowMap } from "./renderers/webgl/WebGLShadowMap.js";
144
- // export * from "./renderers/webgl/WebGLUtils.js";
145
- export * from "./renderers/WebGL3DRenderTarget.js";
146
- export * from "./renderers/WebGLArrayRenderTarget.js";
147
- export * from "./renderers/WebGLCubeRenderTarget.js";
148
- // export * from "./renderers/WebGLRenderer.js";
149
- export * from "./renderers/WebGLRenderTarget.js";
150
- export type {
151
- WebXRController,
152
- WebXRSpaceEventMap,
153
- XRControllerEventType,
154
- XRGripSpace,
155
- XRHandInputState,
156
- XRHandJoints,
157
- XRHandSpace,
158
- XRJointSpace,
159
- XRTargetRaySpace,
160
- } from "./renderers/webxr/WebXRController.js";
161
- export type { WebXRDepthSensing } from "./renderers/webxr/WebXRDepthSensing.js";
162
- export type {
163
- WebXRArrayCamera,
164
- WebXRCamera,
165
- WebXRManager,
166
- WebXRManagerEventMap,
167
- } from "./renderers/webxr/WebXRManager.js";
168
- export * from "./scenes/Fog.js";
169
- export * from "./scenes/FogExp2.js";
170
- export * from "./scenes/Scene.js";
171
- export * from "./textures/CanvasTexture.js";
172
- export * from "./textures/CompressedArrayTexture.js";
173
- export * from "./textures/CompressedCubeTexture.js";
174
- export * from "./textures/CompressedTexture.js";
175
- export * from "./textures/CubeTexture.js";
176
- export * from "./textures/Data3DTexture.js";
177
- export * from "./textures/DataArrayTexture.js";
178
- export * from "./textures/DataTexture.js";
179
- export * from "./textures/DepthTexture.js";
180
- export * from "./textures/FramebufferTexture.js";
181
- export * from "./textures/Source.js";
182
- export * from "./textures/Texture.js";
183
- export * from "./textures/VideoTexture.js";
184
- export * from "./Three.Legacy.js";
185
- export { createCanvasElement } from "./utils.js";
1
+ export * from "./Three.Core.js";
186
2
 
187
- export { default as IESSpotLight } from "./lights/webgpu/IESSpotLight.js";
188
- export { default as NodeLoader } from "./loaders/nodes/NodeLoader.js";
189
- export { default as NodeMaterialLoader } from "./loaders/nodes/NodeMaterialLoader.js";
190
- export { default as NodeObjectLoader } from "./loaders/nodes/NodeObjectLoader.js";
191
3
  export * from "./materials/nodes/NodeMaterials.js";
192
- export * from "./nodes/Nodes.js";
193
- export * from "./nodes/TSL.js";
194
4
  export { default as BundleGroup } from "./renderers/common/BundleGroup.js";
195
5
  export { default as PMREMGenerator } from "./renderers/common/extras/PMREMGenerator.js";
6
+ export { default as Lighting } from "./renderers/common/Lighting.js";
196
7
  export { default as PostProcessing } from "./renderers/common/PostProcessing.js";
8
+ export { default as QuadMesh } from "./renderers/common/QuadMesh.js";
9
+ export type { default as Renderer } from "./renderers/common/Renderer.js";
10
+ export { default as WebGPURenderer } from "./renderers/webgpu/WebGPURenderer.js";
197
11
  import * as PostProcessingUtils from "./renderers/common/PostProcessingUtils.js";
198
12
  export { PostProcessingUtils };
13
+ export { default as IESSpotLight } from "./lights/webgpu/IESSpotLight.js";
14
+ export { default as NodeLoader } from "./loaders/nodes/NodeLoader.js";
15
+ export { default as NodeMaterialLoader } from "./loaders/nodes/NodeMaterialLoader.js";
16
+ export { default as NodeObjectLoader } from "./loaders/nodes/NodeObjectLoader.js";
17
+ export * from "./nodes/Nodes.js";
18
+ import * as TSL from "./nodes/TSL.js";
19
+ export { TSL };
20
+ export { ClippingGroup } from "./objects/ClippingGroup.js";
199
21
  export { default as IndirectStorageBufferAttribute } from "./renderers/common/IndirectStorageBufferAttribute.js";
200
- export { default as Lighting } from "./renderers/common/Lighting.js";
201
- export { default as QuadMesh } from "./renderers/common/QuadMesh.js";
202
- export type { default as Renderer } from "./renderers/common/Renderer.js";
203
22
  export { default as StorageBufferAttribute } from "./renderers/common/StorageBufferAttribute.js";
204
23
  export { default as StorageInstancedBufferAttribute } from "./renderers/common/StorageInstancedBufferAttribute.js";
205
24
  export { default as StorageTexture } from "./renderers/common/StorageTexture.js";
206
- export { default as WebGPURenderer } from "./renderers/webgpu/WebGPURenderer.js";
three/src/Three.d.ts CHANGED
@@ -1,140 +1,6 @@
1
- export * from "./animation/AnimationAction.js";
2
- export * from "./animation/AnimationClip.js";
3
- export * from "./animation/AnimationMixer.js";
4
- export * from "./animation/AnimationObjectGroup.js";
5
- export { AnimationUtils } from "./animation/AnimationUtils.js";
6
- export * from "./animation/KeyframeTrack.js";
7
- export * from "./animation/PropertyBinding.js";
8
- export * from "./animation/PropertyMixer.js";
9
- export * from "./animation/tracks/BooleanKeyframeTrack.js";
10
- export * from "./animation/tracks/ColorKeyframeTrack.js";
11
- export * from "./animation/tracks/NumberKeyframeTrack.js";
12
- export * from "./animation/tracks/QuaternionKeyframeTrack.js";
13
- export * from "./animation/tracks/StringKeyframeTrack.js";
14
- export * from "./animation/tracks/VectorKeyframeTrack.js";
15
- export * from "./audio/Audio.js";
16
- export * from "./audio/AudioAnalyser.js";
17
- export * from "./audio/AudioContext.js";
18
- export * from "./audio/AudioListener.js";
19
- export * from "./audio/PositionalAudio.js";
20
- export * from "./cameras/ArrayCamera.js";
21
- export * from "./cameras/Camera.js";
22
- export * from "./cameras/CubeCamera.js";
23
- export * from "./cameras/OrthographicCamera.js";
24
- export * from "./cameras/PerspectiveCamera.js";
25
- export * from "./cameras/StereoCamera.js";
26
- export * from "./constants.js";
27
- export * from "./core/BufferAttribute.js";
28
- export * from "./core/BufferGeometry.js";
29
- export * from "./core/Clock.js";
30
- export * from "./core/EventDispatcher.js";
31
- export * from "./core/GLBufferAttribute.js";
32
- export * from "./core/InstancedBufferAttribute.js";
33
- export * from "./core/InstancedBufferGeometry.js";
34
- export * from "./core/InstancedInterleavedBuffer.js";
35
- export * from "./core/InterleavedBuffer.js";
36
- export * from "./core/InterleavedBufferAttribute.js";
37
- export * from "./core/Layers.js";
38
- export * from "./core/Object3D.js";
39
- export * from "./core/Raycaster.js";
40
- export * from "./core/RenderTarget.js";
41
- export * from "./core/Uniform.js";
42
- export * from "./core/UniformsGroup.js";
43
- export * from "./extras/Controls.js";
44
- export * from "./extras/core/Curve.js";
45
- export * from "./extras/core/CurvePath.js";
46
- export * from "./extras/core/Path.js";
47
- export * from "./extras/core/Shape.js";
48
- export * from "./extras/core/ShapePath.js";
49
- export * from "./extras/curves/Curves.js";
50
- export { DataUtils } from "./extras/DataUtils.js";
51
- export * from "./extras/ImageUtils.js";
1
+ export * from "./Three.Core.js";
2
+
52
3
  export * from "./extras/PMREMGenerator.js";
53
- export * from "./extras/ShapeUtils.js";
54
- export { TextureUtils } from "./extras/TextureUtils.js";
55
- export * from "./geometries/Geometries.js";
56
- export * from "./helpers/ArrowHelper.js";
57
- export * from "./helpers/AxesHelper.js";
58
- export * from "./helpers/Box3Helper.js";
59
- export * from "./helpers/BoxHelper.js";
60
- export * from "./helpers/CameraHelper.js";
61
- export * from "./helpers/DirectionalLightHelper.js";
62
- export * from "./helpers/GridHelper.js";
63
- export * from "./helpers/HemisphereLightHelper.js";
64
- export * from "./helpers/PlaneHelper.js";
65
- export * from "./helpers/PointLightHelper.js";
66
- export * from "./helpers/PolarGridHelper.js";
67
- export * from "./helpers/SkeletonHelper.js";
68
- export * from "./helpers/SpotLightHelper.js";
69
- export * from "./lights/AmbientLight.js";
70
- export * from "./lights/DirectionalLight.js";
71
- export type { DirectionalLightShadow } from "./lights/DirectionalLightShadow.js";
72
- export * from "./lights/HemisphereLight.js";
73
- export * from "./lights/Light.js";
74
- export * from "./lights/LightProbe.js";
75
- export type { LightShadow, LightShadowJSON } from "./lights/LightShadow.js";
76
- export * from "./lights/PointLight.js";
77
- export type { PointLightShadow } from "./lights/PointLightShadow.js";
78
- export * from "./lights/RectAreaLight.js";
79
- export * from "./lights/SpotLight.js";
80
- export type { SpotLightShadow } from "./lights/SpotLightShadow.js";
81
- export * from "./loaders/AnimationLoader.js";
82
- export * from "./loaders/AudioLoader.js";
83
- export * from "./loaders/BufferGeometryLoader.js";
84
- export * from "./loaders/Cache.js";
85
- export * from "./loaders/CompressedTextureLoader.js";
86
- export * from "./loaders/CubeTextureLoader.js";
87
- export * from "./loaders/DataTextureLoader.js";
88
- export * from "./loaders/FileLoader.js";
89
- export * from "./loaders/ImageBitmapLoader.js";
90
- export * from "./loaders/ImageLoader.js";
91
- export * from "./loaders/Loader.js";
92
- export * from "./loaders/LoaderUtils.js";
93
- export * from "./loaders/LoadingManager.js";
94
- export * from "./loaders/MaterialLoader.js";
95
- export * from "./loaders/ObjectLoader.js";
96
- export * from "./loaders/TextureLoader.js";
97
- export * from "./materials/Materials.js";
98
- export * from "./math/Box2.js";
99
- export * from "./math/Box3.js";
100
- export * from "./math/Color.js";
101
- export { ColorManagement, ColorSpaceDefinition } from "./math/ColorManagement.js";
102
- export * from "./math/Cylindrical.js";
103
- export * from "./math/Euler.js";
104
- export * from "./math/Frustum.js";
105
- export * from "./math/Interpolant.js";
106
- export * from "./math/interpolants/CubicInterpolant.js";
107
- export * from "./math/interpolants/DiscreteInterpolant.js";
108
- export * from "./math/interpolants/LinearInterpolant.js";
109
- export * from "./math/interpolants/QuaternionLinearInterpolant.js";
110
- export * from "./math/Line3.js";
111
- export { MathUtils } from "./math/MathUtils.js";
112
- export * from "./math/Matrix2.js";
113
- export * from "./math/Matrix3.js";
114
- export * from "./math/Matrix4.js";
115
- export * from "./math/Plane.js";
116
- export * from "./math/Quaternion.js";
117
- export * from "./math/Ray.js";
118
- export * from "./math/Sphere.js";
119
- export * from "./math/Spherical.js";
120
- export * from "./math/SphericalHarmonics3.js";
121
- export * from "./math/Triangle.js";
122
- export * from "./math/Vector2.js";
123
- export * from "./math/Vector3.js";
124
- export * from "./math/Vector4.js";
125
- export * from "./objects/BatchedMesh.js";
126
- export * from "./objects/Bone.js";
127
- export * from "./objects/Group.js";
128
- export * from "./objects/InstancedMesh.js";
129
- export * from "./objects/Line.js";
130
- export * from "./objects/LineLoop.js";
131
- export * from "./objects/LineSegments.js";
132
- export * from "./objects/LOD.js";
133
- export * from "./objects/Mesh.js";
134
- export * from "./objects/Points.js";
135
- export * from "./objects/Skeleton.js";
136
- export * from "./objects/SkinnedMesh.js";
137
- export * from "./objects/Sprite.js";
138
4
  export * from "./renderers/shaders/ShaderChunk.js";
139
5
  export * from "./renderers/shaders/ShaderLib.js";
140
6
  export * from "./renderers/shaders/UniformsLib.js";
@@ -166,11 +32,7 @@ export type { WebGLState } from "./renderers/webgl/WebGLState.js";
166
32
  export type { WebGLTextures } from "./renderers/webgl/WebGLTextures.js";
167
33
  export type { WebGLUniforms } from "./renderers/webgl/WebGLUniforms.js";
168
34
  export * from "./renderers/webgl/WebGLUtils.js";
169
- export * from "./renderers/WebGL3DRenderTarget.js";
170
- export * from "./renderers/WebGLArrayRenderTarget.js";
171
- export * from "./renderers/WebGLCubeRenderTarget.js";
172
35
  export * from "./renderers/WebGLRenderer.js";
173
- export * from "./renderers/WebGLRenderTarget.js";
174
36
  export type {
175
37
  WebXRController,
176
38
  WebXRSpaceEventMap,
@@ -189,21 +51,3 @@ export type {
189
51
  WebXRManager,
190
52
  WebXRManagerEventMap,
191
53
  } from "./renderers/webxr/WebXRManager.js";
192
- export * from "./scenes/Fog.js";
193
- export * from "./scenes/FogExp2.js";
194
- export * from "./scenes/Scene.js";
195
- export * from "./textures/CanvasTexture.js";
196
- export * from "./textures/CompressedArrayTexture.js";
197
- export * from "./textures/CompressedCubeTexture.js";
198
- export * from "./textures/CompressedTexture.js";
199
- export * from "./textures/CubeTexture.js";
200
- export * from "./textures/Data3DTexture.js";
201
- export * from "./textures/DataArrayTexture.js";
202
- export * from "./textures/DataTexture.js";
203
- export * from "./textures/DepthTexture.js";
204
- export * from "./textures/FramebufferTexture.js";
205
- export * from "./textures/Source.js";
206
- export * from "./textures/Texture.js";
207
- export * from "./textures/VideoTexture.js";
208
- export * from "./Three.Legacy.js";
209
- export { createCanvasElement } from "./utils.js";
@@ -1,6 +1,8 @@
1
1
  import { AnimationBlendMode } from "../constants.js";
2
+ import { Object3D } from "../core/Object3D.js";
2
3
  import { Vector3 } from "../math/Vector3.js";
3
4
  import { Bone } from "../objects/Bone.js";
5
+ import { Mesh } from "../objects/Mesh.js";
4
6
  import { KeyframeTrack, KeyframeTrackJSON } from "./KeyframeTrack.js";
5
7
 
6
8
  export interface AnimationClipJSON {
@@ -47,7 +49,7 @@ export class AnimationClip {
47
49
  fps: number,
48
50
  noLoop: boolean,
49
51
  ): AnimationClip;
50
- static findByName(clipArray: AnimationClip[], name: string): AnimationClip;
52
+ static findByName(objectOrClipArray: AnimationClip[] | Object3D | Mesh, name: string): AnimationClip;
51
53
  static CreateClipsFromMorphTargetSequences(
52
54
  morphTargets: MorphTarget[],
53
55
  fps: number,
three/src/core/Clock.d.ts CHANGED
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Object for keeping track of time
3
- * @remarks
4
- * This uses {@link https://developer.mozilla.org/en-US/docs/Web/API/Performance/now | performance.now} if it is available,
5
- * otherwise it reverts to the less accurate {@link https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date/now | Date.now}.
6
- * @see {@link https://threejs.org/docs/index.html#api/en/core/Clock | Official Documentation}
7
- * @see {@link https://github.com/mrdoob/three.js/blob/master/src/core/Clock.js | Source}
2
+ * Object for keeping track of time. This uses
3
+ * [performance.now]{@link https://developer.mozilla.org/en-US/docs/Web/API/Performance/now}.
4
+ * @see [Official Documentation]{@link https://threejs.org/docs/index.html#api/en/core/Clock}
5
+ * @see [Source]{@link https://github.com/mrdoob/three.js/blob/master/src/core/Clock.js}
8
6
  */
9
7
  export class Clock {
10
8
  /**