@types/three 0.167.2 → 0.169.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 (304) hide show
  1. three/README.md +2 -2
  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 +1 -4
  5. three/examples/jsm/capabilities/WebGL.d.ts +11 -3
  6. three/examples/jsm/controls/ArcballControls.d.ts +111 -77
  7. three/examples/jsm/controls/DragControls.d.ts +43 -29
  8. three/examples/jsm/controls/FirstPersonControls.d.ts +82 -12
  9. three/examples/jsm/controls/FlyControls.d.ts +35 -11
  10. three/examples/jsm/controls/OrbitControls.d.ts +84 -137
  11. three/examples/jsm/controls/PointerLockControls.d.ts +68 -9
  12. three/examples/jsm/controls/TrackballControls.d.ts +110 -26
  13. three/examples/jsm/controls/TransformControls.d.ts +152 -25
  14. three/examples/jsm/effects/AnaglyphEffect.d.ts +11 -5
  15. three/examples/jsm/effects/ParallaxBarrierEffect.d.ts +7 -4
  16. three/examples/jsm/environments/RoomEnvironment.d.ts +2 -2
  17. three/examples/jsm/exporters/EXRExporter.d.ts +7 -2
  18. three/examples/jsm/exporters/KTX2Exporter.d.ts +3 -1
  19. three/examples/jsm/helpers/LightProbeHelper.d.ts +5 -3
  20. three/examples/jsm/helpers/LightProbeHelperGPU.d.ts +12 -0
  21. three/examples/jsm/lights/LightProbeGenerator.d.ts +5 -1
  22. three/examples/jsm/lines/Line2.d.ts +15 -1
  23. three/examples/jsm/lines/LineGeometry.d.ts +18 -1
  24. three/examples/jsm/lines/LineMaterial.d.ts +65 -12
  25. three/examples/jsm/lines/LineSegments2.d.ts +25 -2
  26. three/examples/jsm/lines/LineSegmentsGeometry.d.ts +46 -9
  27. three/examples/jsm/loaders/DRACOLoader.d.ts +6 -0
  28. three/examples/jsm/loaders/KTX2Loader.d.ts +4 -0
  29. three/examples/jsm/modifiers/CurveModifier.d.ts +7 -3
  30. three/examples/jsm/modifiers/CurveModifierGPU.d.ts +31 -0
  31. three/examples/jsm/objects/Lensflare.d.ts +13 -9
  32. three/examples/jsm/objects/LensflareMesh.d.ts +21 -0
  33. three/examples/jsm/objects/SkyMesh.d.ts +17 -0
  34. three/examples/jsm/objects/Water2.d.ts +2 -2
  35. three/examples/jsm/objects/Water2Mesh.d.ts +42 -0
  36. three/examples/jsm/objects/WaterMesh.d.ts +31 -0
  37. three/examples/jsm/postprocessing/OutlinePass.d.ts +1 -1
  38. three/examples/jsm/postprocessing/SSAARenderPass.d.ts +11 -2
  39. three/examples/jsm/utils/GeometryCompressionUtils.d.ts +20 -4
  40. three/examples/jsm/utils/ShadowMapViewer.d.ts +8 -6
  41. three/examples/jsm/utils/ShadowMapViewerGPU.d.ts +26 -0
  42. three/examples/jsm/utils/SkeletonUtils.d.ts +25 -5
  43. three/examples/jsm/utils/TextureUtilsGPU.d.ts +3 -0
  44. three/package.json +4 -3
  45. three/src/Three.WebGPU.Nodes.d.ts +201 -0
  46. three/src/Three.WebGPU.d.ts +7 -0
  47. three/src/Three.d.ts +1 -0
  48. three/src/audio/Audio.d.ts +4 -1
  49. three/src/core/BufferAttribute.d.ts +0 -15
  50. three/src/core/EventDispatcher.d.ts +0 -3
  51. three/src/core/InterleavedBuffer.d.ts +0 -12
  52. three/src/core/Object3D.d.ts +3 -1
  53. three/src/core/Raycaster.d.ts +2 -1
  54. three/src/extras/Controls.d.ts +54 -0
  55. three/src/loaders/MaterialLoader.d.ts +2 -0
  56. three/src/{nodes/loaders → loaders/nodes}/NodeLoader.d.ts +8 -3
  57. three/src/loaders/nodes/NodeMaterialLoader.d.ts +11 -0
  58. three/src/loaders/nodes/NodeObjectLoader.d.ts +22 -0
  59. three/src/materials/Material.d.ts +17 -13
  60. three/src/materials/nodes/InstancedPointsNodeMaterial.d.ts +33 -0
  61. three/src/{nodes/materials → materials/nodes}/Line2NodeMaterial.d.ts +2 -2
  62. three/src/{nodes/materials → materials/nodes}/LineBasicNodeMaterial.d.ts +1 -1
  63. three/src/materials/nodes/LineDashedNodeMaterial.d.ts +29 -0
  64. three/src/{nodes/materials → materials/nodes}/MeshBasicNodeMaterial.d.ts +1 -1
  65. three/src/materials/nodes/MeshLambertNodeMaterial.d.ts +49 -0
  66. three/src/{nodes/materials → materials/nodes}/MeshMatcapNodeMaterial.d.ts +2 -2
  67. three/src/{nodes/materials → materials/nodes}/MeshNormalNodeMaterial.d.ts +1 -1
  68. three/src/{nodes/materials → materials/nodes}/MeshPhongNodeMaterial.d.ts +2 -2
  69. three/src/{nodes/materials → materials/nodes}/MeshPhysicalNodeMaterial.d.ts +5 -2
  70. three/src/{nodes/materials → materials/nodes}/MeshSSSNodeMaterial.d.ts +2 -2
  71. three/src/{nodes/materials → materials/nodes}/MeshStandardNodeMaterial.d.ts +3 -3
  72. three/src/{nodes/materials → materials/nodes}/MeshToonNodeMaterial.d.ts +2 -2
  73. three/src/materials/nodes/NodeMaterial.d.ts +89 -0
  74. three/src/{nodes/materials/Materials.d.ts → materials/nodes/NodeMaterials.d.ts} +5 -2
  75. three/src/{nodes/materials → materials/nodes}/PointsNodeMaterial.d.ts +1 -2
  76. three/src/{nodes/materials → materials/nodes}/ShadowNodeMaterial.d.ts +1 -1
  77. three/src/{nodes/materials → materials/nodes}/SpriteNodeMaterial.d.ts +2 -2
  78. three/src/{nodes/materials → materials/nodes}/VolumeNodeMaterial.d.ts +1 -1
  79. three/src/materials/nodes/manager/NodeMaterialObserver.d.ts +81 -0
  80. three/src/math/Quaternion.d.ts +4 -3
  81. three/src/math/Triangle.d.ts +24 -0
  82. three/src/nodes/Nodes.d.ts +117 -362
  83. three/src/nodes/TSL.d.ts +175 -0
  84. three/src/nodes/accessors/AccessorsUtils.d.ts +1 -1
  85. three/src/nodes/accessors/BatchNode.d.ts +1 -2
  86. three/src/nodes/accessors/{BitangentNode.d.ts → Bitangent.d.ts} +1 -1
  87. three/src/nodes/accessors/BufferAttributeNode.d.ts +5 -4
  88. three/src/nodes/accessors/BufferNode.d.ts +1 -1
  89. three/src/nodes/accessors/{CameraNode.d.ts → Camera.d.ts} +1 -1
  90. three/src/nodes/accessors/ClippingNode.d.ts +1 -1
  91. three/src/nodes/accessors/CubeTextureNode.d.ts +1 -7
  92. three/src/nodes/accessors/InstanceNode.d.ts +1 -1
  93. three/src/nodes/accessors/MaterialNode.d.ts +3 -4
  94. three/src/nodes/accessors/MaterialProperties.d.ts +4 -0
  95. three/src/nodes/accessors/MaterialReferenceNode.d.ts +3 -1
  96. three/src/nodes/accessors/ModelNode.d.ts +8 -4
  97. three/src/nodes/accessors/ModelViewProjectionNode.d.ts +1 -1
  98. three/src/nodes/accessors/MorphNode.d.ts +15 -0
  99. three/src/nodes/accessors/Normal.d.ts +25 -0
  100. three/src/nodes/accessors/Object3DNode.d.ts +2 -6
  101. three/src/nodes/accessors/PointUVNode.d.ts +1 -1
  102. three/src/nodes/accessors/{PositionNode.d.ts → Position.d.ts} +2 -1
  103. three/src/nodes/accessors/ReferenceBaseNode.d.ts +27 -0
  104. three/src/nodes/accessors/ReferenceNode.d.ts +7 -5
  105. three/src/nodes/accessors/{ReflectVectorNode.d.ts → ReflectVector.d.ts} +1 -1
  106. three/src/nodes/accessors/RendererReferenceNode.d.ts +1 -1
  107. three/src/nodes/accessors/SceneNode.d.ts +20 -0
  108. three/src/nodes/accessors/SkinningNode.d.ts +11 -1
  109. three/src/nodes/accessors/StorageBufferNode.d.ts +2 -2
  110. three/src/nodes/accessors/StorageTextureNode.d.ts +1 -1
  111. three/src/nodes/accessors/{TangentNode.d.ts → Tangent.d.ts} +1 -1
  112. three/src/nodes/accessors/Texture3DNode.d.ts +1 -1
  113. three/src/nodes/accessors/TextureBicubic.d.ts +4 -0
  114. three/src/nodes/accessors/TextureNode.d.ts +26 -7
  115. three/src/nodes/accessors/TextureSizeNode.d.ts +18 -0
  116. three/src/nodes/accessors/{UVNode.d.ts → UV.d.ts} +1 -1
  117. three/src/nodes/accessors/UniformArrayNode.d.ts +30 -0
  118. three/src/nodes/accessors/UserDataNode.d.ts +1 -1
  119. three/src/nodes/accessors/VelocityNode.d.ts +16 -0
  120. three/src/nodes/accessors/VertexColorNode.d.ts +1 -1
  121. three/src/nodes/code/CodeNode.d.ts +1 -1
  122. three/src/nodes/code/ExpressionNode.d.ts +1 -1
  123. three/src/nodes/code/FunctionCallNode.d.ts +2 -2
  124. three/src/nodes/code/FunctionNode.d.ts +5 -6
  125. three/src/nodes/code/ScriptableNode.d.ts +22 -0
  126. three/src/nodes/code/ScriptableValueNode.d.ts +10 -0
  127. three/src/nodes/core/AssignNode.d.ts +2 -2
  128. three/src/nodes/core/AttributeNode.d.ts +2 -5
  129. three/src/nodes/core/BypassNode.d.ts +2 -2
  130. three/src/nodes/core/CacheNode.d.ts +2 -2
  131. three/src/nodes/core/ContextNode.d.ts +10 -7
  132. three/src/nodes/core/IndexNode.d.ts +11 -3
  133. three/src/nodes/core/MRTNode.d.ts +7 -2
  134. three/src/nodes/core/Node.d.ts +4 -7
  135. three/src/nodes/core/NodeUtils.d.ts +5 -1
  136. three/src/nodes/core/OutputStructNode.d.ts +1 -1
  137. three/src/nodes/core/ParameterNode.d.ts +12 -0
  138. three/src/nodes/core/PropertyNode.d.ts +1 -1
  139. three/src/nodes/core/StackNode.d.ts +12 -2
  140. three/src/nodes/core/StructTypeNode.d.ts +1 -0
  141. three/src/nodes/core/UniformNode.d.ts +2 -1
  142. three/src/nodes/core/VarNode.d.ts +2 -10
  143. three/src/nodes/core/VaryingNode.d.ts +2 -2
  144. three/src/nodes/display/AfterImageNode.d.ts +1 -7
  145. three/src/nodes/display/AnaglyphPassNode.d.ts +14 -0
  146. three/src/nodes/display/AnamorphicNode.d.ts +1 -7
  147. three/src/nodes/display/BleachBypass.d.ts +4 -0
  148. three/src/nodes/display/BlendMode.d.ts +10 -0
  149. three/src/nodes/display/BloomNode.d.ts +1 -7
  150. three/src/nodes/display/BumpMapNode.d.ts +16 -0
  151. three/src/nodes/display/ColorAdjustment.d.ts +27 -0
  152. three/src/nodes/display/ColorSpaceFunctions.d.ts +6 -0
  153. three/src/nodes/display/ColorSpaceNode.d.ts +40 -21
  154. three/src/nodes/display/DenoiseNode.d.ts +3 -9
  155. three/src/nodes/display/DepthOfFieldNode.d.ts +4 -8
  156. three/src/nodes/display/DotScreenNode.d.ts +4 -8
  157. three/src/nodes/display/FXAANode.d.ts +3 -9
  158. three/src/nodes/display/FilmNode.d.ts +3 -9
  159. three/src/nodes/display/FrontFacingNode.d.ts +4 -2
  160. three/src/nodes/display/GTAONode.d.ts +3 -9
  161. three/src/nodes/display/GaussianBlurNode.d.ts +4 -8
  162. three/src/nodes/display/Lut3DNode.d.ts +3 -9
  163. three/src/nodes/display/MotionBlur.d.ts +8 -0
  164. three/src/nodes/display/NormalMapNode.d.ts +4 -8
  165. three/src/nodes/display/ParallaxBarrierPassNode.d.ts +14 -0
  166. three/src/nodes/display/PassNode.d.ts +11 -2
  167. three/src/nodes/display/PixelationPassNode.d.ts +1 -37
  168. three/src/nodes/display/PosterizeNode.d.ts +1 -7
  169. three/src/nodes/display/RGBShiftNode.d.ts +1 -7
  170. three/src/nodes/display/RenderOutputNode.d.ts +2 -2
  171. three/src/nodes/display/SSAAPassNode.d.ts +26 -0
  172. three/src/nodes/display/ScreenNode.d.ts +48 -0
  173. three/src/nodes/display/Sepia.d.ts +4 -0
  174. three/src/nodes/display/SobelOperatorNode.d.ts +4 -8
  175. three/src/nodes/display/StereoCompositePassNode.d.ts +17 -0
  176. three/src/nodes/display/StereoPassNode.d.ts +17 -0
  177. three/src/nodes/display/ToneMappingFunctions.d.ts +14 -0
  178. three/src/nodes/display/ToneMappingNode.d.ts +5 -6
  179. three/src/nodes/display/ToonOutlinePassNode.d.ts +24 -0
  180. three/src/nodes/display/TransitionNode.d.ts +3 -9
  181. three/src/nodes/display/ViewportDepthNode.d.ts +6 -2
  182. three/src/nodes/display/ViewportDepthTextureNode.d.ts +4 -2
  183. three/src/nodes/display/ViewportSharedTextureNode.d.ts +4 -8
  184. three/src/nodes/display/ViewportTextureNode.d.ts +4 -9
  185. three/src/nodes/fog/FogExp2Node.d.ts +4 -8
  186. three/src/nodes/fog/FogNode.d.ts +4 -8
  187. three/src/nodes/fog/FogRangeNode.d.ts +4 -8
  188. three/src/nodes/functions/BSDF/BRDF_GGX.d.ts +1 -1
  189. three/src/nodes/functions/BSDF/BRDF_Lambert.d.ts +1 -1
  190. three/src/nodes/functions/BSDF/BRDF_Sheen.d.ts +1 -1
  191. three/src/nodes/functions/BSDF/DFGApprox.d.ts +1 -1
  192. three/src/nodes/functions/BSDF/D_GGX.d.ts +1 -1
  193. three/src/nodes/functions/BSDF/D_GGX_Anisotropic.d.ts +1 -1
  194. three/src/nodes/functions/BSDF/F_Schlick.d.ts +1 -1
  195. three/src/nodes/functions/BSDF/Schlick_to_F0.d.ts +10 -0
  196. three/src/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +1 -1
  197. three/src/nodes/functions/BSDF/V_GGX_SmithCorrelated_Anisotropic.d.ts +1 -1
  198. three/src/nodes/functions/ShadowMaskModel.d.ts +1 -1
  199. three/src/nodes/functions/material/getGeometryRoughness.d.ts +1 -1
  200. three/src/nodes/functions/material/getRoughness.d.ts +1 -1
  201. three/src/nodes/functions/material/getShIrradianceAt.d.ts +6 -0
  202. three/src/nodes/geometry/RangeNode.d.ts +1 -1
  203. three/src/nodes/gpgpu/ComputeNode.d.ts +2 -2
  204. three/src/nodes/lighting/AmbientLightNode.d.ts +8 -0
  205. three/src/nodes/lighting/DirectionalLightNode.d.ts +8 -0
  206. three/src/nodes/lighting/IESSpotLightNode.d.ts +5 -0
  207. three/src/nodes/lighting/LightNode.d.ts +18 -0
  208. three/src/nodes/lighting/LightProbeNode.d.ts +11 -0
  209. three/src/nodes/lighting/LightUtils.d.ts +3 -3
  210. three/src/nodes/lighting/LightingContextNode.d.ts +1 -7
  211. three/src/nodes/lighting/LightsNode.d.ts +9 -13
  212. three/src/nodes/materialx/MaterialXNodes.d.ts +1 -1
  213. three/src/nodes/materialx/lib/mx_hsv.d.ts +2 -2
  214. three/src/nodes/materialx/lib/mx_noise.d.ts +1 -1
  215. three/src/nodes/materialx/lib/mx_transform_color.d.ts +1 -1
  216. three/src/nodes/math/ConditionalNode.d.ts +39 -0
  217. three/src/nodes/math/Hash.d.ts +4 -0
  218. three/src/nodes/math/MathNode.d.ts +2 -2
  219. three/src/nodes/math/MathUtils.d.ts +0 -10
  220. three/src/nodes/math/OperatorNode.d.ts +18 -4
  221. three/src/nodes/math/TriNoise3D.d.ts +1 -1
  222. three/src/nodes/parsers/GLSLNodeFunction.d.ts +9 -0
  223. three/src/nodes/parsers/GLSLNodeParser.d.ts +8 -0
  224. three/src/nodes/pmrem/PMREMNode.d.ts +4 -2
  225. three/src/nodes/pmrem/PMREMUtils.d.ts +28 -0
  226. three/src/nodes/procedural/Checker.d.ts +4 -0
  227. three/src/nodes/tsl/TSLBase.d.ts +21 -0
  228. three/src/nodes/{shadernode/ShaderNode.d.ts → tsl/TSLCore.d.ts} +23 -23
  229. three/src/nodes/utils/CubeMapNode.d.ts +13 -0
  230. three/src/nodes/utils/Discard.d.ts +11 -0
  231. three/src/nodes/utils/EquirectUVNode.d.ts +1 -1
  232. three/src/nodes/utils/FunctionOverloadingNode.d.ts +13 -0
  233. three/src/nodes/utils/LoopNode.d.ts +22 -0
  234. three/src/nodes/utils/MatcapUVNode.d.ts +1 -1
  235. three/src/nodes/utils/MaxMipLevelNode.d.ts +1 -1
  236. three/src/nodes/utils/OscNode.d.ts +1 -1
  237. three/src/nodes/utils/Packing.d.ts +5 -0
  238. three/src/nodes/utils/RTTNode.d.ts +7 -7
  239. three/src/nodes/utils/ReflectorNode.d.ts +1 -1
  240. three/src/nodes/utils/RemapNode.d.ts +2 -2
  241. three/src/nodes/utils/RotateNode.d.ts +1 -7
  242. three/src/nodes/utils/SetNode.d.ts +11 -0
  243. three/src/nodes/utils/SplitNode.d.ts +1 -1
  244. three/src/nodes/utils/SpriteSheetUVNode.d.ts +1 -1
  245. three/src/nodes/utils/SpriteUtils.d.ts +6 -0
  246. three/src/nodes/utils/{StoargeArrayElementNode.d.ts → StorageArrayElementNode.d.ts} +1 -7
  247. three/src/nodes/utils/TimerNode.d.ts +1 -1
  248. three/src/nodes/utils/TriplanarTexturesNode.d.ts +1 -7
  249. three/src/nodes/utils/UVUtils.d.ts +14 -0
  250. three/src/nodes/utils/ViewportUtils.d.ts +4 -0
  251. three/src/objects/BatchedMesh.d.ts +33 -0
  252. three/src/objects/Group.d.ts +0 -6
  253. three/src/objects/LOD.d.ts +7 -0
  254. three/src/renderers/WebGLRenderer.d.ts +2 -12
  255. three/src/renderers/common/BindGroup.d.ts +8 -1
  256. three/src/renderers/common/Bindings.d.ts +2 -2
  257. three/src/renderers/common/BundleGroup.d.ts +10 -0
  258. three/src/renderers/common/ClippingContext.d.ts +1 -0
  259. three/src/renderers/common/QuadMesh.d.ts +2 -0
  260. three/src/renderers/common/RenderBundles.d.ts +3 -3
  261. three/src/renderers/common/RenderContext.d.ts +2 -0
  262. three/src/renderers/common/RenderContexts.d.ts +6 -4
  263. three/src/renderers/common/RenderList.d.ts +2 -1
  264. three/src/renderers/common/RenderObject.d.ts +19 -1
  265. three/src/renderers/common/RenderObjects.d.ts +1 -1
  266. three/src/renderers/common/Renderer.d.ts +24 -5
  267. three/src/renderers/common/SampledTexture.d.ts +7 -1
  268. three/src/renderers/common/Textures.d.ts +1 -0
  269. three/src/renderers/common/nodes/NodeBuilderState.d.ts +3 -2
  270. three/src/renderers/common/nodes/NodeLibrary.d.ts +56 -0
  271. three/src/renderers/common/nodes/NodeSampledTexture.d.ts +3 -3
  272. three/src/renderers/common/nodes/Nodes.d.ts +15 -9
  273. three/src/renderers/common/nodes/StandardNodeLibrary.d.ts +5 -0
  274. three/src/renderers/webgl/WebGLCapabilities.d.ts +13 -0
  275. three/src/renderers/webgl/WebGLPrograms.d.ts +1 -0
  276. three/src/renderers/webgl/WebGLProperties.d.ts +5 -4
  277. three/src/renderers/webgpu/WebGPUBackend.d.ts +6 -2
  278. three/src/renderers/webgpu/WebGPURenderer.Nodes.d.ts +12 -0
  279. three/src/renderers/webgpu/WebGPURenderer.d.ts +5 -1
  280. three/src/renderers/webgpu/nodes/BasicNodeLibrary.d.ts +5 -0
  281. three/src/renderers/webgpu/nodes/StandardNodeLibrary.d.ts +5 -0
  282. three/src/renderers/webgpu/nodes/WGSLNodeBuilder.d.ts +2 -2
  283. three/src/renderers/webxr/WebXRManager.d.ts +0 -2
  284. three/examples/jsm/geometries/SDFGeometryGenerator.d.ts +0 -16
  285. three/examples/jsm/loaders/LogLuvLoader.d.ts +0 -19
  286. three/examples/jsm/loaders/TiltLoader.d.ts +0 -7
  287. three/examples/jsm/utils/GPUStatsPanel.d.ts +0 -12
  288. three/examples/jsm/utils/PackedPhongMaterial.d.ts +0 -10
  289. three/src/nodes/accessors/NormalNode.d.ts +0 -12
  290. three/src/nodes/accessors/TextureBicubicNode.d.ts +0 -18
  291. three/src/nodes/accessors/UniformsNode.d.ts +0 -23
  292. three/src/nodes/core/NodeKeywords.d.ts +0 -17
  293. three/src/nodes/display/BlendModeNode.d.ts +0 -47
  294. three/src/nodes/display/ColorAdjustmentNode.d.ts +0 -47
  295. three/src/nodes/display/ViewportNode.d.ts +0 -31
  296. three/src/nodes/loaders/NodeMaterialLoader.d.ts +0 -8
  297. three/src/nodes/loaders/NodeObjectLoader.d.ts +0 -10
  298. three/src/nodes/materials/NodeMaterial.d.ts +0 -124
  299. three/src/nodes/math/CondNode.d.ts +0 -22
  300. three/src/nodes/math/HashNode.d.ts +0 -16
  301. three/src/nodes/procedural/CheckerNode.d.ts +0 -15
  302. three/src/nodes/utils/DiscardNode.d.ts +0 -17
  303. three/src/nodes/utils/PackingNode.d.ts +0 -24
  304. three/src/nodes/utils/RotateUVNode.d.ts +0 -19
three/README.md CHANGED
@@ -8,8 +8,8 @@ This package contains type definitions for three (https://threejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 20 Aug 2024 22:36:03 GMT
12
- * Dependencies: [@tweenjs/tween.js](https://npmjs.com/package/@tweenjs/tween.js), [@types/stats.js](https://npmjs.com/package/@types/stats.js), [@types/webxr](https://npmjs.com/package/@types/webxr), [fflate](https://npmjs.com/package/fflate), [meshoptimizer](https://npmjs.com/package/meshoptimizer)
11
+ * Last updated: Thu, 26 Sep 2024 17:08:07 GMT
12
+ * Dependencies: [@tweenjs/tween.js](https://npmjs.com/package/@tweenjs/tween.js), [@types/stats.js](https://npmjs.com/package/@types/stats.js), [@types/webxr](https://npmjs.com/package/@types/webxr), [@webgpu/types](https://npmjs.com/package/@webgpu/types), [fflate](https://npmjs.com/package/fflate), [meshoptimizer](https://npmjs.com/package/meshoptimizer)
13
13
 
14
14
  # Credits
15
15
  These definitions were written by [Josh Ellis](https://github.com/joshuaellis), and [Nathan Bierema](https://github.com/Methuselah96).
@@ -0,0 +1 @@
1
+ export * from "../src/Three.WebGPU.Nodes.js";
@@ -0,0 +1 @@
1
+ export * from "../src/Three.WebGPU.Nodes.js";
@@ -100,7 +100,6 @@ export * from "./loaders/KMZLoader.js";
100
100
  export * from "./loaders/KTX2Loader.js";
101
101
  export * from "./loaders/KTXLoader.js";
102
102
  export * from "./loaders/LDrawLoader.js";
103
- export * from "./loaders/LogLuvLoader.js";
104
103
  export * from "./loaders/LottieLoader.js";
105
104
  export * from "./loaders/LUT3dlLoader.js";
106
105
  export * from "./loaders/LUTCubeLoader.js";
@@ -122,7 +121,6 @@ export * from "./loaders/SVGLoader.js";
122
121
  export * from "./loaders/TDSLoader.js";
123
122
  export * from "./loaders/TGALoader.js";
124
123
  export * from "./loaders/TIFFLoader.js";
125
- export * from "./loaders/TiltLoader.js";
126
124
  export * from "./loaders/TTFLoader.js";
127
125
  export * from "./loaders/UltraHDRLoader.js";
128
126
  export * from "./loaders/USDZLoader.js";
@@ -172,6 +170,7 @@ export * from "./objects/ShadowMesh.js";
172
170
  export * from "./objects/Sky.js";
173
171
  export * from "./objects/Water.js";
174
172
  export { Water as Water2 } from "./objects/Water2.js";
173
+ export type { WaterOptions as Water2Options } from "./objects/Water2.js";
175
174
 
176
175
  export * from "./physics/AmmoPhysics.js";
177
176
  export * from "./physics/RapierPhysics.js";
@@ -270,9 +269,7 @@ export * as BufferGeometryUtils from "./utils/BufferGeometryUtils.js";
270
269
  export * as CameraUtils from "./utils/CameraUtils.js";
271
270
  export * as GeometryCompressionUtils from "./utils/GeometryCompressionUtils.js";
272
271
  export * as GeometryUtils from "./utils/GeometryUtils.js";
273
- export * from "./utils/GPUStatsPanel.js";
274
272
  export * from "./utils/LDrawUtils.js";
275
- export * from "./utils/PackedPhongMaterial.js";
276
273
  export * as SceneUtils from "./utils/SceneUtils.js";
277
274
  export * from "./utils/ShadowMapViewer.js";
278
275
  export * as SkeletonUtils from "./utils/SkeletonUtils.js";
@@ -1,9 +1,17 @@
1
- // tslint:disable-next-line:no-unnecessary-class
2
1
  export default class WebGL {
3
- static isWebGLAvailable(): boolean;
4
2
  static isWebGL2Available(): boolean;
5
3
  static isColorSpaceAvailable(colorSpace: PredefinedColorSpace): boolean;
6
- static getWebGLErrorMessage(): HTMLElement;
7
4
  static getWebGL2ErrorMessage(): HTMLElement;
8
5
  static getErrorMessage(version: number): HTMLElement;
6
+
7
+ /**
8
+ * @deprecated isWebGLAvailable() has been deprecated and will be removed in r178. Use isWebGL2Available() instead.
9
+ */
10
+ static isWebGLAvailable(): boolean;
11
+
12
+ /**
13
+ * @deprecated getWebGLErrorMessage() has been deprecated and will be removed in r178. Use getWebGL2ErrorMessage()
14
+ * instead.
15
+ */
16
+ static getWebGLErrorMessage(): HTMLElement;
9
17
  }
@@ -1,169 +1,203 @@
1
- import { Camera, EventDispatcher, Raycaster, Scene, Vector3 } from "three";
1
+ import { Camera, Controls, Raycaster, Scene } from "three";
2
2
 
3
- export enum ArcballControlsMouseActionOperations {
4
- PAN = "PAN",
5
- ROTATE = "ROTATE",
6
- ZOOM = "ZOOM",
7
- FOV = "FOV",
8
- }
3
+ export type ArcballControlsMouseActionOperation = "PAN" | "ROTATE" | "ZOOM" | "FOV";
9
4
 
10
5
  export type ArcballControlsMouseActionMouse = 0 | 1 | 2 | "WHEEL";
11
6
 
12
- export enum ArcballControlsMouseActionKeys {
13
- SHIFT = "SHIFT",
14
- CTRL = "CTRL",
15
- }
7
+ export type ArcballControlsMouseActionKey = "SHIFT" | "CTRL";
16
8
 
17
9
  export interface ArcballControlsEventMap {
18
- change: {};
19
- start: {};
20
- end: {};
21
- }
22
-
23
- export class ArcballControls extends EventDispatcher<ArcballControlsEventMap> {
24
- camera: Camera | null;
25
- domElement: HTMLElement;
26
- scene?: Scene | null | undefined;
27
-
28
10
  /**
29
- * @default 500
11
+ * Fires when the camera has been transformed by the controls.
30
12
  */
31
- focusAnimationTime: number;
13
+ change: {};
32
14
 
33
15
  /**
34
- * @default true
16
+ * Fires when an interaction was initiated.
35
17
  */
36
- enabled: boolean;
18
+ start: {};
37
19
 
38
20
  /**
39
- * @default true
21
+ * Fires when an interaction has finished.
40
22
  */
41
- enablePan: boolean;
23
+ end: {};
24
+ }
42
25
 
26
+ /**
27
+ * Arcball controls allow the camera to be controlled by a virtual trackball with full touch support and advanced
28
+ * navigation functionality.
29
+ */
30
+ declare class ArcballControls extends Controls<ArcballControlsEventMap> {
43
31
  /**
44
- * @default true
32
+ * The scene rendered by the camera.
45
33
  */
46
- enableRotate: boolean;
34
+ scene: Scene | null;
47
35
 
48
36
  /**
49
- * @default true
37
+ * The size of the gizmo relative to the screen width and height. Default is 0.67.
50
38
  */
51
- enableZoom: boolean;
39
+ radiusFactor: number;
52
40
 
53
41
  /**
54
- * @default true
42
+ * Duration time of focus animation.
55
43
  */
56
- enableGizmos: boolean;
44
+ focusAnimationTime: number;
57
45
 
58
46
  /**
59
- * @default true
47
+ * If true, camera's near and far values will be adjusted every time zoom is performed trying to mantain the same
48
+ * visible portion given by initial near and far values ( {@link PerspectiveCamera} only ). Default is false.
60
49
  */
61
50
  adjustNearFar: boolean;
62
51
 
63
52
  /**
64
- * @default 1.1
53
+ * The scaling factor used when performing zoom operation.
65
54
  */
66
55
  scaleFactor: number;
67
56
 
68
57
  /**
69
- * @default 25
58
+ * The damping inertia used if [page:.enableAnimations] is set to true.
70
59
  */
71
60
  dampingFactor: number;
72
61
 
73
62
  /**
74
- * @default 20
63
+ * Maximum angular velocity allowed on rotation animation start.
75
64
  */
76
- wMax: number; // maximum angular velocity allowed
65
+ wMax: number;
77
66
 
78
67
  /**
79
- * @default true
68
+ * Set to true to enable animations for rotation (damping) and focus operation. Default is true.
80
69
  */
81
- enableAnimations: boolean; // if animations should be performed
70
+ enableAnimations: boolean;
82
71
 
83
72
  /**
84
- * @default false
73
+ * When set to true, a grid will appear when panning operation is being performed (desktop interaction only). Default is false.
85
74
  */
86
- enableGrid: boolean; // if grid should be showed during pan operation
75
+ enableGrid: boolean;
87
76
 
88
77
  /**
89
- * @default false
78
+ * Set to true to make zoom become cursor centered.
90
79
  */
91
- cursorZoom: boolean; // if wheel zoom should be cursor centered
80
+ cursorZoom: boolean;
92
81
 
93
82
  /**
94
- * @default 5
83
+ * Speed of rotation. Default is 1.
95
84
  */
96
- minFov: number;
85
+ rotateSpeed: number;
97
86
 
98
87
  /**
99
- * @default 90
88
+ * Enable or disable camera panning. Default is true.
100
89
  */
101
- maxFov: number;
90
+ enablePan: boolean;
91
+
92
+ /**
93
+ * Enable or disable camera rotation. Default is true.
94
+ */
95
+ enableRotate: boolean;
96
+
97
+ /**
98
+ * Enable or disable zooming of the camera.
99
+ */
100
+ enableZoom: boolean;
102
101
 
103
102
  /**
104
- * @default 0
103
+ * How far you can dolly in ( {@link PerspectiveCamera} only ). Default is 0.
105
104
  */
106
105
  minDistance: number;
107
106
 
108
107
  /**
109
- * @default Infinity
108
+ * How far you can dolly out ( {@link PerspectiveCamera} only ). Default is Infinity.
110
109
  */
111
110
  maxDistance: number;
112
111
 
113
112
  /**
114
- * @default 0
113
+ * How far you can zoom in ( {@link OrthographicCamera} only ). Default is 0.
115
114
  */
116
115
  minZoom: number;
117
116
 
118
117
  /**
119
- * @default Infinity
118
+ * How far you can zoom out ( {@link OrthographicCamera} only ). Default is Infinity.
120
119
  */
121
120
  maxZoom: number;
122
121
 
123
122
  /**
124
- * @default Vector3(0,0,0)
123
+ * @param camera The camera to be controlled. The camera must not be a child of another object, unless that object
124
+ * is the scene itself.
125
+ * @param domElement The HTML element used for event listeners. (optional)
126
+ * @param scene The scene rendered by the camera. If not given, gizmos cannot be shown. (optional)
125
127
  */
126
- target: Vector3;
128
+ constructor(camera: Camera, domElement?: HTMLElement | null, scene?: Scene | null);
127
129
 
128
130
  /**
129
- * @default 0.67
131
+ * Set a new mouse action by specifying the operation to be performed and a mouse/key combination. In case of
132
+ * conflict, replaces the existing one.
133
+ * @param operation Operations can be specified as 'ROTATE', 'PAN', 'FOV' or 'ZOOM'.
134
+ * @param mouse Mouse inputs can be specified as mouse buttons 0, 1 and 2 or 'WHEEL' for wheel notches.
135
+ * @param key Keyboard modifiers can be specified as 'CTRL', 'SHIFT' or null if not needed.
130
136
  */
131
- radiusFactor: number;
137
+ setMouseAction(
138
+ operation: ArcballControlsMouseActionOperation,
139
+ mouse: ArcballControlsMouseActionMouse,
140
+ key?: ArcballControlsMouseActionKey | null,
141
+ ): boolean;
132
142
 
133
143
  /**
134
- * @default 1
144
+ * Removes a mouse action by specifying its mouse/key combination.
145
+ * @param mouse Mouse inputs can be specified as mouse buttons 0, 1 and 2 or 'WHEEL' for wheel notches.
146
+ * @param key Keyboard modifiers can be specified as 'CTRL', 'SHIFT' or null if not needed.
135
147
  */
136
- rotateSpeed: number;
137
-
138
- constructor(camera: Camera, domElement: HTMLElement, scene?: Scene | null);
139
-
140
- getRaycaster(): Raycaster;
148
+ unsetMouseAction(mouse: ArcballControlsMouseActionMouse, key?: ArcballControlsMouseActionKey | null): boolean;
141
149
 
150
+ /**
151
+ * Make gizmos more or less visible.
152
+ */
142
153
  activateGizmos(isActive: boolean): void;
143
154
 
144
- copyState(): void;
155
+ /**
156
+ * Set the camera to be controlled. Must be called in order to set a new camera to be controlled.
157
+ */
158
+ setCamera(camera: Camera): void;
145
159
 
146
- pasteState(): void;
160
+ /**
161
+ * Set the visible property of gizmos.
162
+ */
163
+ setGizmosVisible(value: boolean): void;
147
164
 
148
- saveState(): void;
165
+ /**
166
+ * Update the `radiusFactor` value, redraw the gizmo and send a `changeEvent` to visualise the changes.
167
+ */
168
+ setTbRadius(value: number): void;
149
169
 
170
+ /**
171
+ * Reset the controls to their state from either the last time the {@link .saveState} was called, or the initial
172
+ * state.
173
+ */
150
174
  reset(): void;
151
175
 
152
- setCamera(camera: Camera): void;
153
-
154
- setGizmosVisible(value: boolean): void;
176
+ /**
177
+ * Copy the current state to clipboard (as a readable JSON text).
178
+ */
179
+ copyState(): void;
155
180
 
156
- setTbRadius(value: number): void;
181
+ /**
182
+ * Set the controls state from the clipboard, assumes that the clipboard stores a JSON text as saved from
183
+ * {@link .copyState}.
184
+ */
185
+ pasteState(): void;
157
186
 
158
- setMouseAction(
159
- operation: ArcballControlsMouseActionOperations,
160
- mouse: ArcballControlsMouseActionMouse,
161
- key?: ArcballControlsMouseActionKeys,
162
- ): boolean;
187
+ /**
188
+ * Save the current state of the controls. This can later be recovered with {@link .reset}.
189
+ */
190
+ saveState(): void;
163
191
 
164
- unsetMouseAction(mouse: ArcballControlsMouseActionMouse, key?: ArcballControlsMouseActionKeys): boolean;
192
+ /**
193
+ * Returns the {@link Raycaster} object that is used for user interaction. This object is shared between all
194
+ * instances of ArcballControls. If you set the [.layers]{@link Object3D.layers} property of the
195
+ * {@link ArcballControls}, you will also want to set the [.layers]{@link Raycaster.layers} property on the
196
+ * {@link Raycaster} with a matching value, or else the {@link ArcballControls} won't work as expected.
197
+ */
198
+ getRaycaster(): Raycaster;
165
199
 
166
200
  update(): void;
167
-
168
- dispose(): void;
169
201
  }
202
+
203
+ export { ArcballControls };
@@ -1,4 +1,4 @@
1
- import { Camera, EventDispatcher, Object3D, Raycaster } from "three";
1
+ import { Camera, Controls, MOUSE, Object3D, Raycaster, TOUCH } from "three";
2
2
 
3
3
  export interface DragControlsEventMap {
4
4
  /**
@@ -27,21 +27,11 @@ export interface DragControlsEventMap {
27
27
  dragend: { object: Object3D };
28
28
  }
29
29
 
30
- export type DragControlsMode = "translate" | "rotate";
31
-
32
- export class DragControls extends EventDispatcher<DragControlsEventMap> {
33
- /**
34
- * Creates a new instance of DragControls.
35
- * @param objects An array of draggable 3D objects.
36
- * @param camera The camera of the rendered scene.
37
- * @param domElement The HTML element used for event listeners.
38
- */
39
- constructor(objects: Object3D[], camera: Camera, domElement?: HTMLElement);
40
-
30
+ declare class DragControls extends Controls<DragControlsEventMap> {
41
31
  /**
42
- * Whether or not the controls are enabled.
32
+ * An array of draggable 3D objects.
43
33
  */
44
- enabled: boolean;
34
+ objects: Object3D[];
45
35
 
46
36
  /**
47
37
  * Whether children of draggable objects can be dragged independently from their parent. Default is `true`.
@@ -54,11 +44,6 @@ export class DragControls extends EventDispatcher<DragControlsEventMap> {
54
44
  */
55
45
  transformGroup: boolean;
56
46
 
57
- /**
58
- * The current transformation mode. Possible values are `translate`, and `rotate`. Default is `translate`.
59
- */
60
- mode: DragControlsMode;
61
-
62
47
  /**
63
48
  * The speed at which the object will rotate when dragged in `rotate` mode. The higher the number the faster the
64
49
  * rotation. Default is `1`.
@@ -66,32 +51,61 @@ export class DragControls extends EventDispatcher<DragControlsEventMap> {
66
51
  rotateSpeed: number;
67
52
 
68
53
  /**
69
- * Adds the event listeners of the controls.
54
+ * The internal raycaster used for detecting 3D objects.
70
55
  */
71
- activate: () => void;
56
+ raycaster: Raycaster;
72
57
 
73
58
  /**
74
- * Removes the event listeners of the controls.
59
+ * This object defines what type of actions are assigned to the available mouse buttons.
75
60
  */
76
- deactivate: () => void;
61
+ mouseButtons: {
62
+ LEFT?: MOUSE | null | undefined;
63
+ MIDDLE?: MOUSE | null | undefined;
64
+ RIGHT?: MOUSE | null | undefined;
65
+ };
77
66
 
78
67
  /**
79
- * Should be called if the controls is no longer required.
68
+ * This object defines what type of actions are assigned to what kind of touch interaction.
80
69
  */
81
- dispose: () => void;
70
+ touches: { ONE?: TOUCH | null | undefined };
82
71
 
83
72
  /**
84
- * Returns the array of draggable objects.
73
+ * Creates a new instance of DragControls.
74
+ * @param objects An array of draggable 3D objects.
75
+ * @param camera The camera of the rendered scene.
76
+ * @param domElement The HTML element used for event listeners. (optional)
85
77
  */
86
- getObjects: () => Object3D[];
78
+ constructor(objects: Object3D[], camera: Camera, domElement?: HTMLElement | null);
87
79
 
88
80
  /**
89
81
  * Returns the internal {@link Raycaster} instance that is used for intersection tests.
82
+ * @deprecated getRaycaster() has been deprecated. Use controls.raycaster instead.
90
83
  */
91
- getRaycaster: () => Raycaster;
84
+ getRaycaster(): Raycaster;
92
85
 
93
86
  /**
94
87
  * Sets an array of draggable objects by overwriting the existing one.
88
+ * @deprecated setObjects() has been deprecated. Use controls.objects instead.
89
+ */
90
+ setObjects(objects: readonly Object3D[]): void;
91
+
92
+ /**
93
+ * Returns the array of draggable objects.
94
+ * @deprecated getObjects() has been deprecated. Use controls.objects instead.
95
+ */
96
+ getObjects(): Object3D[];
97
+
98
+ /**
99
+ * Adds the event listeners of the controls.
100
+ * @deprecated activate() has been renamed to connect().
95
101
  */
96
- setObjects: (objects: readonly Object3D[]) => void;
102
+ activate(): void;
103
+
104
+ /**
105
+ * Removes the event listeners of the controls.
106
+ * @deprecated deactivate() has been renamed to disconnect().
107
+ */
108
+ deactivate(): void;
97
109
  }
110
+
111
+ export { DragControls };
@@ -1,31 +1,101 @@
1
- import { Camera, Vector3 } from "three";
1
+ import { Camera, Controls, Vector3 } from "three";
2
2
 
3
- export class FirstPersonControls {
4
- constructor(object: Camera, domElement?: HTMLElement);
5
-
6
- object: Camera;
7
- domElement: HTMLElement | Document;
8
-
9
- enabled: boolean;
3
+ /**
4
+ * This class is an alternative implementation of {@link FlyControls}.
5
+ */
6
+ declare class FirstPersonControls extends Controls<{}> {
7
+ /**
8
+ * The movement speed. Default is *1*.
9
+ */
10
10
  movementSpeed: number;
11
+
12
+ /**
13
+ * The look around speed. Default is `0.005`.
14
+ */
11
15
  lookSpeed: number;
16
+
17
+ /**
18
+ * Whether or not it's possible to vertically look around. Default is `true`.
19
+ */
12
20
  lookVertical: boolean;
21
+
22
+ /**
23
+ * Whether or not the camera is automatically moved forward. Default is `false`.
24
+ */
13
25
  autoForward: boolean;
26
+
27
+ /**
28
+ * Whether or not it's possible to look around. Default is `true`.
29
+ */
14
30
  activeLook: boolean;
31
+
32
+ /**
33
+ * Whether or not the camera's height influences the forward movement speed. Default is `false`.
34
+ * Use the properties {@link .heightCoef}, {@link .heightMin} and {@link .heightMax} for configuration
35
+ */
15
36
  heightSpeed: boolean;
37
+
38
+ /**
39
+ * Determines how much faster the camera moves when it's y-component is near {@link .heightMax}. Default is *1*.
40
+ */
16
41
  heightCoef: number;
42
+
43
+ /**
44
+ * Lower camera height limit used for movement speed adjustment. Default is *0*.
45
+ */
17
46
  heightMin: number;
47
+
48
+ /**
49
+ * Upper camera height limit used for movement speed adjustment. Default is *1*.
50
+ */
18
51
  heightMax: number;
52
+
53
+ /**
54
+ * Whether or not looking around is vertically constrained by [{@link .verticalMin}, {@link .verticalMax}]. Default
55
+ * is `false`.
56
+ */
19
57
  constrainVertical: boolean;
58
+
59
+ /**
60
+ * How far you can vertically look around, lower limit. Range is 0 to Math.PI radians. Default is *0*.
61
+ */
20
62
  verticalMin: number;
63
+
64
+ /**
65
+ * How far you can vertically look around, upper limit. Range is 0 to Math.PI radians. Default is `Math.PI`.
66
+ */
21
67
  verticalMax: number;
68
+
69
+ /**
70
+ * Whether or not the mouse is pressed down. Read-only property.
71
+ */
22
72
  mouseDragOn: boolean;
23
73
 
74
+ /**
75
+ * Creates a new instance of {@link FirstPersonControls}.
76
+ * @param object The camera to be controlled.
77
+ * @param domElement The HTML element used for event listeners. (optional)
78
+ */
79
+ constructor(object: Camera, domElement?: HTMLElement);
80
+
81
+ /**
82
+ * Should be called if the application window is resized.
83
+ */
24
84
  handleResize(): void;
25
85
 
26
- lookAt(x: Vector3): this;
27
- lookAt(x: number, y: number, z: number): this;
86
+ /**
87
+ * Ensures the controls orient the camera towards the defined target position.
88
+ * @param vector A vector representing the target position.
89
+ */
90
+ lookAt(vector: Vector3): this;
28
91
 
29
- update(delta: number): this;
30
- dispose(): void;
92
+ /**
93
+ * Ensures the controls orient the camera towards the defined target position.
94
+ * @param x The x component of the world space position.
95
+ * @param y The y component of the world space position.
96
+ * @param z The z component of the world space position.
97
+ */
98
+ lookAt(x: number, y: number, z: number): this;
31
99
  }
100
+
101
+ export { FirstPersonControls };
@@ -1,20 +1,44 @@
1
- import { Camera, EventDispatcher } from "three";
1
+ import { Camera, Controls } from "three";
2
2
 
3
3
  export interface FlyControlsEventMap {
4
+ /**
5
+ * Fires when the camera has been transformed by the controls.
6
+ */
4
7
  change: {};
5
8
  }
6
9
 
7
- export class FlyControls extends EventDispatcher<FlyControlsEventMap> {
8
- constructor(object: Camera, domElement?: HTMLElement);
9
-
10
- autoForward: boolean;
11
- domElement: HTMLElement | Document;
12
- dragToLook: boolean;
13
- enabled: boolean;
10
+ /**
11
+ * {@link FlyControls} enables a navigation similar to fly modes in DCC tools like Blender. You can arbitrarily
12
+ * transform the camera in 3D space without any limitations (e.g. focus on a specific target).
13
+ */
14
+ declare class FlyControls extends Controls<FlyControlsEventMap> {
15
+ /**
16
+ * The movement speed. Default is `1`.
17
+ */
14
18
  movementSpeed: number;
15
- object: Camera;
19
+
20
+ /**
21
+ * The rotation speed. Default is `0.005`.
22
+ */
16
23
  rollSpeed: number;
17
24
 
18
- dispose(): void;
19
- update(delta: number): void;
25
+ /**
26
+ * If set to `true`, you can only look around by performing a drag interaction. Default is `false`.
27
+ */
28
+ dragToLook: boolean;
29
+
30
+ /**
31
+ * If set to `true`, the camera automatically moves forward (and does not stop) when initially translated. Default
32
+ * is `false`.
33
+ */
34
+ autoForward: boolean;
35
+
36
+ /**
37
+ * Creates a new instance of {@link FlyControls}.
38
+ * @param object The camera to be controlled.
39
+ * @param domElement The HTML element used for event listeners. (optional)
40
+ */
41
+ constructor(object: Camera, domElement?: HTMLElement | null);
20
42
  }
43
+
44
+ export { FlyControls };