@types/three 0.157.0 → 0.157.1
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 -3
- three/index.d.ts +0 -6
- three/package.json +20 -20
- three/examples/jsm/animation/CCDIKSolver.d.ts +0 -30
- three/examples/jsm/animation/MMDAnimationHelper.d.ts +0 -105
- three/examples/jsm/animation/MMDPhysics.d.ts +0 -124
- three/examples/jsm/cameras/CinematicCamera.d.ts +0 -41
- three/examples/jsm/capabilities/WebGL.d.ts +0 -9
- three/examples/jsm/controls/FirstPersonControls.d.ts +0 -31
- three/examples/jsm/controls/OrbitControls.d.ts +0 -286
- three/examples/jsm/controls/TrackballControls.d.ts +0 -58
- three/examples/jsm/effects/OutlineEffect.d.ts +0 -36
- three/examples/jsm/environments/RoomEnvironment.d.ts +0 -6
- three/examples/jsm/exporters/PLYExporter.d.ts +0 -30
- three/examples/jsm/exporters/STLExporter.d.ts +0 -21
- three/examples/jsm/geometries/TextGeometry.d.ts +0 -115
- three/examples/jsm/helpers/RectAreaLightHelper.d.ts +0 -10
- three/examples/jsm/helpers/ViewHelper.d.ts +0 -15
- three/examples/jsm/libs/fflate.module.d.ts +0 -1
- three/examples/jsm/libs/lil-gui.module.min.d.ts +0 -609
- three/examples/jsm/libs/tween.module.d.ts +0 -219
- three/examples/jsm/lights/RectAreaLightUniformsLib.d.ts +0 -3
- three/examples/jsm/lines/Line2.d.ts +0 -11
- three/examples/jsm/lines/LineGeometry.d.ts +0 -10
- three/examples/jsm/lines/LineMaterial.d.ts +0 -31
- three/examples/jsm/lines/LineSegments2.d.ts +0 -14
- three/examples/jsm/lines/LineSegmentsGeometry.d.ts +0 -23
- three/examples/jsm/loaders/DDSLoader.d.ts +0 -16
- three/examples/jsm/loaders/DRACOLoader.d.ts +0 -19
- three/examples/jsm/loaders/FontLoader.d.ts +0 -27
- three/examples/jsm/loaders/GLTFLoader.d.ts +0 -147
- three/examples/jsm/loaders/HDRCubeTextureLoader.d.ts +0 -18
- three/examples/jsm/loaders/KTX2Loader.d.ts +0 -16
- three/examples/jsm/loaders/LDrawLoader.d.ts +0 -19
- three/examples/jsm/loaders/MMDLoader.d.ts +0 -56
- three/examples/jsm/loaders/MTLLoader.d.ts +0 -104
- three/examples/jsm/loaders/OBJLoader.d.ts +0 -10
- three/examples/jsm/loaders/PCDLoader.d.ts +0 -8
- three/examples/jsm/loaders/RGBELoader.d.ts +0 -19
- three/examples/jsm/loaders/RGBMLoader.d.ts +0 -32
- three/examples/jsm/loaders/SVGLoader.d.ts +0 -68
- three/examples/jsm/loaders/TGALoader.d.ts +0 -7
- three/examples/jsm/loaders/TTFLoader.d.ts +0 -8
- three/examples/jsm/loaders/USDZLoader.d.ts +0 -11
- three/examples/jsm/materials/MeshGouraudMaterial.d.ts +0 -17
- three/examples/jsm/modifiers/TessellateModifier.d.ts +0 -9
- three/examples/jsm/nodes/Nodes.d.ts +0 -149
- three/examples/jsm/nodes/accessors/BitangentNode.d.ts +0 -18
- three/examples/jsm/nodes/accessors/BufferNode.d.ts +0 -11
- three/examples/jsm/nodes/accessors/CameraNode.d.ts +0 -12
- three/examples/jsm/nodes/accessors/CubeTextureNode.d.ts +0 -13
- three/examples/jsm/nodes/accessors/InstanceNode.d.ts +0 -9
- three/examples/jsm/nodes/accessors/MaterialNode.d.ts +0 -23
- three/examples/jsm/nodes/accessors/MaterialReferenceNode.d.ts +0 -6
- three/examples/jsm/nodes/accessors/ModelNode.d.ts +0 -9
- three/examples/jsm/nodes/accessors/ModelViewProjectionNode.d.ts +0 -6
- three/examples/jsm/nodes/accessors/NormalNode.d.ts +0 -12
- three/examples/jsm/nodes/accessors/Object3DNode.d.ts +0 -22
- three/examples/jsm/nodes/accessors/PointUVNode.d.ts +0 -7
- three/examples/jsm/nodes/accessors/PositionNode.d.ts +0 -21
- three/examples/jsm/nodes/accessors/ReferenceNode.d.ts +0 -13
- three/examples/jsm/nodes/accessors/ReflectVectorNode.d.ts +0 -8
- three/examples/jsm/nodes/accessors/SkinningNode.d.ts +0 -13
- three/examples/jsm/nodes/accessors/StorageBufferNode.d.ts +0 -6
- three/examples/jsm/nodes/accessors/TangentNode.d.ts +0 -18
- three/examples/jsm/nodes/accessors/TextureNode.d.ts +0 -14
- three/examples/jsm/nodes/accessors/UVNode.d.ts +0 -8
- three/examples/jsm/nodes/accessors/UserDataNode.d.ts +0 -7
- three/examples/jsm/nodes/code/CodeNode.d.ts +0 -15
- three/examples/jsm/nodes/code/ExpressionNode.d.ts +0 -7
- three/examples/jsm/nodes/code/FunctionCallNode.d.ts +0 -13
- three/examples/jsm/nodes/code/FunctionNode.d.ts +0 -17
- three/examples/jsm/nodes/core/ArrayUniformNode.d.ts +0 -8
- three/examples/jsm/nodes/core/AttributeNode.d.ts +0 -9
- three/examples/jsm/nodes/core/BypassNode.d.ts +0 -9
- three/examples/jsm/nodes/core/CacheNode.d.ts +0 -10
- three/examples/jsm/nodes/core/ConstNode.d.ts +0 -10
- three/examples/jsm/nodes/core/ContextNode.d.ts +0 -10
- three/examples/jsm/nodes/core/InputNode.d.ts +0 -16
- three/examples/jsm/nodes/core/Node.d.ts +0 -31
- three/examples/jsm/nodes/core/NodeAttribute.d.ts +0 -6
- three/examples/jsm/nodes/core/NodeBuilder.d.ts +0 -138
- three/examples/jsm/nodes/core/NodeCache.d.ts +0 -9
- three/examples/jsm/nodes/core/NodeCode.d.ts +0 -4
- three/examples/jsm/nodes/core/NodeFrame.d.ts +0 -19
- three/examples/jsm/nodes/core/NodeFunction.d.ts +0 -13
- three/examples/jsm/nodes/core/NodeFunctionInput.d.ts +0 -7
- three/examples/jsm/nodes/core/NodeKeywords.d.ts +0 -14
- three/examples/jsm/nodes/core/NodeParser.d.ts +0 -5
- three/examples/jsm/nodes/core/NodeUniform.d.ts +0 -13
- three/examples/jsm/nodes/core/NodeUtils.d.ts +0 -13
- three/examples/jsm/nodes/core/NodeVar.d.ts +0 -6
- three/examples/jsm/nodes/core/NodeVarying.d.ts +0 -8
- three/examples/jsm/nodes/core/PropertyNode.d.ts +0 -6
- three/examples/jsm/nodes/core/StackNode.d.ts +0 -11
- three/examples/jsm/nodes/core/TempNode.d.ts +0 -11
- three/examples/jsm/nodes/core/UniformNode.d.ts +0 -10
- three/examples/jsm/nodes/core/VarNode.d.ts +0 -16
- three/examples/jsm/nodes/core/VaryingNode.d.ts +0 -8
- three/examples/jsm/nodes/core/constants.d.ts +0 -78
- three/examples/jsm/nodes/display/BlendModeNode.d.ts +0 -32
- three/examples/jsm/nodes/display/ColorAdjustmentNode.d.ts +0 -20
- three/examples/jsm/nodes/display/ColorSpaceNode.d.ts +0 -18
- three/examples/jsm/nodes/display/FrontFacingNode.d.ts +0 -6
- three/examples/jsm/nodes/display/NormalMapNode.d.ts +0 -12
- three/examples/jsm/nodes/display/PosterizeNode.d.ts +0 -8
- three/examples/jsm/nodes/display/ToneMappingNode.d.ts +0 -14
- three/examples/jsm/nodes/display/ViewportNode.d.ts +0 -23
- three/examples/jsm/nodes/fog/FogExp2Node.d.ts +0 -9
- three/examples/jsm/nodes/fog/FogNode.d.ts +0 -10
- three/examples/jsm/nodes/fog/FogRangeNode.d.ts +0 -10
- three/examples/jsm/nodes/functions/BSDF/BRDF_GGX.d.ts +0 -6
- three/examples/jsm/nodes/functions/BSDF/BRDF_Lambert.d.ts +0 -6
- three/examples/jsm/nodes/functions/BSDF/DFGApprox.d.ts +0 -10
- three/examples/jsm/nodes/functions/BSDF/D_GGX.d.ts +0 -9
- three/examples/jsm/nodes/functions/BSDF/F_Schlick.d.ts +0 -6
- three/examples/jsm/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +0 -6
- three/examples/jsm/nodes/functions/PhysicalLightingModel.d.ts +0 -11
- three/examples/jsm/nodes/functions/material/getGeometryRoughness.d.ts +0 -5
- three/examples/jsm/nodes/functions/material/getRoughness.d.ts +0 -6
- three/examples/jsm/nodes/geometry/RangeNode.d.ts +0 -13
- three/examples/jsm/nodes/gpgpu/ComputeNode.d.ts +0 -11
- three/examples/jsm/nodes/lighting/AONode.d.ts +0 -8
- three/examples/jsm/nodes/lighting/AnalyticLightNode.d.ts +0 -10
- three/examples/jsm/nodes/lighting/EnvironmentNode.d.ts +0 -8
- three/examples/jsm/nodes/lighting/HemisphereLightNode.d.ts +0 -13
- three/examples/jsm/nodes/lighting/LightUtils.d.ts +0 -4
- three/examples/jsm/nodes/lighting/LightingContextNode.d.ts +0 -15
- three/examples/jsm/nodes/lighting/LightingNode.d.ts +0 -5
- three/examples/jsm/nodes/lighting/LightsNode.d.ts +0 -19
- three/examples/jsm/nodes/lighting/PointLightNode.d.ts +0 -10
- three/examples/jsm/nodes/lighting/SpotLightNode.d.ts +0 -15
- three/examples/jsm/nodes/loaders/NodeLoader.d.ts +0 -14
- three/examples/jsm/nodes/loaders/NodeMaterialLoader.d.ts +0 -8
- three/examples/jsm/nodes/loaders/NodeObjectLoader.d.ts +0 -9
- three/examples/jsm/nodes/materials/LineBasicNodeMaterial.d.ts +0 -9
- three/examples/jsm/nodes/materials/Materials.d.ts +0 -17
- three/examples/jsm/nodes/materials/MeshBasicNodeMaterial.d.ts +0 -10
- three/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.d.ts +0 -22
- three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts +0 -18
- three/examples/jsm/nodes/materials/NodeMaterial.d.ts +0 -38
- three/examples/jsm/nodes/materials/PointsNodeMaterial.d.ts +0 -15
- three/examples/jsm/nodes/materials/SpriteNodeMaterial.d.ts +0 -23
- three/examples/jsm/nodes/materialx/MaterialXNodes.d.ts +0 -94
- three/examples/jsm/nodes/materialx/lib/mx_hsv.d.ts +0 -4
- three/examples/jsm/nodes/materialx/lib/mx_noise.d.ts +0 -6
- three/examples/jsm/nodes/math/CondNode.d.ts +0 -9
- three/examples/jsm/nodes/math/MathNode.d.ts +0 -115
- three/examples/jsm/nodes/math/OperatorNode.d.ts +0 -31
- three/examples/jsm/nodes/procedural/CheckerNode.d.ts +0 -6
- three/examples/jsm/nodes/shadernode/ShaderNode.d.ts +0 -156
- three/examples/jsm/nodes/shadernode/ShaderNodeBaseElements.d.ts +0 -310
- three/examples/jsm/nodes/shadernode/ShaderNodeElements.d.ts +0 -166
- three/examples/jsm/nodes/utils/ArrayElementNode.d.ts +0 -9
- three/examples/jsm/nodes/utils/ConvertNode.d.ts +0 -8
- three/examples/jsm/nodes/utils/EquirectUVNode.d.ts +0 -6
- three/examples/jsm/nodes/utils/JoinNode.d.ts +0 -10
- three/examples/jsm/nodes/utils/MatcapUVNode.d.ts +0 -5
- three/examples/jsm/nodes/utils/MaxMipLevelNode.d.ts +0 -11
- three/examples/jsm/nodes/utils/OscNode.d.ts +0 -19
- three/examples/jsm/nodes/utils/RemapNode.d.ts +0 -13
- three/examples/jsm/nodes/utils/RotateUVNode.d.ts +0 -10
- three/examples/jsm/nodes/utils/SpecularMIPLevelNode.d.ts +0 -8
- three/examples/jsm/nodes/utils/SplitNode.d.ts +0 -16
- three/examples/jsm/nodes/utils/SpriteSheetUVNode.d.ts +0 -9
- three/examples/jsm/nodes/utils/TimerNode.d.ts +0 -19
- three/examples/jsm/nodes/utils/TriplanarTexturesNode.d.ts +0 -22
- three/examples/jsm/objects/GroundProjectedSkybox.d.ts +0 -13
- three/examples/jsm/objects/MarchingCubes.d.ts +0 -76
- three/examples/jsm/objects/Reflector.d.ts +0 -29
- three/examples/jsm/postprocessing/EffectComposer.d.ts +0 -31
- three/examples/jsm/postprocessing/Pass.d.ts +0 -31
- three/examples/jsm/postprocessing/SavePass.d.ts +0 -12
- three/examples/jsm/postprocessing/ShaderPass.d.ts +0 -11
- three/examples/jsm/renderers/CSS3DRenderer.d.ts +0 -26
- three/examples/jsm/renderers/webgl/nodes/SlotNode.d.ts +0 -17
- three/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.d.ts +0 -37
- three/examples/jsm/renderers/webgl/nodes/WebGLNodes.d.ts +0 -3
- three/examples/jsm/shaders/ACESFilmicToneMappingShader.d.ts +0 -10
- three/examples/jsm/shaders/BokehShader2.d.ts +0 -42
- three/examples/jsm/shaders/ToonShader.d.ts +0 -54
- three/examples/jsm/shaders/VelocityShader.d.ts +0 -13
- three/examples/jsm/textures/FlakesTexture.d.ts +0 -3
- three/examples/jsm/utils/CameraUtils.d.ts +0 -9
- three/examples/jsm/utils/GeometryUtils.d.ts +0 -25
- three/examples/jsm/utils/LDrawUtils.d.ts +0 -5
- three/examples/jsm/utils/ShadowMapViewer.d.ts +0 -24
- three/examples/jsm/webxr/VRButton.d.ts +0 -5
- three/examples/jsm/webxr/XRButton.d.ts +0 -6
- three/examples/jsm/webxr/XRControllerModelFactory.d.ts +0 -21
- three/examples/jsm/webxr/XRHandMeshModel.d.ts +0 -11
- three/examples/jsm/webxr/XRHandModelFactory.d.ts +0 -25
- three/examples/jsm/webxr/XRHandPrimitiveModel.d.ts +0 -24
- three/src/extras/Earcut.d.ts +0 -15
three/README.md
CHANGED
|
@@ -8,9 +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:
|
|
12
|
-
* Dependencies: [@types/
|
|
13
|
-
* Global values: `THREE`
|
|
11
|
+
* Last updated: Wed, 18 Oct 2023 11:45:06 GMT
|
|
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)
|
|
14
13
|
|
|
15
14
|
# Credits
|
|
16
15
|
These definitions were written by [Josh Ellis](https://github.com/joshuaellis), and [Nathan Bierema](https://github.com/Methuselah96).
|
three/index.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
// Type definitions for three 0.157
|
|
2
|
-
// Project: https://threejs.org/
|
|
3
|
-
// Definitions by: Josh Ellis <https://github.com/joshuaellis>
|
|
4
|
-
// Nathan Bierema <https://github.com/Methuselah96>
|
|
5
|
-
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
6
|
-
|
|
7
1
|
// To update three.js type definition, please make changes to the repository at:
|
|
8
2
|
// https://github.com/three-types/three-ts-types.
|
|
9
3
|
// Periodically, the updates from the repository are pushed to DefinitelyTyped
|
three/package.json
CHANGED
|
@@ -1,37 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/three",
|
|
3
|
-
"version": "0.157.
|
|
3
|
+
"version": "0.157.1",
|
|
4
4
|
"description": "TypeScript definitions for three",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"contributors": [
|
|
8
8
|
{
|
|
9
9
|
"name": "Josh Ellis",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"githubUsername": "joshuaellis",
|
|
11
|
+
"url": "https://github.com/joshuaellis"
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
"name": "Nathan Bierema",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
15
|
+
"githubUsername": "Methuselah96",
|
|
16
|
+
"url": "https://github.com/Methuselah96"
|
|
17
17
|
}
|
|
18
18
|
],
|
|
19
|
+
"type": "module",
|
|
19
20
|
"main": "",
|
|
20
21
|
"types": "index.d.ts",
|
|
21
|
-
"repository": {
|
|
22
|
-
"type": "git",
|
|
23
|
-
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
|
24
|
-
"directory": "types/three"
|
|
25
|
-
},
|
|
26
|
-
"scripts": {},
|
|
27
|
-
"dependencies": {
|
|
28
|
-
"@types/stats.js": "*",
|
|
29
|
-
"@types/webxr": "*",
|
|
30
|
-
"fflate": "~0.6.10",
|
|
31
|
-
"meshoptimizer": "~0.18.1"
|
|
32
|
-
},
|
|
33
|
-
"typesPublisherContentHash": "63c77dccf70738b5366bf087bb39ca6274f45193346ed998ac0605d8e560fe57",
|
|
34
|
-
"typeScriptVersion": "4.5",
|
|
35
22
|
"exports": {
|
|
36
23
|
".": {
|
|
37
24
|
"import": "./build/three.module.js",
|
|
@@ -44,5 +31,18 @@
|
|
|
44
31
|
"./nodes": "./examples/jsm/nodes/Nodes.js",
|
|
45
32
|
"./package.json": "./package.json"
|
|
46
33
|
},
|
|
47
|
-
"
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
|
37
|
+
"directory": "types/three"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@types/stats.js": "*",
|
|
42
|
+
"@types/webxr": "*",
|
|
43
|
+
"fflate": "~0.6.10",
|
|
44
|
+
"meshoptimizer": "~0.18.1"
|
|
45
|
+
},
|
|
46
|
+
"typesPublisherContentHash": "d9388a18bbcf88aa18fface6fb06534b21e5cbb2b9d6df028f4c585cfc72e00c",
|
|
47
|
+
"typeScriptVersion": "4.5"
|
|
48
48
|
}
|
|
@@ -1,30 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,105 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,124 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
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
|
-
}
|