@types/three 0.157.1 → 0.157.2
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 +1 -1
- three/examples/jsm/animation/CCDIKSolver.d.ts +30 -0
- three/examples/jsm/animation/MMDAnimationHelper.d.ts +105 -0
- three/examples/jsm/animation/MMDPhysics.d.ts +124 -0
- three/examples/jsm/cameras/CinematicCamera.d.ts +41 -0
- three/examples/jsm/capabilities/WebGL.d.ts +9 -0
- three/examples/jsm/controls/FirstPersonControls.d.ts +31 -0
- three/examples/jsm/controls/OrbitControls.d.ts +286 -0
- three/examples/jsm/controls/TrackballControls.d.ts +58 -0
- three/examples/jsm/effects/OutlineEffect.d.ts +36 -0
- three/examples/jsm/environments/RoomEnvironment.d.ts +6 -0
- three/examples/jsm/exporters/PLYExporter.d.ts +30 -0
- three/examples/jsm/exporters/STLExporter.d.ts +21 -0
- three/examples/jsm/geometries/TextGeometry.d.ts +115 -0
- three/examples/jsm/helpers/RectAreaLightHelper.d.ts +10 -0
- three/examples/jsm/helpers/ViewHelper.d.ts +15 -0
- three/examples/jsm/libs/fflate.module.d.ts +1 -0
- three/examples/jsm/libs/lil-gui.module.min.d.ts +609 -0
- three/examples/jsm/libs/tween.module.d.ts +219 -0
- three/examples/jsm/lights/RectAreaLightUniformsLib.d.ts +3 -0
- three/examples/jsm/lines/Line2.d.ts +11 -0
- three/examples/jsm/lines/LineGeometry.d.ts +10 -0
- three/examples/jsm/lines/LineMaterial.d.ts +31 -0
- three/examples/jsm/lines/LineSegments2.d.ts +14 -0
- three/examples/jsm/lines/LineSegmentsGeometry.d.ts +23 -0
- three/examples/jsm/loaders/DDSLoader.d.ts +16 -0
- three/examples/jsm/loaders/DRACOLoader.d.ts +19 -0
- three/examples/jsm/loaders/FontLoader.d.ts +27 -0
- three/examples/jsm/loaders/GLTFLoader.d.ts +147 -0
- three/examples/jsm/loaders/HDRCubeTextureLoader.d.ts +18 -0
- three/examples/jsm/loaders/KTX2Loader.d.ts +16 -0
- three/examples/jsm/loaders/LDrawLoader.d.ts +19 -0
- three/examples/jsm/loaders/MMDLoader.d.ts +56 -0
- three/examples/jsm/loaders/MTLLoader.d.ts +104 -0
- three/examples/jsm/loaders/OBJLoader.d.ts +10 -0
- three/examples/jsm/loaders/PCDLoader.d.ts +8 -0
- three/examples/jsm/loaders/RGBELoader.d.ts +19 -0
- three/examples/jsm/loaders/RGBMLoader.d.ts +32 -0
- three/examples/jsm/loaders/SVGLoader.d.ts +68 -0
- three/examples/jsm/loaders/TGALoader.d.ts +7 -0
- three/examples/jsm/loaders/TTFLoader.d.ts +8 -0
- three/examples/jsm/loaders/USDZLoader.d.ts +11 -0
- three/examples/jsm/materials/MeshGouraudMaterial.d.ts +17 -0
- three/examples/jsm/modifiers/TessellateModifier.d.ts +9 -0
- three/examples/jsm/nodes/Nodes.d.ts +149 -0
- three/examples/jsm/nodes/accessors/BitangentNode.d.ts +18 -0
- three/examples/jsm/nodes/accessors/BufferNode.d.ts +11 -0
- three/examples/jsm/nodes/accessors/CameraNode.d.ts +12 -0
- three/examples/jsm/nodes/accessors/CubeTextureNode.d.ts +13 -0
- three/examples/jsm/nodes/accessors/InstanceNode.d.ts +9 -0
- three/examples/jsm/nodes/accessors/MaterialNode.d.ts +23 -0
- three/examples/jsm/nodes/accessors/MaterialReferenceNode.d.ts +6 -0
- three/examples/jsm/nodes/accessors/ModelNode.d.ts +9 -0
- three/examples/jsm/nodes/accessors/ModelViewProjectionNode.d.ts +6 -0
- three/examples/jsm/nodes/accessors/NormalNode.d.ts +12 -0
- three/examples/jsm/nodes/accessors/Object3DNode.d.ts +22 -0
- three/examples/jsm/nodes/accessors/PointUVNode.d.ts +7 -0
- three/examples/jsm/nodes/accessors/PositionNode.d.ts +21 -0
- three/examples/jsm/nodes/accessors/ReferenceNode.d.ts +13 -0
- three/examples/jsm/nodes/accessors/ReflectVectorNode.d.ts +8 -0
- three/examples/jsm/nodes/accessors/SkinningNode.d.ts +13 -0
- three/examples/jsm/nodes/accessors/StorageBufferNode.d.ts +6 -0
- three/examples/jsm/nodes/accessors/TangentNode.d.ts +18 -0
- three/examples/jsm/nodes/accessors/TextureNode.d.ts +14 -0
- three/examples/jsm/nodes/accessors/UVNode.d.ts +8 -0
- three/examples/jsm/nodes/accessors/UserDataNode.d.ts +7 -0
- three/examples/jsm/nodes/code/CodeNode.d.ts +15 -0
- three/examples/jsm/nodes/code/ExpressionNode.d.ts +7 -0
- three/examples/jsm/nodes/code/FunctionCallNode.d.ts +13 -0
- three/examples/jsm/nodes/code/FunctionNode.d.ts +17 -0
- three/examples/jsm/nodes/core/ArrayUniformNode.d.ts +8 -0
- three/examples/jsm/nodes/core/AttributeNode.d.ts +9 -0
- three/examples/jsm/nodes/core/BypassNode.d.ts +9 -0
- three/examples/jsm/nodes/core/CacheNode.d.ts +10 -0
- three/examples/jsm/nodes/core/ConstNode.d.ts +10 -0
- three/examples/jsm/nodes/core/ContextNode.d.ts +10 -0
- three/examples/jsm/nodes/core/InputNode.d.ts +16 -0
- three/examples/jsm/nodes/core/Node.d.ts +31 -0
- three/examples/jsm/nodes/core/NodeAttribute.d.ts +6 -0
- three/examples/jsm/nodes/core/NodeBuilder.d.ts +138 -0
- three/examples/jsm/nodes/core/NodeCache.d.ts +9 -0
- three/examples/jsm/nodes/core/NodeCode.d.ts +4 -0
- three/examples/jsm/nodes/core/NodeFrame.d.ts +19 -0
- three/examples/jsm/nodes/core/NodeFunction.d.ts +13 -0
- three/examples/jsm/nodes/core/NodeFunctionInput.d.ts +7 -0
- three/examples/jsm/nodes/core/NodeKeywords.d.ts +14 -0
- three/examples/jsm/nodes/core/NodeParser.d.ts +5 -0
- three/examples/jsm/nodes/core/NodeUniform.d.ts +13 -0
- three/examples/jsm/nodes/core/NodeUtils.d.ts +13 -0
- three/examples/jsm/nodes/core/NodeVar.d.ts +6 -0
- three/examples/jsm/nodes/core/NodeVarying.d.ts +8 -0
- three/examples/jsm/nodes/core/PropertyNode.d.ts +6 -0
- three/examples/jsm/nodes/core/StackNode.d.ts +11 -0
- three/examples/jsm/nodes/core/TempNode.d.ts +11 -0
- three/examples/jsm/nodes/core/UniformNode.d.ts +10 -0
- three/examples/jsm/nodes/core/VarNode.d.ts +16 -0
- three/examples/jsm/nodes/core/VaryingNode.d.ts +8 -0
- three/examples/jsm/nodes/core/constants.d.ts +78 -0
- three/examples/jsm/nodes/display/BlendModeNode.d.ts +32 -0
- three/examples/jsm/nodes/display/ColorAdjustmentNode.d.ts +20 -0
- three/examples/jsm/nodes/display/ColorSpaceNode.d.ts +18 -0
- three/examples/jsm/nodes/display/FrontFacingNode.d.ts +6 -0
- three/examples/jsm/nodes/display/NormalMapNode.d.ts +12 -0
- three/examples/jsm/nodes/display/PosterizeNode.d.ts +8 -0
- three/examples/jsm/nodes/display/ToneMappingNode.d.ts +14 -0
- three/examples/jsm/nodes/display/ViewportNode.d.ts +23 -0
- three/examples/jsm/nodes/fog/FogExp2Node.d.ts +9 -0
- three/examples/jsm/nodes/fog/FogNode.d.ts +10 -0
- three/examples/jsm/nodes/fog/FogRangeNode.d.ts +10 -0
- three/examples/jsm/nodes/functions/BSDF/BRDF_GGX.d.ts +6 -0
- three/examples/jsm/nodes/functions/BSDF/BRDF_Lambert.d.ts +6 -0
- three/examples/jsm/nodes/functions/BSDF/DFGApprox.d.ts +10 -0
- three/examples/jsm/nodes/functions/BSDF/D_GGX.d.ts +9 -0
- three/examples/jsm/nodes/functions/BSDF/F_Schlick.d.ts +6 -0
- three/examples/jsm/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +6 -0
- three/examples/jsm/nodes/functions/PhysicalLightingModel.d.ts +11 -0
- three/examples/jsm/nodes/functions/material/getGeometryRoughness.d.ts +5 -0
- three/examples/jsm/nodes/functions/material/getRoughness.d.ts +6 -0
- three/examples/jsm/nodes/geometry/RangeNode.d.ts +13 -0
- three/examples/jsm/nodes/gpgpu/ComputeNode.d.ts +11 -0
- three/examples/jsm/nodes/lighting/AONode.d.ts +8 -0
- three/examples/jsm/nodes/lighting/AnalyticLightNode.d.ts +10 -0
- three/examples/jsm/nodes/lighting/EnvironmentNode.d.ts +8 -0
- three/examples/jsm/nodes/lighting/HemisphereLightNode.d.ts +13 -0
- three/examples/jsm/nodes/lighting/LightUtils.d.ts +4 -0
- three/examples/jsm/nodes/lighting/LightingContextNode.d.ts +15 -0
- three/examples/jsm/nodes/lighting/LightingNode.d.ts +5 -0
- three/examples/jsm/nodes/lighting/LightsNode.d.ts +19 -0
- three/examples/jsm/nodes/lighting/PointLightNode.d.ts +10 -0
- three/examples/jsm/nodes/lighting/SpotLightNode.d.ts +15 -0
- three/examples/jsm/nodes/loaders/NodeLoader.d.ts +14 -0
- three/examples/jsm/nodes/loaders/NodeMaterialLoader.d.ts +8 -0
- three/examples/jsm/nodes/loaders/NodeObjectLoader.d.ts +9 -0
- three/examples/jsm/nodes/materials/LineBasicNodeMaterial.d.ts +9 -0
- three/examples/jsm/nodes/materials/Materials.d.ts +17 -0
- three/examples/jsm/nodes/materials/MeshBasicNodeMaterial.d.ts +10 -0
- three/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.d.ts +22 -0
- three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts +18 -0
- three/examples/jsm/nodes/materials/NodeMaterial.d.ts +38 -0
- three/examples/jsm/nodes/materials/PointsNodeMaterial.d.ts +15 -0
- three/examples/jsm/nodes/materials/SpriteNodeMaterial.d.ts +23 -0
- three/examples/jsm/nodes/materialx/MaterialXNodes.d.ts +94 -0
- three/examples/jsm/nodes/materialx/lib/mx_hsv.d.ts +4 -0
- three/examples/jsm/nodes/materialx/lib/mx_noise.d.ts +6 -0
- three/examples/jsm/nodes/math/CondNode.d.ts +9 -0
- three/examples/jsm/nodes/math/MathNode.d.ts +115 -0
- three/examples/jsm/nodes/math/OperatorNode.d.ts +31 -0
- three/examples/jsm/nodes/procedural/CheckerNode.d.ts +6 -0
- three/examples/jsm/nodes/shadernode/ShaderNode.d.ts +156 -0
- three/examples/jsm/nodes/shadernode/ShaderNodeBaseElements.d.ts +310 -0
- three/examples/jsm/nodes/shadernode/ShaderNodeElements.d.ts +166 -0
- three/examples/jsm/nodes/utils/ArrayElementNode.d.ts +9 -0
- three/examples/jsm/nodes/utils/ConvertNode.d.ts +8 -0
- three/examples/jsm/nodes/utils/EquirectUVNode.d.ts +6 -0
- three/examples/jsm/nodes/utils/JoinNode.d.ts +10 -0
- three/examples/jsm/nodes/utils/MatcapUVNode.d.ts +5 -0
- three/examples/jsm/nodes/utils/MaxMipLevelNode.d.ts +11 -0
- three/examples/jsm/nodes/utils/OscNode.d.ts +19 -0
- three/examples/jsm/nodes/utils/RemapNode.d.ts +13 -0
- three/examples/jsm/nodes/utils/RotateUVNode.d.ts +10 -0
- three/examples/jsm/nodes/utils/SpecularMIPLevelNode.d.ts +8 -0
- three/examples/jsm/nodes/utils/SplitNode.d.ts +16 -0
- three/examples/jsm/nodes/utils/SpriteSheetUVNode.d.ts +9 -0
- three/examples/jsm/nodes/utils/TimerNode.d.ts +19 -0
- three/examples/jsm/nodes/utils/TriplanarTexturesNode.d.ts +22 -0
- three/examples/jsm/objects/GroundProjectedSkybox.d.ts +13 -0
- three/examples/jsm/objects/MarchingCubes.d.ts +76 -0
- three/examples/jsm/objects/Reflector.d.ts +29 -0
- three/examples/jsm/postprocessing/EffectComposer.d.ts +31 -0
- three/examples/jsm/postprocessing/Pass.d.ts +31 -0
- three/examples/jsm/postprocessing/SavePass.d.ts +12 -0
- three/examples/jsm/postprocessing/ShaderPass.d.ts +11 -0
- three/examples/jsm/renderers/CSS3DRenderer.d.ts +26 -0
- three/examples/jsm/renderers/webgl/nodes/SlotNode.d.ts +17 -0
- three/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.d.ts +37 -0
- three/examples/jsm/renderers/webgl/nodes/WebGLNodes.d.ts +3 -0
- three/examples/jsm/shaders/ACESFilmicToneMappingShader.d.ts +10 -0
- three/examples/jsm/shaders/BokehShader2.d.ts +42 -0
- three/examples/jsm/shaders/ToonShader.d.ts +54 -0
- three/examples/jsm/shaders/VelocityShader.d.ts +13 -0
- three/examples/jsm/textures/FlakesTexture.d.ts +3 -0
- three/examples/jsm/utils/CameraUtils.d.ts +9 -0
- three/examples/jsm/utils/GeometryUtils.d.ts +25 -0
- three/examples/jsm/utils/LDrawUtils.d.ts +5 -0
- three/examples/jsm/utils/ShadowMapViewer.d.ts +24 -0
- three/examples/jsm/webxr/VRButton.d.ts +5 -0
- three/examples/jsm/webxr/XRButton.d.ts +6 -0
- three/examples/jsm/webxr/XRControllerModelFactory.d.ts +21 -0
- three/examples/jsm/webxr/XRHandMeshModel.d.ts +11 -0
- three/examples/jsm/webxr/XRHandModelFactory.d.ts +25 -0
- three/examples/jsm/webxr/XRHandPrimitiveModel.d.ts +24 -0
- three/package.json +2 -2
- three/src/extras/Earcut.d.ts +15 -0
three/README.md
CHANGED
|
@@ -8,7 +8,7 @@ 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: Wed, 18 Oct 2023
|
|
11
|
+
* Last updated: Wed, 18 Oct 2023 18:04:04 GMT
|
|
12
12
|
* Dependencies: [@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)
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Object3D, SkinnedMesh, Vector3 } from '../../../src/Three.js';
|
|
2
|
+
|
|
3
|
+
// tslint:disable-next-line:interface-name
|
|
4
|
+
export interface IKS {
|
|
5
|
+
effector: number;
|
|
6
|
+
iteration?: number | undefined;
|
|
7
|
+
links: Array<{
|
|
8
|
+
enabled?: boolean | undefined;
|
|
9
|
+
index: number;
|
|
10
|
+
limitation?: Vector3 | undefined;
|
|
11
|
+
rotationMin?: Vector3 | undefined;
|
|
12
|
+
rotationMax?: Vector3 | undefined;
|
|
13
|
+
}>;
|
|
14
|
+
minAngle?: number | undefined;
|
|
15
|
+
maxAngle?: number | undefined;
|
|
16
|
+
target: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export class CCDIKSolver {
|
|
20
|
+
constructor(mesh: SkinnedMesh, iks: IKS[]);
|
|
21
|
+
|
|
22
|
+
update(): this;
|
|
23
|
+
updateOne(iks: IKS): this;
|
|
24
|
+
createHelper(): CCDIKHelper;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export class CCDIKHelper extends Object3D {
|
|
28
|
+
constructor(mesh: SkinnedMesh, iks?: IKS[], sphereSize?: number);
|
|
29
|
+
dispose(): void;
|
|
30
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AnimationClip,
|
|
3
|
+
Audio,
|
|
4
|
+
Camera,
|
|
5
|
+
Mesh,
|
|
6
|
+
Object3D,
|
|
7
|
+
Quaternion,
|
|
8
|
+
SkinnedMesh,
|
|
9
|
+
Bone,
|
|
10
|
+
AnimationMixer,
|
|
11
|
+
} from '../../../src/Three.js';
|
|
12
|
+
|
|
13
|
+
import { CCDIKSolver } from './CCDIKSolver.js';
|
|
14
|
+
import { MMDPhysics } from './MMDPhysics.js';
|
|
15
|
+
|
|
16
|
+
export interface MMDAnimationHelperParameter {
|
|
17
|
+
sync?: boolean | undefined;
|
|
18
|
+
afterglow?: number | undefined;
|
|
19
|
+
resetPhysicsOnLoop?: boolean | undefined;
|
|
20
|
+
pmxAnimation?: boolean | undefined;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface MMDAnimationHelperAddParameter {
|
|
24
|
+
animation?: AnimationClip | AnimationClip[] | undefined;
|
|
25
|
+
physics?: boolean | undefined;
|
|
26
|
+
warmup?: number | undefined;
|
|
27
|
+
unitStep?: number | undefined;
|
|
28
|
+
maxStepNum?: number | undefined;
|
|
29
|
+
gravity?: number | undefined;
|
|
30
|
+
delayTime?: number | undefined;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface MMDAnimationHelperPoseParameter {
|
|
34
|
+
resetPose?: boolean | undefined;
|
|
35
|
+
ik?: boolean | undefined;
|
|
36
|
+
grant?: boolean | undefined;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface MMDAnimationHelperMixer {
|
|
40
|
+
looped: boolean;
|
|
41
|
+
mixer?: AnimationMixer | undefined;
|
|
42
|
+
ikSolver: CCDIKSolver;
|
|
43
|
+
grantSolver: GrantSolver;
|
|
44
|
+
physics?: MMDPhysics | undefined;
|
|
45
|
+
duration?: number | undefined;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export class MMDAnimationHelper {
|
|
49
|
+
constructor(params?: MMDAnimationHelperParameter);
|
|
50
|
+
meshes: SkinnedMesh[];
|
|
51
|
+
camera: Camera | null;
|
|
52
|
+
cameraTarget: Object3D;
|
|
53
|
+
audio: Audio;
|
|
54
|
+
audioManager: AudioManager;
|
|
55
|
+
configuration: {
|
|
56
|
+
sync: boolean;
|
|
57
|
+
afterglow: number;
|
|
58
|
+
resetPhysicsOnLoop: boolean;
|
|
59
|
+
pmxAnimation: boolean;
|
|
60
|
+
};
|
|
61
|
+
enabled: {
|
|
62
|
+
animation: boolean;
|
|
63
|
+
ik: boolean;
|
|
64
|
+
grant: boolean;
|
|
65
|
+
physics: boolean;
|
|
66
|
+
cameraAnimation: boolean;
|
|
67
|
+
};
|
|
68
|
+
objects: WeakMap<SkinnedMesh | Camera | AudioManager, MMDAnimationHelperMixer>;
|
|
69
|
+
onBeforePhysics: (mesh: SkinnedMesh) => void;
|
|
70
|
+
sharedPhysics: boolean;
|
|
71
|
+
masterPhysics: null;
|
|
72
|
+
|
|
73
|
+
add(object: SkinnedMesh | Camera | Audio, params?: MMDAnimationHelperAddParameter): this;
|
|
74
|
+
remove(object: SkinnedMesh | Camera | Audio): this;
|
|
75
|
+
update(delta: number): this;
|
|
76
|
+
pose(mesh: SkinnedMesh, vpd: object, params?: MMDAnimationHelperPoseParameter): this;
|
|
77
|
+
enable(key: string, enabled: boolean): this;
|
|
78
|
+
createGrantSolver(mesh: SkinnedMesh): GrantSolver;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface AudioManagerParameter {
|
|
82
|
+
delayTime?: number | undefined;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export class AudioManager {
|
|
86
|
+
constructor(audio: Audio, params?: AudioManagerParameter);
|
|
87
|
+
audio: Audio;
|
|
88
|
+
elapsedTime: number;
|
|
89
|
+
currentTime: number;
|
|
90
|
+
delayTime: number;
|
|
91
|
+
audioDuration: number;
|
|
92
|
+
duration: number;
|
|
93
|
+
|
|
94
|
+
control(delta: number): this;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export class GrantSolver {
|
|
98
|
+
constructor(mesh: SkinnedMesh, grants: object[]);
|
|
99
|
+
mesh: SkinnedMesh;
|
|
100
|
+
grants: object[];
|
|
101
|
+
|
|
102
|
+
update(): this;
|
|
103
|
+
updateOne(gran: object[]): this;
|
|
104
|
+
addGrantRotation(bone: Bone, q: Quaternion, ratio: number): this;
|
|
105
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { Bone, Euler, Matrix4, Object3D, Quaternion, SkinnedMesh, Vector3 } from '../../../src/Three.js';
|
|
2
|
+
|
|
3
|
+
export interface MMDPhysicsParameter {
|
|
4
|
+
unitStep?: number | undefined;
|
|
5
|
+
maxStepNum?: number | undefined;
|
|
6
|
+
gravity?: Vector3 | undefined;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export class MMDPhysics {
|
|
10
|
+
constructor(
|
|
11
|
+
mesh: SkinnedMesh,
|
|
12
|
+
rigidBodyParams: object[],
|
|
13
|
+
constraintParams?: object[],
|
|
14
|
+
params?: MMDPhysicsParameter,
|
|
15
|
+
);
|
|
16
|
+
manager: ResourceManager;
|
|
17
|
+
mesh: SkinnedMesh;
|
|
18
|
+
unitStep: number;
|
|
19
|
+
maxStepNum: number;
|
|
20
|
+
gravity: Vector3;
|
|
21
|
+
world: null;
|
|
22
|
+
bodies: RigidBody[];
|
|
23
|
+
constraints: Constraint[];
|
|
24
|
+
|
|
25
|
+
update(delta: number): this;
|
|
26
|
+
reset(): this;
|
|
27
|
+
warmup(cycles: number): this;
|
|
28
|
+
setGravity(gravity: Vector3): this;
|
|
29
|
+
createHelper(): MMDPhysicsHelper;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export class ResourceManager {
|
|
33
|
+
constructor();
|
|
34
|
+
threeVector3s: Vector3[];
|
|
35
|
+
threeMatrix4s: Matrix4[];
|
|
36
|
+
threeQuaternions: Quaternion[];
|
|
37
|
+
threeEulers: Euler[];
|
|
38
|
+
transforms: object[];
|
|
39
|
+
quaternions: object[];
|
|
40
|
+
vector3s: object[];
|
|
41
|
+
|
|
42
|
+
allocThreeVector3(): void;
|
|
43
|
+
freeThreeVector3(v: Vector3): void;
|
|
44
|
+
allocThreeMatrix4(): void;
|
|
45
|
+
freeThreeMatrix4(m: Matrix4): void;
|
|
46
|
+
allocThreeQuaternion(): void;
|
|
47
|
+
freeThreeQuaternion(q: Quaternion): void;
|
|
48
|
+
allocThreeEuler(): void;
|
|
49
|
+
freeThreeEuler(e: Euler): void;
|
|
50
|
+
allocTransform(): void;
|
|
51
|
+
freeTransform(t: object): void;
|
|
52
|
+
allocQuaternion(): void;
|
|
53
|
+
freeQuaternion(q: object): void;
|
|
54
|
+
allocVector3(): void;
|
|
55
|
+
freeVector3(v: object): void;
|
|
56
|
+
setIdentity(): void;
|
|
57
|
+
getBasis(t: object): object;
|
|
58
|
+
getBasisAsMatrix3(t: object): object;
|
|
59
|
+
getOrigin(t: object): object;
|
|
60
|
+
setOrigin(t: object, v: object): void;
|
|
61
|
+
copyOrigin(t1: object, t2: object): void;
|
|
62
|
+
setBasis(t: object, q: object): void;
|
|
63
|
+
setBasisFromMatrix3(t: object, m: object): void;
|
|
64
|
+
setOriginFromArray3(t: object, a: number[]): void;
|
|
65
|
+
setOriginFromThreeVector3(t: object, v: Vector3): void;
|
|
66
|
+
setBasisFromArray3(t: object, a: number[]): void;
|
|
67
|
+
setBasisFromThreeQuaternion(t: object, a: Quaternion): void;
|
|
68
|
+
multiplyTransforms(t1: object, t2: object): object;
|
|
69
|
+
inverseTransform(t: object): object;
|
|
70
|
+
multiplyMatrices3(m1: object, m2: object): object;
|
|
71
|
+
addVector3(v1: object, v2: object): object;
|
|
72
|
+
dotVectors3(v1: object, v2: object): number;
|
|
73
|
+
rowOfMatrix3(m: object, i: number): object;
|
|
74
|
+
columnOfMatrix3(m: object, i: number): object;
|
|
75
|
+
negativeVector3(v: object): object;
|
|
76
|
+
multiplyMatrix3ByVector3(m: object, v: object): object;
|
|
77
|
+
transposeMatrix3(m: object): object;
|
|
78
|
+
quaternionToMatrix3(q: object): object;
|
|
79
|
+
matrix3ToQuaternion(m: object): object;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export class RigidBody {
|
|
83
|
+
constructor(mesh: SkinnedMesh, world: object, params: object, manager: ResourceManager);
|
|
84
|
+
mesh: SkinnedMesh;
|
|
85
|
+
world: object;
|
|
86
|
+
params: object;
|
|
87
|
+
manager: ResourceManager;
|
|
88
|
+
|
|
89
|
+
body: object;
|
|
90
|
+
bone: Bone;
|
|
91
|
+
boneOffsetForm: object;
|
|
92
|
+
boneOffsetFormInverse: object;
|
|
93
|
+
|
|
94
|
+
reset(): this;
|
|
95
|
+
updateFromBone(): this;
|
|
96
|
+
updateBone(): this;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export class Constraint {
|
|
100
|
+
constructor(
|
|
101
|
+
mesh: SkinnedMesh,
|
|
102
|
+
world: object,
|
|
103
|
+
bodyA: RigidBody,
|
|
104
|
+
bodyB: RigidBody,
|
|
105
|
+
params: object,
|
|
106
|
+
manager: ResourceManager,
|
|
107
|
+
);
|
|
108
|
+
|
|
109
|
+
mesh: SkinnedMesh;
|
|
110
|
+
world: object;
|
|
111
|
+
bodyA: RigidBody;
|
|
112
|
+
bodyB: RigidBody;
|
|
113
|
+
params: object;
|
|
114
|
+
manager: ResourceManager;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export class MMDPhysicsHelper extends Object3D {
|
|
118
|
+
mesh: THREE.SkinnedMesh;
|
|
119
|
+
physics: MMDPhysics;
|
|
120
|
+
materials: [THREE.MeshBasicMaterial, THREE.MeshBasicMaterial, THREE.MeshBasicMaterial];
|
|
121
|
+
|
|
122
|
+
constructor(mesh: THREE.SkinnedMesh, physics: MMDPhysics);
|
|
123
|
+
dispose(): void;
|
|
124
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PerspectiveCamera,
|
|
3
|
+
ShaderMaterial,
|
|
4
|
+
Scene,
|
|
5
|
+
WebGLRenderer,
|
|
6
|
+
OrthographicCamera,
|
|
7
|
+
WebGLRenderTarget,
|
|
8
|
+
} from '../../../src/Three.js';
|
|
9
|
+
|
|
10
|
+
import { BokehShaderUniforms } from './../shaders/BokehShader2.js';
|
|
11
|
+
|
|
12
|
+
export class CinematicCamera extends PerspectiveCamera {
|
|
13
|
+
constructor(fov: number, aspect: number, near: number, far: number);
|
|
14
|
+
|
|
15
|
+
postprocessing: {
|
|
16
|
+
enabled: boolean;
|
|
17
|
+
scene: Scene;
|
|
18
|
+
camera: OrthographicCamera;
|
|
19
|
+
rtTextureDepth: WebGLRenderTarget;
|
|
20
|
+
rtTextureColor: WebGLRenderTarget;
|
|
21
|
+
bokeh_uniforms: BokehShaderUniforms;
|
|
22
|
+
};
|
|
23
|
+
shaderSettings: {
|
|
24
|
+
rings: number;
|
|
25
|
+
samples: number;
|
|
26
|
+
};
|
|
27
|
+
materialDepth: ShaderMaterial;
|
|
28
|
+
coc: number;
|
|
29
|
+
aperture: number;
|
|
30
|
+
fNumber: number;
|
|
31
|
+
hyperFocal: number;
|
|
32
|
+
filmGauge: number;
|
|
33
|
+
|
|
34
|
+
linearize(depth: number): number;
|
|
35
|
+
smoothstep(near: number, far: number, depth: number): number;
|
|
36
|
+
saturate(x: number): number;
|
|
37
|
+
focusAt(focusDistance: number): void;
|
|
38
|
+
initPostProcessing(): void;
|
|
39
|
+
renderCinematic(scene: Scene, renderer: WebGLRenderer): void;
|
|
40
|
+
setLens(focalLength: number, frameHeight?: number, fNumber?: number, coc?: number): void;
|
|
41
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// tslint:disable-next-line:no-unnecessary-class
|
|
2
|
+
export default class WebGL {
|
|
3
|
+
static isWebGLAvailable(): boolean;
|
|
4
|
+
static isWebGL2Available(): boolean;
|
|
5
|
+
static isColorSpaceAvailable(colorSpace: PredefinedColorSpace): boolean;
|
|
6
|
+
static getWebGLErrorMessage(): HTMLElement;
|
|
7
|
+
static getWebGL2ErrorMessage(): HTMLElement;
|
|
8
|
+
static getErrorMessage(version: number): HTMLElement;
|
|
9
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Camera, Vector3 } from '../../../src/Three.js';
|
|
2
|
+
|
|
3
|
+
export class FirstPersonControls {
|
|
4
|
+
constructor(object: Camera, domElement?: HTMLElement);
|
|
5
|
+
|
|
6
|
+
object: Camera;
|
|
7
|
+
domElement: HTMLElement | Document;
|
|
8
|
+
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
movementSpeed: number;
|
|
11
|
+
lookSpeed: number;
|
|
12
|
+
lookVertical: boolean;
|
|
13
|
+
autoForward: boolean;
|
|
14
|
+
activeLook: boolean;
|
|
15
|
+
heightSpeed: boolean;
|
|
16
|
+
heightCoef: number;
|
|
17
|
+
heightMin: number;
|
|
18
|
+
heightMax: number;
|
|
19
|
+
constrainVertical: boolean;
|
|
20
|
+
verticalMin: number;
|
|
21
|
+
verticalMax: number;
|
|
22
|
+
mouseDragOn: boolean;
|
|
23
|
+
|
|
24
|
+
handleResize(): void;
|
|
25
|
+
|
|
26
|
+
lookAt(x: Vector3): this;
|
|
27
|
+
lookAt(x: number, y: number, z: number): this;
|
|
28
|
+
|
|
29
|
+
update(delta: number): this;
|
|
30
|
+
dispose(): void;
|
|
31
|
+
}
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
import { Camera, EventDispatcher, MOUSE, TOUCH, Vector3 } from '../../../src/Three.js';
|
|
2
|
+
|
|
3
|
+
export interface OrbitControlsEventMap {
|
|
4
|
+
change: {};
|
|
5
|
+
start: {};
|
|
6
|
+
end: {};
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Orbit controls allow the camera to orbit around a target.
|
|
11
|
+
* @param object - The camera to be controlled. The camera must not
|
|
12
|
+
* be a child of another object, unless that object is the scene itself.
|
|
13
|
+
* @param domElement - The HTML element used for
|
|
14
|
+
* event listeners.
|
|
15
|
+
*/
|
|
16
|
+
export class OrbitControls extends EventDispatcher<OrbitControlsEventMap> {
|
|
17
|
+
constructor(object: Camera, domElement?: HTMLElement);
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The camera being controlled.
|
|
21
|
+
*/
|
|
22
|
+
object: Camera;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* The HTMLElement used to listen for mouse / touch events.
|
|
26
|
+
* This must be passed in the constructor;
|
|
27
|
+
* changing it here will not set up new event listeners.
|
|
28
|
+
*/
|
|
29
|
+
domElement: HTMLElement | Document;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* When set to `false`, the controls will not respond to user input.
|
|
33
|
+
* @default true
|
|
34
|
+
*/
|
|
35
|
+
enabled: boolean;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The focus point of the controls, the .object orbits around this.
|
|
39
|
+
* It can be updated manually at any point to change the focus
|
|
40
|
+
* of the controls.
|
|
41
|
+
*/
|
|
42
|
+
target: Vector3;
|
|
43
|
+
|
|
44
|
+
/** @deprecated */
|
|
45
|
+
center: Vector3;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* How far you can dolly in ( PerspectiveCamera only ).
|
|
49
|
+
* @default 0
|
|
50
|
+
*/
|
|
51
|
+
minDistance: number;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* How far you can dolly out ( PerspectiveCamera only ).
|
|
55
|
+
* @default Infinity
|
|
56
|
+
*/
|
|
57
|
+
maxDistance: number;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* How far you can zoom in ( OrthographicCamera only ).
|
|
61
|
+
* @default 0
|
|
62
|
+
*/
|
|
63
|
+
minZoom: number;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* How far you can zoom out ( OrthographicCamera only ).
|
|
67
|
+
* @default Infinity
|
|
68
|
+
*/
|
|
69
|
+
maxZoom: number;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* How far you can orbit vertically, lower limit.
|
|
73
|
+
* Range is 0 to Math.PI radians.
|
|
74
|
+
* @default 0
|
|
75
|
+
*/
|
|
76
|
+
minPolarAngle: number;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* How far you can orbit vertically, upper limit.
|
|
80
|
+
* Range is 0 to Math.PI radians.
|
|
81
|
+
* @default Math.PI.
|
|
82
|
+
*/
|
|
83
|
+
maxPolarAngle: number;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* How far you can orbit horizontally, lower limit.
|
|
87
|
+
* If set, the interval [ min, max ]
|
|
88
|
+
* must be a sub-interval of [ - 2 PI, 2 PI ],
|
|
89
|
+
* with ( max - min < 2 PI ).
|
|
90
|
+
* @default Infinity
|
|
91
|
+
*/
|
|
92
|
+
minAzimuthAngle: number;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* How far you can orbit horizontally, upper limit.
|
|
96
|
+
* If set, the interval [ min, max ] must be a sub-interval
|
|
97
|
+
* of [ - 2 PI, 2 PI ], with ( max - min < 2 PI ).
|
|
98
|
+
* @default Infinity
|
|
99
|
+
*/
|
|
100
|
+
maxAzimuthAngle: number;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Set to true to enable damping (inertia), which can
|
|
104
|
+
* be used to give a sense of weight to the controls.
|
|
105
|
+
* Note that if this is enabled, you must call
|
|
106
|
+
* .update () in your animation loop.
|
|
107
|
+
* @default false
|
|
108
|
+
*/
|
|
109
|
+
enableDamping: boolean;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* The damping inertia used if .enableDamping is set to true.
|
|
113
|
+
* Note that for this to work,
|
|
114
|
+
* you must call .update () in your animation loop.
|
|
115
|
+
* @default 0.05
|
|
116
|
+
*/
|
|
117
|
+
dampingFactor: number;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Enable or disable zooming (dollying) of the camera.
|
|
121
|
+
* @default true
|
|
122
|
+
*/
|
|
123
|
+
enableZoom: boolean;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Speed of zooming / dollying.
|
|
127
|
+
* @default 1
|
|
128
|
+
*/
|
|
129
|
+
zoomSpeed: number;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Setting this property to `true` allows to zoom to the cursor's position.
|
|
133
|
+
* @default false
|
|
134
|
+
*/
|
|
135
|
+
zoomToCursor: boolean;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Enable or disable horizontal and
|
|
139
|
+
* vertical rotation of the camera.
|
|
140
|
+
* Note that it is possible to disable a single axis
|
|
141
|
+
* by setting the min and max of the polar angle or
|
|
142
|
+
* azimuth angle to the same value, which will cause
|
|
143
|
+
* the vertical or horizontal rotation to be fixed at that value.
|
|
144
|
+
* @default true
|
|
145
|
+
*/
|
|
146
|
+
enableRotate: boolean;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Speed of rotation.
|
|
150
|
+
* @default 1
|
|
151
|
+
*/
|
|
152
|
+
rotateSpeed: number;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Enable or disable camera panning.
|
|
156
|
+
* @default true
|
|
157
|
+
*/
|
|
158
|
+
enablePan: boolean;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Speed of panning.
|
|
162
|
+
* @default 1
|
|
163
|
+
*/
|
|
164
|
+
panSpeed: number;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Defines how the camera's position is translated when panning.
|
|
168
|
+
* If true, the camera pans in screen space. Otherwise,
|
|
169
|
+
* the camera pans in the plane orthogonal to the camera's
|
|
170
|
+
* up direction. Default is true for OrbitControls; false for MapControls.
|
|
171
|
+
* @default true
|
|
172
|
+
*/
|
|
173
|
+
screenSpacePanning: boolean;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* How fast to pan the camera when the keyboard is used.
|
|
177
|
+
* Default is 7.0 pixels per keypress.
|
|
178
|
+
* @default 7
|
|
179
|
+
*/
|
|
180
|
+
keyPanSpeed: number;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Set to true to automatically rotate around the target.
|
|
184
|
+
* Note that if this is enabled, you must call .update() in your animation loop. If you want the auto-rotate speed
|
|
185
|
+
* to be independent of the frame rate (the refresh rate of the display), you must pass the time `deltaTime`, in
|
|
186
|
+
* seconds, to .update().
|
|
187
|
+
*/
|
|
188
|
+
autoRotate: boolean;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* How fast to rotate around the target if .autoRotate is true.
|
|
192
|
+
* Default is 2.0, which equates to 30 seconds per orbit at 60fps.
|
|
193
|
+
* Note that if .autoRotate is enabled, you must call
|
|
194
|
+
* .update () in your animation loop.
|
|
195
|
+
* @default 2
|
|
196
|
+
*/
|
|
197
|
+
autoRotateSpeed: number;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* This object contains references to the keycodes for controlling
|
|
201
|
+
* camera panning. Default is the 4 arrow keys.
|
|
202
|
+
*/
|
|
203
|
+
keys: { LEFT: string; UP: string; RIGHT: string; BOTTOM: string };
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* This object contains references to the mouse actions used
|
|
207
|
+
* by the controls.
|
|
208
|
+
*/
|
|
209
|
+
mouseButtons: {
|
|
210
|
+
LEFT?: MOUSE | null | undefined;
|
|
211
|
+
MIDDLE?: MOUSE | null | undefined;
|
|
212
|
+
RIGHT?: MOUSE | null | undefined;
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* This object contains references to the touch actions used by
|
|
217
|
+
* the controls.
|
|
218
|
+
*/
|
|
219
|
+
touches: { ONE?: TOUCH | null | undefined; TWO?: TOUCH | null | undefined };
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Used internally by the .saveState and .reset methods.
|
|
223
|
+
*/
|
|
224
|
+
target0: Vector3;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Used internally by the .saveState and .reset methods.
|
|
228
|
+
*/
|
|
229
|
+
position0: Vector3;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Used internally by the .saveState and .reset methods.
|
|
233
|
+
*/
|
|
234
|
+
zoom0: number;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Update the controls. Must be called after any manual changes to the camera's transform, or in the update loop if
|
|
238
|
+
* .autoRotate or .enableDamping are set. `deltaTime`, in seconds, is optional, and is only required if you want the
|
|
239
|
+
* auto-rotate speed to be independent of the frame rate (the refresh rate of the display).
|
|
240
|
+
*/
|
|
241
|
+
update(deltaTime?: number): boolean;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Adds key event listeners to the given DOM element. `window`
|
|
245
|
+
* is a recommended argument for using this method.
|
|
246
|
+
* @param domElement
|
|
247
|
+
*/
|
|
248
|
+
listenToKeyEvents(domElement: HTMLElement | Window): void;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Removes the key event listener previously defined with {@link listenToKeyEvents}.
|
|
252
|
+
*/
|
|
253
|
+
stopListenToKeyEvents(): void;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Save the current state of the controls. This can later be
|
|
257
|
+
* recovered with .reset.
|
|
258
|
+
*/
|
|
259
|
+
saveState(): void;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Reset the controls to their state from either the last time
|
|
263
|
+
* the .saveState was called, or the initial state.
|
|
264
|
+
*/
|
|
265
|
+
reset(): void;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Remove all the event listeners.
|
|
269
|
+
*/
|
|
270
|
+
dispose(): void;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Get the current vertical rotation, in radians.
|
|
274
|
+
*/
|
|
275
|
+
getPolarAngle(): number;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Get the current horizontal rotation, in radians.
|
|
279
|
+
*/
|
|
280
|
+
getAzimuthalAngle(): number;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Returns the distance from the camera to the target.
|
|
284
|
+
*/
|
|
285
|
+
getDistance(): number;
|
|
286
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Camera, EventDispatcher, MOUSE, Vector3 } from '../../../src/Three.js';
|
|
2
|
+
|
|
3
|
+
export interface TrackballControlsEventMap {
|
|
4
|
+
change: {};
|
|
5
|
+
start: {};
|
|
6
|
+
end: {};
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export class TrackballControls extends EventDispatcher<TrackballControlsEventMap> {
|
|
10
|
+
constructor(object: Camera, domElement?: HTMLElement);
|
|
11
|
+
|
|
12
|
+
object: Camera;
|
|
13
|
+
domElement: HTMLElement;
|
|
14
|
+
|
|
15
|
+
// API
|
|
16
|
+
enabled: boolean;
|
|
17
|
+
screen: { left: number; top: number; width: number; height: number };
|
|
18
|
+
rotateSpeed: number;
|
|
19
|
+
zoomSpeed: number;
|
|
20
|
+
panSpeed: number;
|
|
21
|
+
noRotate: boolean;
|
|
22
|
+
noZoom: boolean;
|
|
23
|
+
noPan: boolean;
|
|
24
|
+
noRoll: boolean;
|
|
25
|
+
staticMoving: boolean;
|
|
26
|
+
dynamicDampingFactor: number;
|
|
27
|
+
minDistance: number;
|
|
28
|
+
maxDistance: number;
|
|
29
|
+
minZoom: number;
|
|
30
|
+
maxZoom: number;
|
|
31
|
+
keys: string[];
|
|
32
|
+
mouseButtons: {
|
|
33
|
+
LEFT?: MOUSE | null | undefined;
|
|
34
|
+
MIDDLE?: MOUSE | null | undefined;
|
|
35
|
+
RIGHT?: MOUSE | null | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
target: Vector3;
|
|
39
|
+
position0: Vector3;
|
|
40
|
+
target0: Vector3;
|
|
41
|
+
up0: Vector3;
|
|
42
|
+
|
|
43
|
+
update(): void;
|
|
44
|
+
|
|
45
|
+
reset(): void;
|
|
46
|
+
|
|
47
|
+
dispose(): void;
|
|
48
|
+
|
|
49
|
+
checkDistances(): void;
|
|
50
|
+
|
|
51
|
+
zoomCamera(): void;
|
|
52
|
+
|
|
53
|
+
panCamera(): void;
|
|
54
|
+
|
|
55
|
+
rotateCamera(): void;
|
|
56
|
+
|
|
57
|
+
handleResize(): void;
|
|
58
|
+
}
|