@types/three 0.168.0 → 0.170.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 (213) hide show
  1. three/README.md +1 -1
  2. three/build/three.webgpu.nodes.d.ts +1 -0
  3. three/build/three.webgpu.nodes.min.d.ts +1 -0
  4. three/examples/jsm/Addons.d.ts +3 -10
  5. three/examples/jsm/animation/MMDAnimationHelper.d.ts +4 -0
  6. three/examples/jsm/animation/MMDPhysics.d.ts +4 -0
  7. three/examples/jsm/controls/ArcballControls.d.ts +1 -1
  8. three/examples/jsm/controls/DragControls.d.ts +0 -15
  9. three/examples/jsm/controls/TransformControls.d.ts +195 -24
  10. three/examples/jsm/csm/CSMFrustum.d.ts +8 -2
  11. three/examples/jsm/csm/CSMHelper.d.ts +2 -1
  12. three/examples/jsm/csm/CSMShadowNode.d.ts +46 -0
  13. three/examples/jsm/curves/NURBSCurve.d.ts +12 -1
  14. three/examples/jsm/exporters/EXRExporter.d.ts +7 -2
  15. three/examples/jsm/exporters/GLTFExporter.d.ts +20 -3
  16. three/examples/jsm/exporters/KTX2Exporter.d.ts +3 -1
  17. three/examples/jsm/exporters/MMDExporter.d.ts +4 -0
  18. three/examples/jsm/exporters/USDZExporter.d.ts +4 -0
  19. three/examples/jsm/geometries/DecalGeometry.d.ts +9 -3
  20. three/examples/jsm/geometries/TeapotGeometry.d.ts +2 -2
  21. three/examples/jsm/helpers/LightProbeHelper.d.ts +5 -3
  22. three/examples/jsm/helpers/LightProbeHelperGPU.d.ts +12 -0
  23. three/examples/jsm/helpers/TextureHelperGPU.d.ts +10 -0
  24. three/examples/jsm/lighting/TiledLighting.d.ts +10 -0
  25. three/examples/jsm/lights/LightProbeGenerator.d.ts +5 -1
  26. three/examples/jsm/lines/Line2.d.ts +15 -1
  27. three/examples/jsm/lines/LineGeometry.d.ts +18 -1
  28. three/examples/jsm/lines/LineMaterial.d.ts +65 -12
  29. three/examples/jsm/lines/LineSegments2.d.ts +25 -2
  30. three/examples/jsm/lines/LineSegmentsGeometry.d.ts +46 -9
  31. three/examples/jsm/lines/Wireframe.d.ts +5 -2
  32. three/examples/jsm/lines/WireframeGeometry2.d.ts +1 -1
  33. three/examples/jsm/lines/webgpu/Wireframe.d.ts +13 -0
  34. three/examples/jsm/loaders/DRACOLoader.d.ts +6 -0
  35. three/examples/jsm/loaders/EXRLoader.d.ts +2 -2
  36. three/examples/jsm/loaders/GLTFLoader.d.ts +1 -2
  37. three/examples/jsm/loaders/KTX2Loader.d.ts +1 -0
  38. three/examples/jsm/loaders/LDrawLoader.d.ts +10 -0
  39. three/examples/jsm/loaders/MMDLoader.d.ts +4 -0
  40. three/examples/jsm/materials/LDrawConditionalLineMaterial.d.ts +9 -0
  41. three/examples/jsm/materials/LDrawConditionalLineNodeMaterial.d.ts +9 -0
  42. three/examples/jsm/materials/MeshGouraudMaterial.d.ts +0 -1
  43. three/examples/jsm/math/ColorSpaces.d.ts +11 -0
  44. three/examples/jsm/misc/ProgressiveLightMap.d.ts +8 -10
  45. three/examples/jsm/misc/ProgressiveLightMapGPU.d.ts +27 -0
  46. three/examples/jsm/modifiers/CurveModifier.d.ts +7 -3
  47. three/examples/jsm/modifiers/CurveModifierGPU.d.ts +31 -0
  48. three/examples/jsm/objects/Lensflare.d.ts +13 -9
  49. three/examples/jsm/objects/LensflareMesh.d.ts +21 -0
  50. three/examples/jsm/renderers/SVGRenderer.d.ts +2 -2
  51. three/{src/nodes → examples/jsm/tsl}/display/AfterImageNode.d.ts +1 -5
  52. three/{src/nodes → examples/jsm/tsl}/display/AnaglyphPassNode.d.ts +2 -3
  53. three/{src/nodes → examples/jsm/tsl}/display/AnamorphicNode.d.ts +2 -4
  54. three/examples/jsm/tsl/display/BleachBypass.d.ts +3 -0
  55. three/{src/nodes → examples/jsm/tsl}/display/BloomNode.d.ts +1 -5
  56. three/{src/nodes → examples/jsm/tsl}/display/DenoiseNode.d.ts +2 -6
  57. three/{src/nodes → examples/jsm/tsl}/display/DepthOfFieldNode.d.ts +1 -5
  58. three/{src/nodes → examples/jsm/tsl}/display/DotScreenNode.d.ts +2 -5
  59. three/{src/nodes → examples/jsm/tsl}/display/FXAANode.d.ts +1 -3
  60. three/{src/nodes → examples/jsm/tsl}/display/FilmNode.d.ts +1 -3
  61. three/{src/nodes → examples/jsm/tsl}/display/GTAONode.d.ts +2 -8
  62. three/{src/nodes → examples/jsm/tsl}/display/GaussianBlurNode.d.ts +13 -5
  63. three/examples/jsm/tsl/display/LensflareNode.d.ts +35 -0
  64. three/{src/nodes → examples/jsm/tsl}/display/Lut3DNode.d.ts +2 -6
  65. three/{src/nodes → examples/jsm/tsl}/display/MotionBlur.d.ts +1 -2
  66. three/examples/jsm/tsl/display/OutlineNode.d.ts +32 -0
  67. three/{src/nodes → examples/jsm/tsl}/display/ParallaxBarrierPassNode.d.ts +2 -3
  68. three/{src/nodes → examples/jsm/tsl}/display/PixelationPassNode.d.ts +2 -5
  69. three/{src/nodes → examples/jsm/tsl}/display/RGBShiftNode.d.ts +1 -4
  70. three/examples/jsm/tsl/display/SMAANode.d.ts +17 -0
  71. three/{src/nodes → examples/jsm/tsl}/display/SSAAPassNode.d.ts +2 -7
  72. three/examples/jsm/tsl/display/SSRNode.d.ts +38 -0
  73. three/examples/jsm/tsl/display/Sepia.d.ts +3 -0
  74. three/{src/nodes → examples/jsm/tsl}/display/SobelOperatorNode.d.ts +1 -3
  75. three/{src/nodes → examples/jsm/tsl}/display/StereoCompositePassNode.d.ts +2 -5
  76. three/{src/nodes → examples/jsm/tsl}/display/StereoPassNode.d.ts +2 -5
  77. three/examples/jsm/tsl/display/TRAAPassNode.d.ts +15 -0
  78. three/{src/nodes → examples/jsm/tsl}/display/TransitionNode.d.ts +1 -5
  79. three/examples/jsm/tsl/display/hashBlur.d.ts +7 -0
  80. three/examples/jsm/tsl/lighting/TiledLightsNode.d.ts +22 -0
  81. three/examples/jsm/utils/GeometryCompressionUtils.d.ts +20 -4
  82. three/examples/jsm/utils/ShadowMapViewer.d.ts +8 -6
  83. three/examples/jsm/utils/ShadowMapViewerGPU.d.ts +26 -0
  84. three/examples/jsm/utils/SkeletonUtils.d.ts +25 -5
  85. three/examples/jsm/utils/WebGPUTextureUtils.d.ts +3 -0
  86. three/package.json +4 -3
  87. three/src/Three.WebGPU.Nodes.d.ts +205 -0
  88. three/src/Three.WebGPU.d.ts +7 -2
  89. three/src/Three.d.ts +2 -7
  90. three/src/audio/Audio.d.ts +4 -1
  91. three/src/constants.d.ts +1 -9
  92. three/src/core/BufferAttribute.d.ts +0 -15
  93. three/src/core/BufferGeometry.d.ts +13 -2
  94. three/src/core/InterleavedBuffer.d.ts +0 -12
  95. three/src/core/Object3D.d.ts +1 -1
  96. three/src/core/Raycaster.d.ts +2 -1
  97. three/src/core/RenderTarget.d.ts +1 -2
  98. three/src/extras/Controls.d.ts +3 -3
  99. three/src/loaders/FileLoader.d.ts +3 -3
  100. three/src/loaders/MaterialLoader.d.ts +2 -0
  101. three/src/loaders/nodes/NodeLoader.d.ts +5 -0
  102. three/src/loaders/nodes/NodeMaterialLoader.d.ts +3 -0
  103. three/src/loaders/nodes/NodeObjectLoader.d.ts +12 -0
  104. three/src/materials/LineBasicMaterial.d.ts +0 -5
  105. three/src/materials/LineDashedMaterial.d.ts +0 -5
  106. three/src/materials/Material.d.ts +4 -6
  107. three/src/materials/MeshBasicMaterial.d.ts +0 -5
  108. three/src/materials/MeshDepthMaterial.d.ts +0 -5
  109. three/src/materials/MeshDistanceMaterial.d.ts +0 -5
  110. three/src/materials/MeshLambertMaterial.d.ts +0 -5
  111. three/src/materials/MeshMatcapMaterial.d.ts +0 -5
  112. three/src/materials/MeshNormalMaterial.d.ts +0 -5
  113. three/src/materials/MeshPhongMaterial.d.ts +0 -5
  114. three/src/materials/MeshPhysicalMaterial.d.ts +0 -5
  115. three/src/materials/MeshStandardMaterial.d.ts +0 -5
  116. three/src/materials/MeshToonMaterial.d.ts +0 -5
  117. three/src/materials/PointsMaterial.d.ts +0 -5
  118. three/src/materials/RawShaderMaterial.d.ts +0 -2
  119. three/src/materials/ShaderMaterial.d.ts +0 -5
  120. three/src/materials/ShadowMaterial.d.ts +0 -5
  121. three/src/materials/SpriteMaterial.d.ts +0 -5
  122. three/src/materials/nodes/MeshNormalNodeMaterial.d.ts +2 -2
  123. three/src/materials/nodes/NodeMaterial.d.ts +4 -4
  124. three/src/materials/nodes/NodeMaterials.d.ts +19 -16
  125. three/src/materials/nodes/manager/NodeMaterialObserver.d.ts +96 -0
  126. three/src/math/Color.d.ts +39 -22
  127. three/src/math/ColorManagement.d.ts +24 -24
  128. three/src/math/Quaternion.d.ts +4 -3
  129. three/src/math/Triangle.d.ts +24 -0
  130. three/src/math/Vector4.d.ts +2 -0
  131. three/src/nodes/Nodes.d.ts +3 -23
  132. three/src/nodes/TSL.d.ts +75 -187
  133. three/src/nodes/accessors/BufferAttributeNode.d.ts +1 -0
  134. three/src/nodes/accessors/Camera.d.ts +0 -1
  135. three/src/nodes/accessors/MaterialNode.d.ts +0 -1
  136. three/src/nodes/accessors/ModelNode.d.ts +7 -3
  137. three/src/nodes/accessors/Normal.d.ts +6 -0
  138. three/src/nodes/accessors/Object3DNode.d.ts +1 -5
  139. three/src/nodes/accessors/SceneNode.d.ts +2 -0
  140. three/src/nodes/accessors/UniformArrayNode.d.ts +2 -2
  141. three/src/nodes/accessors/VelocityNode.d.ts +6 -1
  142. three/src/nodes/code/ScriptableNode.d.ts +1 -1
  143. three/src/nodes/core/Node.d.ts +3 -12
  144. three/src/nodes/core/NodeUtils.d.ts +5 -1
  145. three/src/nodes/core/StackNode.d.ts +4 -4
  146. three/src/nodes/core/StructTypeNode.d.ts +1 -0
  147. three/src/nodes/core/UniformNode.d.ts +1 -0
  148. three/src/nodes/core/VarNode.d.ts +12 -1
  149. three/src/nodes/display/ColorAdjustment.d.ts +29 -0
  150. three/src/nodes/display/ColorSpaceFunctions.d.ts +2 -2
  151. three/src/nodes/display/ColorSpaceNode.d.ts +33 -8
  152. three/src/nodes/display/RenderOutputNode.d.ts +4 -4
  153. three/src/nodes/display/ScreenNode.d.ts +48 -0
  154. three/src/nodes/display/ToneMappingFunctions.d.ts +6 -6
  155. three/src/nodes/display/ToonOutlinePassNode.d.ts +24 -0
  156. three/src/nodes/display/ViewportDepthNode.d.ts +2 -0
  157. three/src/nodes/functions/material/getAlphaHashThreshold.d.ts +6 -0
  158. three/src/nodes/functions/material/getParallaxCorrectNormal.d.ts +10 -0
  159. three/src/nodes/functions/material/getShIrradianceAt.d.ts +6 -0
  160. three/src/nodes/gpgpu/ComputeNode.d.ts +5 -0
  161. three/src/nodes/lighting/LightsNode.d.ts +7 -2
  162. three/src/nodes/lighting/PointLightNode.d.ts +11 -1
  163. three/src/nodes/lighting/ShadowNode.d.ts +12 -0
  164. three/src/nodes/utils/Discard.d.ts +1 -1
  165. three/src/nodes/utils/Oscillators.d.ts +7 -0
  166. three/src/nodes/utils/PostProcessingUtils.d.ts +45 -0
  167. three/src/nodes/utils/ReflectorNode.d.ts +17 -4
  168. three/src/nodes/utils/Timer.d.ts +21 -0
  169. three/src/objects/BatchedMesh.d.ts +78 -0
  170. three/src/objects/Group.d.ts +0 -6
  171. three/src/objects/LOD.d.ts +7 -0
  172. three/src/renderers/WebGLRenderer.d.ts +24 -23
  173. three/src/renderers/common/BundleGroup.d.ts +10 -0
  174. three/src/renderers/common/ClippingContext.d.ts +1 -1
  175. three/src/renderers/common/Constants.d.ts +2 -1
  176. three/src/renderers/common/Geometries.d.ts +1 -0
  177. three/src/renderers/common/IndirectStorageBufferAttribute.d.ts +10 -0
  178. three/src/renderers/common/Lighting.d.ts +15 -0
  179. three/src/renderers/common/PostProcessingUtils.d.ts +66 -0
  180. three/src/renderers/common/RenderBundles.d.ts +3 -3
  181. three/src/renderers/common/RenderContext.d.ts +2 -2
  182. three/src/renderers/common/RenderList.d.ts +7 -3
  183. three/src/renderers/common/RenderLists.d.ts +3 -1
  184. three/src/renderers/common/RenderObject.d.ts +20 -1
  185. three/src/renderers/common/Renderer.d.ts +43 -10
  186. three/src/renderers/common/extras/PMREMGenerator.d.ts +5 -1
  187. three/src/renderers/common/nodes/NodeBuilderState.d.ts +3 -2
  188. three/src/renderers/common/nodes/NodeLibrary.d.ts +0 -7
  189. three/src/renderers/common/nodes/Nodes.d.ts +8 -0
  190. three/src/renderers/webgl/WebGLCapabilities.d.ts +13 -0
  191. three/src/renderers/webgl/WebGLPrograms.d.ts +4 -10
  192. three/src/renderers/webgl/WebGLState.d.ts +13 -10
  193. three/src/renderers/webgl/WebGLUtils.d.ts +2 -2
  194. three/src/renderers/webgpu/WebGPURenderer.Nodes.d.ts +12 -0
  195. three/src/renderers/webgpu/WebGPURenderer.d.ts +7 -3
  196. three/src/renderers/webgpu/nodes/BasicNodeLibrary.d.ts +5 -0
  197. three/src/renderers/webgpu/nodes/StandardNodeLibrary.d.ts +5 -0
  198. three/src/textures/CompressedTexture.d.ts +1 -2
  199. three/src/textures/CubeTexture.d.ts +1 -2
  200. three/src/textures/DataTexture.d.ts +1 -2
  201. three/src/textures/Texture.d.ts +3 -4
  202. three/examples/jsm/cameras/CinematicCamera.d.ts +0 -34
  203. three/examples/jsm/geometries/SDFGeometryGenerator.d.ts +0 -16
  204. three/examples/jsm/loaders/TiltLoader.d.ts +0 -7
  205. three/examples/jsm/utils/GPUStatsPanel.d.ts +0 -12
  206. three/examples/jsm/utils/PackedPhongMaterial.d.ts +0 -10
  207. three/src/nodes/display/BleachBypass.d.ts +0 -4
  208. three/src/nodes/display/Sepia.d.ts +0 -4
  209. three/src/nodes/display/ViewportNode.d.ts +0 -38
  210. three/src/nodes/utils/OscNode.d.ts +0 -25
  211. three/src/nodes/utils/TimerNode.d.ts +0 -25
  212. three/src/renderers/common/StandardRenderer.d.ts +0 -12
  213. /three/examples/jsm/utils/{TextureUtils.d.ts → WebGLTextureUtils.d.ts} +0 -0
@@ -0,0 +1,205 @@
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";
187
+
188
+ export { default as IESSpotLight } from "./lights/webgpu/IESSpotLight.js";
189
+ export { default as NodeLoader } from "./loaders/nodes/NodeLoader.js";
190
+ export { default as NodeMaterialLoader } from "./loaders/nodes/NodeMaterialLoader.js";
191
+ export { default as NodeObjectLoader } from "./loaders/nodes/NodeObjectLoader.js";
192
+ 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 };
198
+ 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
+ export { default as StorageBufferAttribute } from "./renderers/common/StorageBufferAttribute.js";
203
+ export { default as StorageInstancedBufferAttribute } from "./renderers/common/StorageInstancedBufferAttribute.js";
204
+ export { default as StorageTexture } from "./renderers/common/StorageTexture.js";
205
+ export { default as WebGPURenderer } from "./renderers/webgpu/WebGPURenderer.Nodes.js";
@@ -95,11 +95,10 @@ export * from "./loaders/MaterialLoader.js";
95
95
  export * from "./loaders/ObjectLoader.js";
96
96
  export * from "./loaders/TextureLoader.js";
97
97
  export * from "./materials/Materials.js";
98
- export * from "./materials/nodes/NodeMaterials.js";
99
98
  export * from "./math/Box2.js";
100
99
  export * from "./math/Box3.js";
101
100
  export * from "./math/Color.js";
102
- export { ColorManagement, DefinedColorSpace, WorkingColorSpace } from "./math/ColorManagement.js";
101
+ export { ColorManagement, ColorSpaceDefinition } from "./math/ColorManagement.js";
103
102
  export * from "./math/Cylindrical.js";
104
103
  export * from "./math/Euler.js";
105
104
  export * from "./math/Frustum.js";
@@ -189,10 +188,16 @@ export { default as IESSpotLight } from "./lights/webgpu/IESSpotLight.js";
189
188
  export { default as NodeLoader } from "./loaders/nodes/NodeLoader.js";
190
189
  export { default as NodeMaterialLoader } from "./loaders/nodes/NodeMaterialLoader.js";
191
190
  export { default as NodeObjectLoader } from "./loaders/nodes/NodeObjectLoader.js";
191
+ export * from "./materials/nodes/NodeMaterials.js";
192
192
  export * from "./nodes/Nodes.js";
193
193
  export * from "./nodes/TSL.js";
194
+ export { default as BundleGroup } from "./renderers/common/BundleGroup.js";
194
195
  export { default as PMREMGenerator } from "./renderers/common/extras/PMREMGenerator.js";
195
196
  export { default as PostProcessing } from "./renderers/common/PostProcessing.js";
197
+ import * as PostProcessingUtils from "./renderers/common/PostProcessingUtils.js";
198
+ export { PostProcessingUtils };
199
+ export { default as IndirectStorageBufferAttribute } from "./renderers/common/IndirectStorageBufferAttribute.js";
200
+ export { default as Lighting } from "./renderers/common/Lighting.js";
196
201
  export { default as QuadMesh } from "./renderers/common/QuadMesh.js";
197
202
  export type { default as Renderer } from "./renderers/common/Renderer.js";
198
203
  export { default as StorageBufferAttribute } from "./renderers/common/StorageBufferAttribute.js";
three/src/Three.d.ts CHANGED
@@ -98,7 +98,7 @@ export * from "./materials/Materials.js";
98
98
  export * from "./math/Box2.js";
99
99
  export * from "./math/Box3.js";
100
100
  export * from "./math/Color.js";
101
- export { ColorManagement, DefinedColorSpace, WorkingColorSpace } from "./math/ColorManagement.js";
101
+ export { ColorManagement, ColorSpaceDefinition } from "./math/ColorManagement.js";
102
102
  export * from "./math/Cylindrical.js";
103
103
  export * from "./math/Euler.js";
104
104
  export * from "./math/Frustum.js";
@@ -162,12 +162,7 @@ export type { WebGLProperties } from "./renderers/webgl/WebGLProperties.js";
162
162
  export type { RenderItem, WebGLRenderList, WebGLRenderLists } from "./renderers/webgl/WebGLRenderLists.js";
163
163
  export type { WebGLShader } from "./renderers/webgl/WebGLShader.js";
164
164
  export type { WebGLShadowMap } from "./renderers/webgl/WebGLShadowMap.js";
165
- export type {
166
- WebGLColorBuffer,
167
- WebGLDepthBuffer,
168
- WebGLState,
169
- WebGLStencilBuffer,
170
- } from "./renderers/webgl/WebGLState.js";
165
+ export type { WebGLState } from "./renderers/webgl/WebGLState.js";
171
166
  export type { WebGLTextures } from "./renderers/webgl/WebGLTextures.js";
172
167
  export type { WebGLUniforms } from "./renderers/webgl/WebGLUniforms.js";
173
168
  export * from "./renderers/webgl/WebGLUtils.js";
@@ -173,14 +173,17 @@ export class Audio<NodeType extends AudioNode = GainNode> extends Object3D {
173
173
  * If {@link Audio.hasPlaybackControl | hasPlaybackControl} is true, starts playback.
174
174
  */
175
175
  play(delay?: number): this;
176
+
176
177
  /**
177
178
  * If {@link Audio.hasPlaybackControl | hasPlaybackControl} is true, pauses playback.
178
179
  */
179
180
  pause(): this;
181
+
180
182
  /**
181
183
  * If {@link Audio.hasPlaybackControl | hasPlaybackControl} is enabled, stops playback.
184
+ * @param delay (optional) - The delay, in seconds, at which the audio should start playing.
182
185
  */
183
- stop(): this;
186
+ stop(delay?: number): this;
184
187
 
185
188
  /**
186
189
  * Called automatically when playback finished.
three/src/constants.d.ts CHANGED
@@ -697,23 +697,15 @@ export type NormalMapTypes = typeof TangentSpaceNormalMap | typeof ObjectSpaceNo
697
697
  export const NoColorSpace: "";
698
698
  export const SRGBColorSpace: "srgb";
699
699
  export const LinearSRGBColorSpace: "srgb-linear";
700
- export const DisplayP3ColorSpace: "display-p3";
701
- export const LinearDisplayP3ColorSpace = "display-p3-linear";
702
700
  export type ColorSpace =
703
701
  | typeof NoColorSpace
704
702
  | typeof SRGBColorSpace
705
- | typeof LinearSRGBColorSpace
706
- | typeof DisplayP3ColorSpace
707
- | typeof LinearDisplayP3ColorSpace;
703
+ | typeof LinearSRGBColorSpace;
708
704
 
709
705
  export const LinearTransfer: "linear";
710
706
  export const SRGBTransfer: "srgb";
711
707
  export type ColorSpaceTransfer = typeof LinearTransfer | typeof SRGBTransfer;
712
708
 
713
- export const Rec709Primaries: "rec709";
714
- export const P3Primaries: "p3";
715
- export type ColorSpacePrimaries = typeof Rec709Primaries | typeof P3Primaries;
716
-
717
709
  // Stencil Op types
718
710
  export const ZeroStencilOp: 0;
719
711
  export const KeepStencilOp: 7680;
@@ -95,21 +95,6 @@ export class BufferAttribute {
95
95
  */
96
96
  gpuType: AttributeGPUType;
97
97
 
98
- /**
99
- * This can be used to only update some components of stored vectors (for example, just the component related to color).
100
- * @defaultValue `{ offset: number = 0; count: number = -1 }`
101
- * @deprecated Will be removed in r169. Use "addUpdateRange()" instead.
102
- */
103
- updateRange: {
104
- /**
105
- * Position at which to start update.
106
- * @defaultValue `0`
107
- */
108
- offset: number;
109
- /** @defaultValue `-1`, which means don't use update ranges. */
110
- count: number;
111
- };
112
-
113
98
  /**
114
99
  * This can be used to only update some components of stored vectors (for example, just the component related to
115
100
  * color). Use the {@link .addUpdateRange} function to add ranges to this array.
@@ -4,6 +4,7 @@ import { Quaternion } from "../math/Quaternion.js";
4
4
  import { Sphere } from "../math/Sphere.js";
5
5
  import { Vector2 } from "../math/Vector2.js";
6
6
  import { Vector3, Vector3Tuple } from "../math/Vector3.js";
7
+ import IndirectStorageBufferAttribute from "../renderers/common/IndirectStorageBufferAttribute.js";
7
8
  import { BufferAttribute, BufferAttributeJSON } from "./BufferAttribute.js";
8
9
  import { EventDispatcher } from "./EventDispatcher.js";
9
10
  import { GLBufferAttribute } from "./GLBufferAttribute.js";
@@ -155,6 +156,8 @@ export class BufferGeometry<
155
156
  */
156
157
  index: BufferAttribute | null;
157
158
 
159
+ indirect: IndirectStorageBufferAttribute | null;
160
+
158
161
  /**
159
162
  * This hashmap has as id the name of the attribute to be set and as value the {@link THREE.BufferAttribute | buffer} to set it to. Rather than accessing this property directly,
160
163
  * use {@link setAttribute | .setAttribute} and {@link getAttribute | .getAttribute} to access attributes of this geometry.
@@ -233,6 +236,10 @@ export class BufferGeometry<
233
236
  */
234
237
  setIndex(index: BufferAttribute | number[] | null): this;
235
238
 
239
+ setIndirect(indirect: IndirectStorageBufferAttribute | null): this;
240
+
241
+ getIndirect(): IndirectStorageBufferAttribute | null;
242
+
236
243
  /**
237
244
  * Sets an {@link attributes | attribute} to this geometry with the specified name.
238
245
  * @remarks
@@ -352,8 +359,12 @@ export class BufferGeometry<
352
359
  center(): this;
353
360
 
354
361
  /**
355
- * Sets the attributes for this BufferGeometry from an array of points.
356
- * @param points
362
+ * Defines a geometry by creating a `position` attribute based on the given array of points. The array can hold
363
+ * instances of {@link Vector2} or {@link Vector3}. When using two-dimensional data, the `z` coordinate for all
364
+ * vertices is set to `0`.
365
+ *
366
+ * If the method is used with an existing `position` attribute, the vertex data are overwritten with the data from
367
+ * the array. The length of the array must match the vertex count.
357
368
  */
358
369
  setFromPoints(points: Vector3[] | Vector2[]): this;
359
370
 
@@ -42,18 +42,6 @@ export class InterleavedBuffer {
42
42
  */
43
43
  usage: Usage;
44
44
 
45
- /**
46
- * Object containing offset and count.
47
- * @defaultValue `{ offset: number = 0; count: number = -1 }`
48
- * @deprecated Will be removed in r169. Use "addUpdateRange()" instead.
49
- */
50
- updateRange: {
51
- /** @defaultValue `0` */
52
- offset: number;
53
- /** @defaultValue `-1` */
54
- count: number;
55
- };
56
-
57
45
  /**
58
46
  * This can be used to only update some components of stored data. Use the {@link .addUpdateRange} function to add
59
47
  * ranges to this array.
@@ -127,7 +127,7 @@ export class Object3D<TEventMap extends Object3DEventMap = Object3DEventMap> ext
127
127
  * Sub-classes will update this value.
128
128
  * @defaultValue `Object3D`
129
129
  */
130
- readonly type: string | "Object3D";
130
+ readonly type: string;
131
131
 
132
132
  /**
133
133
  * Object's parent in the {@link https://en.wikipedia.org/wiki/Scene_graph | scene graph}.
@@ -24,7 +24,8 @@ export interface Intersection<TIntersected extends Object3D = Object3D> {
24
24
  /** Intersected face */
25
25
  face?: Face | null | undefined;
26
26
  /** Index of the intersected face */
27
- faceIndex?: number | undefined;
27
+ faceIndex?: number | null | undefined;
28
+ barycoord?: Vector3 | null;
28
29
  /** The intersected object */
29
30
  object: TIntersected;
30
31
  uv?: Vector2 | undefined;
@@ -1,5 +1,4 @@
1
1
  import {
2
- ColorSpace,
3
2
  MagnificationTextureFilter,
4
3
  MinificationTextureFilter,
5
4
  PixelFormatGPU,
@@ -20,7 +19,7 @@ export interface RenderTargetOptions {
20
19
  format?: number | undefined; // RGBAFormat
21
20
  type?: TextureDataType | undefined; // UnsignedByteType
22
21
  anisotropy?: number | undefined; // 1
23
- colorSpace?: ColorSpace | undefined;
22
+ colorSpace?: string | undefined;
24
23
  internalFormat?: PixelFormatGPU | null | undefined; // null
25
24
  depthBuffer?: boolean | undefined; // true
26
25
  stencilBuffer?: boolean | undefined; // false
@@ -1,5 +1,5 @@
1
- import { Camera } from "../cameras/Camera.js";
2
1
  import { EventDispatcher } from "../core/EventDispatcher.js";
2
+ import { Object3D } from "../core/Object3D.js";
3
3
 
4
4
  /**
5
5
  * Abstract base class for controls.
@@ -8,7 +8,7 @@ declare abstract class Controls<TEventMap extends {}> extends EventDispatcher<TE
8
8
  /**
9
9
  * The 3D object that is managed by the controls.
10
10
  */
11
- object: Camera;
11
+ object: Object3D;
12
12
 
13
13
  /**
14
14
  * The HTML element used for event listeners. If not provided via the constructor, {@link .connect} must be called
@@ -26,7 +26,7 @@ declare abstract class Controls<TEventMap extends {}> extends EventDispatcher<TE
26
26
  * @param object The object the controls should manage (usually the camera).
27
27
  * @param domElement The HTML element used for event listeners. (optional)
28
28
  */
29
- constructor(object: Camera, domElement: HTMLElement | null);
29
+ constructor(object: Object3D, domElement?: HTMLElement | null);
30
30
 
31
31
  /**
32
32
  * Connects the controls to the DOM. This method has so called "side effects" since it adds the module's event
@@ -11,9 +11,9 @@ export class FileLoader extends Loader<string | ArrayBuffer> {
11
11
  onError?: (err: unknown) => void,
12
12
  ): void;
13
13
 
14
- mimeType: undefined | MimeType;
15
- responseType: undefined | string;
14
+ mimeType: string | undefined;
15
+ responseType: string | undefined;
16
16
 
17
- setMimeType(mimeType: MimeType): FileLoader;
17
+ setMimeType(mimeType: string): FileLoader;
18
18
  setResponseType(responseType: string): FileLoader;
19
19
  }
@@ -15,5 +15,7 @@ export class MaterialLoader extends Loader<Material> {
15
15
 
16
16
  setTextures(textures: { [key: string]: Texture }): this;
17
17
 
18
+ createMaterialFromType(type: string): Material;
19
+
18
20
  static createMaterialFromType(type: string): Material;
19
21
  }
@@ -8,9 +8,14 @@ export interface NodeLoaderResult {
8
8
  }
9
9
 
10
10
  export default class NodeLoader extends Loader<NodeLoaderResult> {
11
+ textures: { [key: string]: Texture };
12
+ nodes: { [type: string]: Node };
13
+
11
14
  constructor(manager?: LoadingManager);
12
15
 
13
16
  parseNodes(json: unknown): NodeLoaderResult;
14
17
  parse(json: unknown): Node;
15
18
  setTextures(textures: { [key: string]: Texture }): this;
19
+ setNodes(value: { [type: string]: Node }): this;
20
+ createNodeFromType(type: string): Node;
16
21
  }
@@ -1,8 +1,11 @@
1
+ import NodeMaterial from "../../materials/nodes/NodeMaterial.js";
1
2
  import { MaterialLoader } from "../MaterialLoader.js";
2
3
  import { NodeLoaderResult } from "./NodeLoader.js";
3
4
 
4
5
  export default class NodeMaterialLoader extends MaterialLoader {
5
6
  nodes: NodeLoaderResult;
7
+ nodeMaterials: { [type: string]: NodeMaterial };
6
8
 
7
9
  setNodes(value: NodeLoaderResult): this;
10
+ setNodeMaterials(value: { [type: string]: NodeMaterial }): this;
8
11
  }
@@ -1,9 +1,21 @@
1
1
  import { Material } from "../../materials/Material.js";
2
+ import NodeMaterial from "../../materials/nodes/NodeMaterial.js";
3
+ import { Node } from "../../nodes/Nodes.js";
2
4
  import { Texture } from "../../textures/Texture.js";
5
+ import { LoadingManager } from "../LoadingManager.js";
3
6
  import { ObjectLoader } from "../ObjectLoader.js";
4
7
  import { NodeLoaderResult } from "./NodeLoader.js";
5
8
 
6
9
  export default class NodeObjectLoader extends ObjectLoader {
10
+ nodes: { [type: string]: Node };
11
+ nodeMaterials: { [type: string]: NodeMaterial };
12
+
13
+ constructor(manager?: LoadingManager);
14
+
15
+ setNodes(value: { [type: string]: Node }): this;
16
+
17
+ setNodeMaterials(value: { [type: string]: NodeMaterial }): this;
18
+
7
19
  parseNodes(json: unknown, textures: { [key: string]: Texture }): NodeLoaderResult;
8
20
 
9
21
  parseMaterials(json: unknown, textures: { [key: string]: Texture }): { [key: string]: Material };
@@ -20,11 +20,6 @@ export class LineBasicMaterial extends Material {
20
20
  */
21
21
  readonly isLineBasicMaterial: true;
22
22
 
23
- /**
24
- * @default 'LineBasicMaterial'
25
- */
26
- type: string;
27
-
28
23
  /**
29
24
  * @default 0xffffff
30
25
  */
@@ -16,11 +16,6 @@ export class LineDashedMaterial extends LineBasicMaterial {
16
16
  */
17
17
  readonly isLineDashedMaterial: true;
18
18
 
19
- /**
20
- * @default 'LineDashedMaterial'
21
- */
22
- type: string;
23
-
24
19
  /**
25
20
  * @default 1
26
21
  */
@@ -234,6 +234,10 @@ export interface MaterialJSON {
234
234
  * Materials describe the appearance of objects. They are defined in a (mostly) renderer-independent way, so you don't have to rewrite materials if you decide to use a different renderer.
235
235
  */
236
236
  export class Material extends EventDispatcher<{ dispose: {} }> {
237
+ static get type(): string;
238
+
239
+ get type(): string;
240
+
237
241
  constructor();
238
242
 
239
243
  /**
@@ -509,12 +513,6 @@ export class Material extends EventDispatcher<{ dispose: {} }> {
509
513
  */
510
514
  transparent: boolean;
511
515
 
512
- /**
513
- * Value is the string 'Material'. This shouldn't be changed, and can be used to find all objects of this type in a scene.
514
- * @default 'Material'
515
- */
516
- type: string;
517
-
518
516
  /**
519
517
  * UUID of this material instance. This gets automatically assigned, so this shouldn't be edited.
520
518
  */
@@ -39,11 +39,6 @@ export class MeshBasicMaterial extends Material {
39
39
  */
40
40
  readonly isMeshBasicMaterial: true;
41
41
 
42
- /**
43
- * @default 'MeshBasicMaterial'
44
- */
45
- type: string;
46
-
47
42
  /**
48
43
  * @default new THREE.Color( 0xffffff )
49
44
  */
@@ -22,11 +22,6 @@ export class MeshDepthMaterial extends Material {
22
22
  */
23
23
  readonly isMeshDepthMaterial: true;
24
24
 
25
- /**
26
- * @default 'MeshDepthMaterial'
27
- */
28
- type: string;
29
-
30
25
  /**
31
26
  * @default null
32
27
  */
@@ -23,11 +23,6 @@ export class MeshDistanceMaterial extends Material {
23
23
  */
24
24
  readonly isMeshDistanceMaterial: true;
25
25
 
26
- /**
27
- * @default 'MeshDistanceMaterial'
28
- */
29
- type: string;
30
-
31
26
  /**
32
27
  * @default null
33
28
  */
@@ -47,11 +47,6 @@ export class MeshLambertMaterial extends Material {
47
47
  */
48
48
  readonly isMeshLambertMaterial: true;
49
49
 
50
- /**
51
- * @default 'MeshLambertMaterial'
52
- */
53
- type: string;
54
-
55
50
  /**
56
51
  * @default new THREE.Color( 0xffffff )
57
52
  */
@@ -31,11 +31,6 @@ export class MeshMatcapMaterial extends Material {
31
31
  */
32
32
  readonly isMeshMatcapMaterial: true;
33
33
 
34
- /**
35
- * @default 'MeshMatcapMaterial'
36
- */
37
- type: string;
38
-
39
34
  /**
40
35
  * @default { 'MATCAP': '' }
41
36
  */