@types/three 0.167.1 → 0.168.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.
- three/README.md +2 -2
- three/examples/jsm/Addons.d.ts +5 -1
- three/examples/jsm/capabilities/WebGL.d.ts +11 -3
- three/examples/jsm/controls/ArcballControls.d.ts +111 -77
- three/examples/jsm/controls/DragControls.d.ts +56 -27
- three/examples/jsm/controls/FirstPersonControls.d.ts +82 -12
- three/examples/jsm/controls/FlyControls.d.ts +35 -11
- three/examples/jsm/controls/OrbitControls.d.ts +84 -137
- three/examples/jsm/controls/PointerLockControls.d.ts +68 -9
- three/examples/jsm/controls/TrackballControls.d.ts +110 -26
- three/examples/jsm/effects/AnaglyphEffect.d.ts +11 -5
- three/examples/jsm/effects/ParallaxBarrierEffect.d.ts +7 -4
- three/examples/jsm/environments/RoomEnvironment.d.ts +2 -2
- three/examples/jsm/loaders/KTX2Loader.d.ts +4 -0
- three/examples/jsm/objects/SkyMesh.d.ts +17 -0
- three/examples/jsm/objects/Water2.d.ts +2 -2
- three/examples/jsm/objects/Water2Mesh.d.ts +42 -0
- three/examples/jsm/objects/WaterMesh.d.ts +31 -0
- three/examples/jsm/postprocessing/OutlinePass.d.ts +1 -1
- three/examples/jsm/postprocessing/SSAARenderPass.d.ts +11 -2
- three/package.json +4 -3
- three/src/Three.WebGPU.d.ts +13 -0
- three/src/Three.d.ts +38 -1
- three/src/core/EventDispatcher.d.ts +0 -3
- three/src/core/Object3D.d.ts +2 -0
- three/src/extras/Controls.d.ts +54 -0
- three/src/{nodes/loaders → loaders/nodes}/NodeLoader.d.ts +3 -3
- three/src/{nodes/loaders → loaders/nodes}/NodeMaterialLoader.d.ts +1 -1
- three/src/{nodes/loaders → loaders/nodes}/NodeObjectLoader.d.ts +1 -1
- three/src/materials/Material.d.ts +17 -13
- three/src/materials/nodes/InstancedPointsNodeMaterial.d.ts +33 -0
- three/src/{nodes/materials → materials/nodes}/Line2NodeMaterial.d.ts +2 -2
- three/src/{nodes/materials → materials/nodes}/LineBasicNodeMaterial.d.ts +1 -1
- three/src/materials/nodes/LineDashedNodeMaterial.d.ts +29 -0
- three/src/{nodes/materials → materials/nodes}/MeshBasicNodeMaterial.d.ts +1 -1
- three/src/materials/nodes/MeshLambertNodeMaterial.d.ts +49 -0
- three/src/{nodes/materials → materials/nodes}/MeshMatcapNodeMaterial.d.ts +2 -2
- three/src/{nodes/materials → materials/nodes}/MeshNormalNodeMaterial.d.ts +1 -1
- three/src/{nodes/materials → materials/nodes}/MeshPhongNodeMaterial.d.ts +2 -2
- three/src/{nodes/materials → materials/nodes}/MeshPhysicalNodeMaterial.d.ts +5 -2
- three/src/{nodes/materials → materials/nodes}/MeshSSSNodeMaterial.d.ts +2 -2
- three/src/{nodes/materials → materials/nodes}/MeshStandardNodeMaterial.d.ts +3 -3
- three/src/{nodes/materials → materials/nodes}/MeshToonNodeMaterial.d.ts +2 -2
- three/src/materials/nodes/NodeMaterial.d.ts +91 -0
- three/src/{nodes/materials/Materials.d.ts → materials/nodes/NodeMaterials.d.ts} +5 -2
- three/src/{nodes/materials → materials/nodes}/PointsNodeMaterial.d.ts +1 -2
- three/src/{nodes/materials → materials/nodes}/ShadowNodeMaterial.d.ts +1 -1
- three/src/{nodes/materials → materials/nodes}/SpriteNodeMaterial.d.ts +2 -2
- three/src/{nodes/materials → materials/nodes}/VolumeNodeMaterial.d.ts +1 -1
- three/src/nodes/Nodes.d.ts +117 -362
- three/src/nodes/TSL.d.ts +269 -0
- three/src/nodes/accessors/AccessorsUtils.d.ts +1 -1
- three/src/nodes/accessors/BatchNode.d.ts +1 -2
- three/src/nodes/accessors/{BitangentNode.d.ts → Bitangent.d.ts} +1 -1
- three/src/nodes/accessors/BufferAttributeNode.d.ts +4 -4
- three/src/nodes/accessors/BufferNode.d.ts +1 -1
- three/src/nodes/accessors/{CameraNode.d.ts → Camera.d.ts} +1 -1
- three/src/nodes/accessors/ClippingNode.d.ts +1 -1
- three/src/nodes/accessors/CubeTextureNode.d.ts +1 -7
- three/src/nodes/accessors/InstanceNode.d.ts +1 -1
- three/src/nodes/accessors/MaterialNode.d.ts +3 -3
- three/src/nodes/accessors/MaterialProperties.d.ts +4 -0
- three/src/nodes/accessors/MaterialReferenceNode.d.ts +3 -1
- three/src/nodes/accessors/ModelNode.d.ts +1 -1
- three/src/nodes/accessors/ModelViewProjectionNode.d.ts +1 -1
- three/src/nodes/accessors/MorphNode.d.ts +15 -0
- three/src/nodes/accessors/{NormalNode.d.ts → Normal.d.ts} +11 -4
- three/src/nodes/accessors/Object3DNode.d.ts +1 -1
- three/src/nodes/accessors/PointUVNode.d.ts +1 -1
- three/src/nodes/accessors/{PositionNode.d.ts → Position.d.ts} +2 -1
- three/src/nodes/accessors/ReferenceBaseNode.d.ts +27 -0
- three/src/nodes/accessors/ReferenceNode.d.ts +7 -5
- three/src/nodes/accessors/{ReflectVectorNode.d.ts → ReflectVector.d.ts} +1 -1
- three/src/nodes/accessors/RendererReferenceNode.d.ts +1 -1
- three/src/nodes/accessors/SceneNode.d.ts +20 -0
- three/src/nodes/accessors/SkinningNode.d.ts +11 -1
- three/src/nodes/accessors/StorageBufferNode.d.ts +2 -2
- three/src/nodes/accessors/StorageTextureNode.d.ts +1 -1
- three/src/nodes/accessors/{TangentNode.d.ts → Tangent.d.ts} +1 -1
- three/src/nodes/accessors/Texture3DNode.d.ts +1 -1
- three/src/nodes/accessors/TextureBicubic.d.ts +4 -0
- three/src/nodes/accessors/TextureNode.d.ts +26 -7
- three/src/nodes/accessors/TextureSizeNode.d.ts +18 -0
- three/src/nodes/accessors/{UVNode.d.ts → UV.d.ts} +1 -1
- three/src/nodes/accessors/UniformArrayNode.d.ts +30 -0
- three/src/nodes/accessors/UserDataNode.d.ts +1 -1
- three/src/nodes/accessors/VelocityNode.d.ts +15 -0
- three/src/nodes/accessors/VertexColorNode.d.ts +1 -1
- three/src/nodes/code/CodeNode.d.ts +1 -1
- three/src/nodes/code/ExpressionNode.d.ts +1 -1
- three/src/nodes/code/FunctionCallNode.d.ts +2 -2
- three/src/nodes/code/FunctionNode.d.ts +5 -6
- three/src/nodes/code/ScriptableNode.d.ts +22 -0
- three/src/nodes/code/ScriptableValueNode.d.ts +10 -0
- three/src/nodes/core/AssignNode.d.ts +2 -2
- three/src/nodes/core/AttributeNode.d.ts +2 -5
- three/src/nodes/core/BypassNode.d.ts +2 -2
- three/src/nodes/core/CacheNode.d.ts +2 -2
- three/src/nodes/core/ContextNode.d.ts +10 -7
- three/src/nodes/core/IndexNode.d.ts +11 -3
- three/src/nodes/core/MRTNode.d.ts +7 -2
- three/src/nodes/core/Node.d.ts +8 -2
- three/src/nodes/core/OutputStructNode.d.ts +1 -1
- three/src/nodes/core/ParameterNode.d.ts +12 -0
- three/src/nodes/core/PropertyNode.d.ts +1 -1
- three/src/nodes/core/StackNode.d.ts +12 -2
- three/src/nodes/core/UniformNode.d.ts +1 -1
- three/src/nodes/core/VarNode.d.ts +2 -10
- three/src/nodes/core/VaryingNode.d.ts +2 -2
- three/src/nodes/display/AfterImageNode.d.ts +1 -7
- three/src/nodes/display/AnaglyphPassNode.d.ts +14 -0
- three/src/nodes/display/AnamorphicNode.d.ts +1 -7
- three/src/nodes/display/BleachBypass.d.ts +4 -0
- three/src/nodes/display/BlendMode.d.ts +10 -0
- three/src/nodes/display/BloomNode.d.ts +1 -7
- three/src/nodes/display/BumpMapNode.d.ts +16 -0
- three/src/nodes/display/ColorAdjustment.d.ts +27 -0
- three/src/nodes/display/ColorSpaceFunctions.d.ts +6 -0
- three/src/nodes/display/ColorSpaceNode.d.ts +23 -23
- three/src/nodes/display/DenoiseNode.d.ts +3 -9
- three/src/nodes/display/DepthOfFieldNode.d.ts +4 -8
- three/src/nodes/display/DotScreenNode.d.ts +4 -8
- three/src/nodes/display/FXAANode.d.ts +3 -9
- three/src/nodes/display/FilmNode.d.ts +3 -9
- three/src/nodes/display/FrontFacingNode.d.ts +4 -2
- three/src/nodes/display/GTAONode.d.ts +3 -9
- three/src/nodes/display/GaussianBlurNode.d.ts +4 -8
- three/src/nodes/display/Lut3DNode.d.ts +3 -9
- three/src/nodes/display/MotionBlur.d.ts +8 -0
- three/src/nodes/display/NormalMapNode.d.ts +4 -8
- three/src/nodes/display/ParallaxBarrierPassNode.d.ts +14 -0
- three/src/nodes/display/PassNode.d.ts +11 -2
- three/src/nodes/display/PixelationPassNode.d.ts +1 -37
- three/src/nodes/display/PosterizeNode.d.ts +1 -7
- three/src/nodes/display/RGBShiftNode.d.ts +1 -7
- three/src/nodes/display/RenderOutputNode.d.ts +2 -2
- three/src/nodes/display/SSAAPassNode.d.ts +26 -0
- three/src/nodes/display/Sepia.d.ts +4 -0
- three/src/nodes/display/SobelOperatorNode.d.ts +4 -8
- three/src/nodes/display/StereoCompositePassNode.d.ts +17 -0
- three/src/nodes/display/StereoPassNode.d.ts +17 -0
- three/src/nodes/display/ToneMappingFunctions.d.ts +14 -0
- three/src/nodes/display/ToneMappingNode.d.ts +5 -6
- three/src/nodes/display/TransitionNode.d.ts +3 -9
- three/src/nodes/display/ViewportDepthNode.d.ts +6 -2
- three/src/nodes/display/ViewportDepthTextureNode.d.ts +4 -2
- three/src/nodes/display/ViewportNode.d.ts +23 -16
- three/src/nodes/display/ViewportSharedTextureNode.d.ts +4 -8
- three/src/nodes/display/ViewportTextureNode.d.ts +4 -9
- three/src/nodes/fog/FogExp2Node.d.ts +4 -8
- three/src/nodes/fog/FogNode.d.ts +4 -8
- three/src/nodes/fog/FogRangeNode.d.ts +4 -8
- three/src/nodes/functions/BSDF/BRDF_GGX.d.ts +1 -1
- three/src/nodes/functions/BSDF/BRDF_Lambert.d.ts +1 -1
- three/src/nodes/functions/BSDF/BRDF_Sheen.d.ts +1 -1
- three/src/nodes/functions/BSDF/DFGApprox.d.ts +1 -1
- three/src/nodes/functions/BSDF/D_GGX.d.ts +1 -1
- three/src/nodes/functions/BSDF/D_GGX_Anisotropic.d.ts +1 -1
- three/src/nodes/functions/BSDF/F_Schlick.d.ts +1 -1
- three/src/nodes/functions/BSDF/Schlick_to_F0.d.ts +10 -0
- three/src/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +1 -1
- three/src/nodes/functions/BSDF/V_GGX_SmithCorrelated_Anisotropic.d.ts +1 -1
- three/src/nodes/functions/ShadowMaskModel.d.ts +1 -1
- three/src/nodes/functions/material/getGeometryRoughness.d.ts +1 -1
- three/src/nodes/functions/material/getRoughness.d.ts +1 -1
- three/src/nodes/geometry/RangeNode.d.ts +1 -1
- three/src/nodes/gpgpu/ComputeNode.d.ts +2 -2
- three/src/nodes/lighting/AmbientLightNode.d.ts +8 -0
- three/src/nodes/lighting/DirectionalLightNode.d.ts +8 -0
- three/src/nodes/lighting/IESSpotLightNode.d.ts +5 -0
- three/src/nodes/lighting/LightNode.d.ts +18 -0
- three/src/nodes/lighting/LightProbeNode.d.ts +11 -0
- three/src/nodes/lighting/LightUtils.d.ts +3 -3
- three/src/nodes/lighting/LightingContextNode.d.ts +1 -7
- three/src/nodes/lighting/LightsNode.d.ts +9 -13
- three/src/nodes/materialx/MaterialXNodes.d.ts +1 -1
- three/src/nodes/materialx/lib/mx_hsv.d.ts +2 -2
- three/src/nodes/materialx/lib/mx_noise.d.ts +1 -1
- three/src/nodes/materialx/lib/mx_transform_color.d.ts +1 -1
- three/src/nodes/math/ConditionalNode.d.ts +39 -0
- three/src/nodes/math/Hash.d.ts +4 -0
- three/src/nodes/math/MathNode.d.ts +2 -2
- three/src/nodes/math/MathUtils.d.ts +0 -10
- three/src/nodes/math/OperatorNode.d.ts +18 -4
- three/src/nodes/math/TriNoise3D.d.ts +1 -1
- three/src/nodes/parsers/GLSLNodeFunction.d.ts +9 -0
- three/src/nodes/parsers/GLSLNodeParser.d.ts +8 -0
- three/src/nodes/pmrem/PMREMNode.d.ts +4 -2
- three/src/nodes/pmrem/PMREMUtils.d.ts +28 -0
- three/src/nodes/procedural/Checker.d.ts +4 -0
- three/src/nodes/tsl/TSLBase.d.ts +21 -0
- three/src/nodes/{shadernode/ShaderNode.d.ts → tsl/TSLCore.d.ts} +23 -23
- three/src/nodes/utils/CubeMapNode.d.ts +13 -0
- three/src/nodes/utils/Discard.d.ts +11 -0
- three/src/nodes/utils/EquirectUVNode.d.ts +1 -1
- three/src/nodes/utils/FunctionOverloadingNode.d.ts +13 -0
- three/src/nodes/utils/LoopNode.d.ts +22 -0
- three/src/nodes/utils/MatcapUVNode.d.ts +1 -1
- three/src/nodes/utils/MaxMipLevelNode.d.ts +1 -1
- three/src/nodes/utils/OscNode.d.ts +1 -1
- three/src/nodes/utils/Packing.d.ts +5 -0
- three/src/nodes/utils/RTTNode.d.ts +7 -7
- three/src/nodes/utils/ReflectorNode.d.ts +1 -1
- three/src/nodes/utils/RemapNode.d.ts +2 -2
- three/src/nodes/utils/RotateNode.d.ts +1 -7
- three/src/nodes/utils/SetNode.d.ts +11 -0
- three/src/nodes/utils/SplitNode.d.ts +1 -1
- three/src/nodes/utils/SpriteSheetUVNode.d.ts +1 -1
- three/src/nodes/utils/SpriteUtils.d.ts +6 -0
- three/src/nodes/utils/{StoargeArrayElementNode.d.ts → StorageArrayElementNode.d.ts} +1 -7
- three/src/nodes/utils/TimerNode.d.ts +1 -1
- three/src/nodes/utils/TriplanarTexturesNode.d.ts +1 -7
- three/src/nodes/utils/UVUtils.d.ts +14 -0
- three/src/nodes/utils/ViewportUtils.d.ts +4 -0
- three/src/renderers/common/BindGroup.d.ts +8 -1
- three/src/renderers/common/Bindings.d.ts +2 -2
- three/src/renderers/common/ClippingContext.d.ts +1 -0
- three/src/renderers/common/QuadMesh.d.ts +2 -0
- three/src/renderers/common/RenderContext.d.ts +2 -0
- three/src/renderers/common/RenderContexts.d.ts +6 -4
- three/src/renderers/common/RenderObjects.d.ts +1 -1
- three/src/renderers/common/Renderer.d.ts +16 -4
- three/src/renderers/common/SampledTexture.d.ts +7 -1
- three/src/renderers/common/StandardRenderer.d.ts +12 -0
- three/src/renderers/common/Textures.d.ts +1 -0
- three/src/renderers/common/nodes/NodeLibrary.d.ts +56 -0
- three/src/renderers/common/nodes/NodeSampledTexture.d.ts +3 -3
- three/src/renderers/common/nodes/Nodes.d.ts +7 -9
- three/src/renderers/common/nodes/StandardNodeLibrary.d.ts +5 -0
- three/src/renderers/webgl/WebGLProperties.d.ts +5 -4
- three/src/renderers/webgpu/WebGPUBackend.d.ts +6 -2
- three/src/renderers/webgpu/WebGPURenderer.d.ts +3 -3
- three/src/renderers/webgpu/nodes/WGSLNodeBuilder.d.ts +2 -2
- three/src/renderers/webxr/WebXRDepthSensing.d.ts +0 -7
- three/src/renderers/webxr/WebXRManager.d.ts +0 -2
- three/examples/jsm/loaders/LogLuvLoader.d.ts +0 -19
- three/src/nodes/accessors/TextureBicubicNode.d.ts +0 -18
- three/src/nodes/accessors/UniformsNode.d.ts +0 -23
- three/src/nodes/core/NodeKeywords.d.ts +0 -17
- three/src/nodes/display/BlendModeNode.d.ts +0 -47
- three/src/nodes/display/ColorAdjustmentNode.d.ts +0 -47
- three/src/nodes/materials/NodeMaterial.d.ts +0 -124
- three/src/nodes/math/CondNode.d.ts +0 -22
- three/src/nodes/math/HashNode.d.ts +0 -16
- three/src/nodes/procedural/CheckerNode.d.ts +0 -15
- three/src/nodes/utils/DiscardNode.d.ts +0 -17
- three/src/nodes/utils/PackingNode.d.ts +0 -24
- 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: Fri,
|
|
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: Fri, 30 Aug 2024 17:36:33 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).
|
three/examples/jsm/Addons.d.ts
CHANGED
|
@@ -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";
|
|
@@ -170,8 +169,13 @@ export * from "./objects/ReflectorForSSRPass.js";
|
|
|
170
169
|
export * from "./objects/Refractor.js";
|
|
171
170
|
export * from "./objects/ShadowMesh.js";
|
|
172
171
|
export * from "./objects/Sky.js";
|
|
172
|
+
export * from "./objects/SkyMesh.js";
|
|
173
173
|
export * from "./objects/Water.js";
|
|
174
174
|
export { Water as Water2 } from "./objects/Water2.js";
|
|
175
|
+
export type { WaterOptions as Water2Options } from "./objects/Water2.js";
|
|
176
|
+
export { WaterMesh as Water2Mesh } from "./objects/Water2Mesh.js";
|
|
177
|
+
export type { WaterMeshOptions as Water2MeshOptions } from "./objects/Water2Mesh.js";
|
|
178
|
+
export * from "./objects/WaterMesh.js";
|
|
175
179
|
|
|
176
180
|
export * from "./physics/AmmoPhysics.js";
|
|
177
181
|
export * from "./physics/RapierPhysics.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,
|
|
1
|
+
import { Camera, Controls, Raycaster, Scene } from "three";
|
|
2
2
|
|
|
3
|
-
export
|
|
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
|
|
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
|
-
*
|
|
11
|
+
* Fires when the camera has been transformed by the controls.
|
|
30
12
|
*/
|
|
31
|
-
|
|
13
|
+
change: {};
|
|
32
14
|
|
|
33
15
|
/**
|
|
34
|
-
*
|
|
16
|
+
* Fires when an interaction was initiated.
|
|
35
17
|
*/
|
|
36
|
-
|
|
18
|
+
start: {};
|
|
37
19
|
|
|
38
20
|
/**
|
|
39
|
-
*
|
|
21
|
+
* Fires when an interaction has finished.
|
|
40
22
|
*/
|
|
41
|
-
|
|
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
|
-
*
|
|
32
|
+
* The scene rendered by the camera.
|
|
45
33
|
*/
|
|
46
|
-
|
|
34
|
+
scene: Scene | null;
|
|
47
35
|
|
|
48
36
|
/**
|
|
49
|
-
*
|
|
37
|
+
* The size of the gizmo relative to the screen width and height. Default is 0.67.
|
|
50
38
|
*/
|
|
51
|
-
|
|
39
|
+
radiusFactor: number;
|
|
52
40
|
|
|
53
41
|
/**
|
|
54
|
-
*
|
|
42
|
+
* Duration time of focus animation.
|
|
55
43
|
*/
|
|
56
|
-
|
|
44
|
+
focusAnimationTime: number;
|
|
57
45
|
|
|
58
46
|
/**
|
|
59
|
-
*
|
|
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
|
-
*
|
|
53
|
+
* The scaling factor used when performing zoom operation.
|
|
65
54
|
*/
|
|
66
55
|
scaleFactor: number;
|
|
67
56
|
|
|
68
57
|
/**
|
|
69
|
-
*
|
|
58
|
+
* The damping inertia used if [page:.enableAnimations] is set to true.
|
|
70
59
|
*/
|
|
71
60
|
dampingFactor: number;
|
|
72
61
|
|
|
73
62
|
/**
|
|
74
|
-
*
|
|
63
|
+
* Maximum angular velocity allowed on rotation animation start.
|
|
75
64
|
*/
|
|
76
|
-
wMax: number;
|
|
65
|
+
wMax: number;
|
|
77
66
|
|
|
78
67
|
/**
|
|
79
|
-
*
|
|
68
|
+
* Set to true to enable animations for rotation (damping) and focus operation. Default is true.
|
|
80
69
|
*/
|
|
81
|
-
enableAnimations: boolean;
|
|
70
|
+
enableAnimations: boolean;
|
|
82
71
|
|
|
83
72
|
/**
|
|
84
|
-
*
|
|
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;
|
|
75
|
+
enableGrid: boolean;
|
|
87
76
|
|
|
88
77
|
/**
|
|
89
|
-
*
|
|
78
|
+
* Set to true to make zoom become cursor centered.
|
|
90
79
|
*/
|
|
91
|
-
cursorZoom: boolean;
|
|
80
|
+
cursorZoom: boolean;
|
|
92
81
|
|
|
93
82
|
/**
|
|
94
|
-
*
|
|
83
|
+
* Speed of rotation. Default is 1.
|
|
95
84
|
*/
|
|
96
|
-
|
|
85
|
+
rotateSpeed: number;
|
|
97
86
|
|
|
98
87
|
/**
|
|
99
|
-
*
|
|
88
|
+
* Enable or disable camera panning. Default is true.
|
|
100
89
|
*/
|
|
101
|
-
|
|
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
|
-
* @
|
|
103
|
+
* How far you can dolly in ( {@link PerspectiveCamera} only ). Default is 0.
|
|
105
104
|
*/
|
|
106
105
|
minDistance: number;
|
|
107
106
|
|
|
108
107
|
/**
|
|
109
|
-
* @
|
|
108
|
+
* How far you can dolly out ( {@link PerspectiveCamera} only ). Default is Infinity.
|
|
110
109
|
*/
|
|
111
110
|
maxDistance: number;
|
|
112
111
|
|
|
113
112
|
/**
|
|
114
|
-
* @
|
|
113
|
+
* How far you can zoom in ( {@link OrthographicCamera} only ). Default is 0.
|
|
115
114
|
*/
|
|
116
115
|
minZoom: number;
|
|
117
116
|
|
|
118
117
|
/**
|
|
119
|
-
* @
|
|
118
|
+
* How far you can zoom out ( {@link OrthographicCamera} only ). Default is Infinity.
|
|
120
119
|
*/
|
|
121
120
|
maxZoom: number;
|
|
122
121
|
|
|
123
122
|
/**
|
|
124
|
-
* @
|
|
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
|
-
|
|
128
|
+
constructor(camera: Camera, domElement?: HTMLElement | null, scene?: Scene | null);
|
|
127
129
|
|
|
128
130
|
/**
|
|
129
|
-
*
|
|
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
|
-
|
|
137
|
+
setMouseAction(
|
|
138
|
+
operation: ArcballControlsMouseActionOperation,
|
|
139
|
+
mouse: ArcballControlsMouseActionMouse,
|
|
140
|
+
key?: ArcballControlsMouseActionKey | null,
|
|
141
|
+
): boolean;
|
|
132
142
|
|
|
133
143
|
/**
|
|
134
|
-
*
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
160
|
+
/**
|
|
161
|
+
* Set the visible property of gizmos.
|
|
162
|
+
*/
|
|
163
|
+
setGizmosVisible(value: boolean): void;
|
|
147
164
|
|
|
148
|
-
|
|
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
|
-
|
|
153
|
-
|
|
154
|
-
|
|
176
|
+
/**
|
|
177
|
+
* Copy the current state to clipboard (as a readable JSON text).
|
|
178
|
+
*/
|
|
179
|
+
copyState(): void;
|
|
155
180
|
|
|
156
|
-
|
|
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
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
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
|
-
|
|
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,
|
|
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
|
-
|
|
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
|
-
*
|
|
32
|
+
* An array of draggable 3D objects.
|
|
43
33
|
*/
|
|
44
|
-
|
|
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,44 +44,83 @@ 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`.
|
|
65
50
|
*/
|
|
66
51
|
rotateSpeed: number;
|
|
67
52
|
|
|
53
|
+
/**
|
|
54
|
+
* The internal raycaster used for detecting 3D objects.
|
|
55
|
+
*/
|
|
56
|
+
raycaster: Raycaster;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* This object defines what type of actions are assigned to the available mouse buttons.
|
|
60
|
+
*/
|
|
61
|
+
mouseButtons: {
|
|
62
|
+
LEFT?: MOUSE | null | undefined;
|
|
63
|
+
MIDDLE?: MOUSE | null | undefined;
|
|
64
|
+
RIGHT?: MOUSE | null | undefined;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* This object defines what type of actions are assigned to what kind of touch interaction.
|
|
69
|
+
*/
|
|
70
|
+
touches: { ONE?: TOUCH | null | undefined };
|
|
71
|
+
|
|
72
|
+
/**
|
|
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)
|
|
77
|
+
*/
|
|
78
|
+
constructor(objects: Object3D[], camera: Camera, domElement?: HTMLElement | null);
|
|
79
|
+
|
|
68
80
|
/**
|
|
69
81
|
* Adds the event listeners of the controls.
|
|
70
82
|
*/
|
|
71
|
-
|
|
83
|
+
connect(): void;
|
|
72
84
|
|
|
73
85
|
/**
|
|
74
86
|
* Removes the event listeners of the controls.
|
|
75
87
|
*/
|
|
76
|
-
|
|
88
|
+
disconnect(): void;
|
|
77
89
|
|
|
78
90
|
/**
|
|
79
91
|
* Should be called if the controls is no longer required.
|
|
80
92
|
*/
|
|
81
|
-
dispose
|
|
93
|
+
dispose(): void;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Returns the internal {@link Raycaster} instance that is used for intersection tests.
|
|
97
|
+
* @deprecated getRaycaster() has been deprecated. Use controls.raycaster instead.
|
|
98
|
+
*/
|
|
99
|
+
getRaycaster(): Raycaster;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Sets an array of draggable objects by overwriting the existing one.
|
|
103
|
+
* @deprecated setObjects() has been deprecated. Use controls.objects instead.
|
|
104
|
+
*/
|
|
105
|
+
setObjects(objects: readonly Object3D[]): void;
|
|
82
106
|
|
|
83
107
|
/**
|
|
84
108
|
* Returns the array of draggable objects.
|
|
109
|
+
* @deprecated getObjects() has been deprecated. Use controls.objects instead.
|
|
85
110
|
*/
|
|
86
|
-
getObjects
|
|
111
|
+
getObjects(): Object3D[];
|
|
87
112
|
|
|
88
113
|
/**
|
|
89
|
-
*
|
|
114
|
+
* Adds the event listeners of the controls.
|
|
115
|
+
* @deprecated activate() has been renamed to connect().
|
|
90
116
|
*/
|
|
91
|
-
|
|
117
|
+
activate(): void;
|
|
92
118
|
|
|
93
119
|
/**
|
|
94
|
-
*
|
|
120
|
+
* Removes the event listeners of the controls.
|
|
121
|
+
* @deprecated deactivate() has been renamed to disconnect().
|
|
95
122
|
*/
|
|
96
|
-
|
|
123
|
+
deactivate(): void;
|
|
97
124
|
}
|
|
125
|
+
|
|
126
|
+
export { DragControls };
|
|
@@ -1,31 +1,101 @@
|
|
|
1
|
-
import { Camera, Vector3 } from "three";
|
|
1
|
+
import { Camera, Controls, Vector3 } from "three";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
27
|
-
|
|
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
|
-
|
|
30
|
-
|
|
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,
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The rotation speed. Default is `0.005`.
|
|
22
|
+
*/
|
|
16
23
|
rollSpeed: number;
|
|
17
24
|
|
|
18
|
-
|
|
19
|
-
|
|
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 };
|