@pixiv/three-vrm 0.6.8 → 0.6.9
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.
- package/lib/three-vrm.js +3654 -3640
- package/lib/three-vrm.min.js +1 -1
- package/lib/three-vrm.module.js +3654 -3640
- package/lib/three-vrm.module.min.js +1 -1
- package/package.json +6 -6
- package/ts3.4/types/VRM.d.ts +1 -1
- package/ts3.4/types/VRMImporter.d.ts +1 -1
- package/ts3.4/types/blendshape/VRMBlendShapeImporter.d.ts +1 -1
- package/ts3.4/types/debug/VRMDebug.d.ts +1 -1
- package/ts3.4/types/debug/VRMImporterDebug.d.ts +1 -1
- package/ts3.4/types/debug/VRMLookAtImporterDebug.d.ts +1 -1
- package/ts3.4/types/debug/VRMSpringBoneImporterDebug.d.ts +1 -1
- package/ts3.4/types/firstperson/VRMFirstPersonImporter.d.ts +1 -1
- package/ts3.4/types/humanoid/VRMHumanoidImporter.d.ts +1 -1
- package/ts3.4/types/lookat/VRMLookAtImporter.d.ts +1 -1
- package/ts3.4/types/material/VRMMaterialImporter.d.ts +1 -1
- package/ts3.4/types/material/getTexelDecodingFunction.d.ts +4 -0
- package/ts3.4/types/meta/VRMMetaImporter.d.ts +1 -1
- package/ts3.4/types/springbone/VRMSpringBoneImporter.d.ts +1 -1
- package/ts3.4/types/utils/gltfExtractPrimitivesFromNode.d.ts +1 -1
- package/types/VRM.d.ts +110 -110
- package/types/VRMImporter.d.ts +42 -42
- package/types/VRMUtils/extractThumbnailBlob.d.ts +10 -10
- package/types/VRMUtils/index.d.ts +9 -9
- package/types/VRMUtils/removeUnnecessaryJoints.d.ts +9 -9
- package/types/VRMUtils/removeUnnecessaryVertices.d.ts +12 -12
- package/types/blendshape/VRMBlendShapeGroup.d.ts +50 -50
- package/types/blendshape/VRMBlendShapeImporter.d.ts +13 -13
- package/types/blendshape/VRMBlendShapeProxy.d.ts +91 -91
- package/types/blendshape/index.d.ts +3 -3
- package/types/debug/VRMDebug.d.ts +28 -28
- package/types/debug/VRMDebugOptions.d.ts +10 -10
- package/types/debug/VRMImporterDebug.d.ts +11 -11
- package/types/debug/VRMLookAtHeadDebug.d.ts +8 -8
- package/types/debug/VRMLookAtImporterDebug.d.ts +9 -9
- package/types/debug/VRMSpringBoneDebug.d.ts +14 -14
- package/types/debug/VRMSpringBoneImporterDebug.d.ts +10 -10
- package/types/debug/VRMSpringBoneManagerDebug.d.ts +11 -11
- package/types/debug/index.d.ts +4 -4
- package/types/firstperson/VRMFirstPerson.d.ts +116 -116
- package/types/firstperson/VRMFirstPersonImporter.d.ts +15 -15
- package/types/firstperson/index.d.ts +2 -2
- package/types/humanoid/VRMHumanBone.d.ts +22 -22
- package/types/humanoid/VRMHumanBoneArray.d.ts +9 -9
- package/types/humanoid/VRMHumanBones.d.ts +8 -8
- package/types/humanoid/VRMHumanDescription.d.ts +14 -14
- package/types/humanoid/VRMHumanLimit.d.ts +12 -12
- package/types/humanoid/VRMHumanoid.d.ts +87 -87
- package/types/humanoid/VRMHumanoidImporter.d.ts +13 -13
- package/types/humanoid/index.d.ts +6 -6
- package/types/index.d.ts +12 -12
- package/types/lookat/VRMCurveMapper.d.ts +36 -36
- package/types/lookat/VRMLookAtApplyer.d.ts +18 -18
- package/types/lookat/VRMLookAtBlendShapeApplyer.d.ts +26 -26
- package/types/lookat/VRMLookAtBoneApplyer.d.ts +28 -28
- package/types/lookat/VRMLookAtHead.d.ts +57 -57
- package/types/lookat/VRMLookAtImporter.d.ts +23 -23
- package/types/lookat/index.d.ts +6 -6
- package/types/material/MToonMaterial.d.ts +206 -206
- package/types/material/VRMMaterialImporter.d.ts +50 -50
- package/types/material/VRMUnlitMaterial.d.ts +46 -46
- package/types/material/getTexelDecodingFunction.d.ts +13 -9
- package/types/material/index.d.ts +3 -3
- package/types/meta/VRMMeta.d.ts +59 -59
- package/types/meta/VRMMetaImporter.d.ts +14 -14
- package/types/meta/VRMMetaImporterOptions.d.ts +9 -9
- package/types/meta/index.d.ts +3 -3
- package/types/springbone/VRMSpringBone.d.ts +130 -130
- package/types/springbone/VRMSpringBoneColliderGroup.d.ts +15 -15
- package/types/springbone/VRMSpringBoneImporter.d.ts +34 -34
- package/types/springbone/VRMSpringBoneManager.d.ts +35 -35
- package/types/springbone/VRMSpringBoneParameters.d.ts +9 -9
- package/types/springbone/index.d.ts +5 -5
- package/types/types/GLTFSchema.d.ts +887 -887
- package/types/types/VRMSchema.d.ts +440 -440
- package/types/types/index.d.ts +3 -3
- package/types/types/types.d.ts +64 -64
- package/types/utils/Matrix4InverseCache.d.ts +28 -28
- package/types/utils/disposer.d.ts +2 -2
- package/types/utils/gltfExtractPrimitivesFromNode.d.ts +22 -22
- package/types/utils/mat4InvertCompat.d.ts +8 -8
- package/types/utils/math.d.ts +40 -40
- package/types/utils/quatInvertCompat.d.ts +8 -8
- package/types/utils/renameMaterialProperty.d.ts +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import * as THREE from 'three';
|
|
2
|
-
/**
|
|
3
|
-
* ColliderMesh, is actually just a `THREE.Mesh`.
|
|
4
|
-
* Its radius and world position will be used for collisions.
|
|
5
|
-
*/
|
|
6
|
-
export declare type VRMSpringBoneColliderMesh = THREE.Mesh;
|
|
7
|
-
/**
|
|
8
|
-
* A group of colliders, equivalents to an element of `colliderGroups` field of VRM schema.
|
|
9
|
-
*
|
|
10
|
-
* @see https://github.com/vrm-c/UniVRM/blob/master/specification/0.0/schema/vrm.secondaryanimation.collidergroup.schema.json
|
|
11
|
-
*/
|
|
12
|
-
export interface VRMSpringBoneColliderGroup {
|
|
13
|
-
node: number;
|
|
14
|
-
colliders: VRMSpringBoneColliderMesh[];
|
|
15
|
-
}
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
/**
|
|
3
|
+
* ColliderMesh, is actually just a `THREE.Mesh`.
|
|
4
|
+
* Its radius and world position will be used for collisions.
|
|
5
|
+
*/
|
|
6
|
+
export declare type VRMSpringBoneColliderMesh = THREE.Mesh;
|
|
7
|
+
/**
|
|
8
|
+
* A group of colliders, equivalents to an element of `colliderGroups` field of VRM schema.
|
|
9
|
+
*
|
|
10
|
+
* @see https://github.com/vrm-c/UniVRM/blob/master/specification/0.0/schema/vrm.secondaryanimation.collidergroup.schema.json
|
|
11
|
+
*/
|
|
12
|
+
export interface VRMSpringBoneColliderGroup {
|
|
13
|
+
node: number;
|
|
14
|
+
colliders: VRMSpringBoneColliderMesh[];
|
|
15
|
+
}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import * as THREE from 'three';
|
|
2
|
-
import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
|
|
3
|
-
import { VRMSchema } from '../types';
|
|
4
|
-
import { VRMSpringBone } from './VRMSpringBone';
|
|
5
|
-
import { VRMSpringBoneColliderGroup, VRMSpringBoneColliderMesh } from './VRMSpringBoneColliderGroup';
|
|
6
|
-
import { VRMSpringBoneGroup, VRMSpringBoneManager } from './VRMSpringBoneManager';
|
|
7
|
-
import { VRMSpringBoneParameters } from './VRMSpringBoneParameters';
|
|
8
|
-
/**
|
|
9
|
-
* An importer that imports a [[VRMSpringBoneManager]] from a VRM extension of a GLTF.
|
|
10
|
-
*/
|
|
11
|
-
export declare class VRMSpringBoneImporter {
|
|
12
|
-
/**
|
|
13
|
-
* Import a [[VRMLookAtHead]] from a VRM.
|
|
14
|
-
*
|
|
15
|
-
* @param gltf A parsed result of GLTF taken from GLTFLoader
|
|
16
|
-
*/
|
|
17
|
-
import(gltf: GLTF): Promise<VRMSpringBoneManager | null>;
|
|
18
|
-
protected _createSpringBone(bone: THREE.Object3D, params?: VRMSpringBoneParameters): VRMSpringBone;
|
|
19
|
-
protected _importSpringBoneGroupList(gltf: GLTF, schemaSecondaryAnimation: VRMSchema.SecondaryAnimation, colliderGroups: VRMSpringBoneColliderGroup[]): Promise<VRMSpringBoneGroup[]>;
|
|
20
|
-
/**
|
|
21
|
-
* Create an array of [[VRMSpringBoneColliderGroup]].
|
|
22
|
-
*
|
|
23
|
-
* @param gltf A parsed result of GLTF taken from GLTFLoader
|
|
24
|
-
* @param schemaSecondaryAnimation A `secondaryAnimation` field of VRM
|
|
25
|
-
*/
|
|
26
|
-
protected _importColliderMeshGroups(gltf: GLTF, schemaSecondaryAnimation: VRMSchema.SecondaryAnimation): Promise<VRMSpringBoneColliderGroup[]>;
|
|
27
|
-
/**
|
|
28
|
-
* Create a collider mesh.
|
|
29
|
-
*
|
|
30
|
-
* @param radius Radius of the new collider mesh
|
|
31
|
-
* @param offset Offest of the new collider mesh
|
|
32
|
-
*/
|
|
33
|
-
protected _createColliderMesh(radius: number, offset: THREE.Vector3): VRMSpringBoneColliderMesh;
|
|
34
|
-
}
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader.js';
|
|
3
|
+
import { VRMSchema } from '../types';
|
|
4
|
+
import { VRMSpringBone } from './VRMSpringBone';
|
|
5
|
+
import { VRMSpringBoneColliderGroup, VRMSpringBoneColliderMesh } from './VRMSpringBoneColliderGroup';
|
|
6
|
+
import { VRMSpringBoneGroup, VRMSpringBoneManager } from './VRMSpringBoneManager';
|
|
7
|
+
import { VRMSpringBoneParameters } from './VRMSpringBoneParameters';
|
|
8
|
+
/**
|
|
9
|
+
* An importer that imports a [[VRMSpringBoneManager]] from a VRM extension of a GLTF.
|
|
10
|
+
*/
|
|
11
|
+
export declare class VRMSpringBoneImporter {
|
|
12
|
+
/**
|
|
13
|
+
* Import a [[VRMLookAtHead]] from a VRM.
|
|
14
|
+
*
|
|
15
|
+
* @param gltf A parsed result of GLTF taken from GLTFLoader
|
|
16
|
+
*/
|
|
17
|
+
import(gltf: GLTF): Promise<VRMSpringBoneManager | null>;
|
|
18
|
+
protected _createSpringBone(bone: THREE.Object3D, params?: VRMSpringBoneParameters): VRMSpringBone;
|
|
19
|
+
protected _importSpringBoneGroupList(gltf: GLTF, schemaSecondaryAnimation: VRMSchema.SecondaryAnimation, colliderGroups: VRMSpringBoneColliderGroup[]): Promise<VRMSpringBoneGroup[]>;
|
|
20
|
+
/**
|
|
21
|
+
* Create an array of [[VRMSpringBoneColliderGroup]].
|
|
22
|
+
*
|
|
23
|
+
* @param gltf A parsed result of GLTF taken from GLTFLoader
|
|
24
|
+
* @param schemaSecondaryAnimation A `secondaryAnimation` field of VRM
|
|
25
|
+
*/
|
|
26
|
+
protected _importColliderMeshGroups(gltf: GLTF, schemaSecondaryAnimation: VRMSchema.SecondaryAnimation): Promise<VRMSpringBoneColliderGroup[]>;
|
|
27
|
+
/**
|
|
28
|
+
* Create a collider mesh.
|
|
29
|
+
*
|
|
30
|
+
* @param radius Radius of the new collider mesh
|
|
31
|
+
* @param offset Offest of the new collider mesh
|
|
32
|
+
*/
|
|
33
|
+
protected _createColliderMesh(radius: number, offset: THREE.Vector3): VRMSpringBoneColliderMesh;
|
|
34
|
+
}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { VRMSpringBone } from './VRMSpringBone';
|
|
2
|
-
import { VRMSpringBoneColliderGroup } from './VRMSpringBoneColliderGroup';
|
|
3
|
-
/**
|
|
4
|
-
* Represents a single spring bone group of a VRM.
|
|
5
|
-
*/
|
|
6
|
-
export declare type VRMSpringBoneGroup = VRMSpringBone[];
|
|
7
|
-
/**
|
|
8
|
-
* A class manages every spring bones on a VRM.
|
|
9
|
-
*/
|
|
10
|
-
export declare class VRMSpringBoneManager {
|
|
11
|
-
readonly colliderGroups: VRMSpringBoneColliderGroup[];
|
|
12
|
-
readonly springBoneGroupList: VRMSpringBoneGroup[];
|
|
13
|
-
/**
|
|
14
|
-
* Create a new [[VRMSpringBoneManager]]
|
|
15
|
-
*
|
|
16
|
-
* @param springBoneGroupList An array of [[VRMSpringBoneGroup]]
|
|
17
|
-
*/
|
|
18
|
-
constructor(colliderGroups: VRMSpringBoneColliderGroup[], springBoneGroupList: VRMSpringBoneGroup[]);
|
|
19
|
-
/**
|
|
20
|
-
* Set all bones be calculated based on the space relative from this object.
|
|
21
|
-
* If `null` is given, springbone will be calculated in world space.
|
|
22
|
-
* @param root Root object, or `null`
|
|
23
|
-
*/
|
|
24
|
-
setCenter(root: THREE.Object3D | null): void;
|
|
25
|
-
/**
|
|
26
|
-
* Update every spring bone attached to this manager.
|
|
27
|
-
*
|
|
28
|
-
* @param delta deltaTime
|
|
29
|
-
*/
|
|
30
|
-
lateUpdate(delta: number): void;
|
|
31
|
-
/**
|
|
32
|
-
* Reset every spring bone attached to this manager.
|
|
33
|
-
*/
|
|
34
|
-
reset(): void;
|
|
35
|
-
}
|
|
1
|
+
import { VRMSpringBone } from './VRMSpringBone';
|
|
2
|
+
import { VRMSpringBoneColliderGroup } from './VRMSpringBoneColliderGroup';
|
|
3
|
+
/**
|
|
4
|
+
* Represents a single spring bone group of a VRM.
|
|
5
|
+
*/
|
|
6
|
+
export declare type VRMSpringBoneGroup = VRMSpringBone[];
|
|
7
|
+
/**
|
|
8
|
+
* A class manages every spring bones on a VRM.
|
|
9
|
+
*/
|
|
10
|
+
export declare class VRMSpringBoneManager {
|
|
11
|
+
readonly colliderGroups: VRMSpringBoneColliderGroup[];
|
|
12
|
+
readonly springBoneGroupList: VRMSpringBoneGroup[];
|
|
13
|
+
/**
|
|
14
|
+
* Create a new [[VRMSpringBoneManager]]
|
|
15
|
+
*
|
|
16
|
+
* @param springBoneGroupList An array of [[VRMSpringBoneGroup]]
|
|
17
|
+
*/
|
|
18
|
+
constructor(colliderGroups: VRMSpringBoneColliderGroup[], springBoneGroupList: VRMSpringBoneGroup[]);
|
|
19
|
+
/**
|
|
20
|
+
* Set all bones be calculated based on the space relative from this object.
|
|
21
|
+
* If `null` is given, springbone will be calculated in world space.
|
|
22
|
+
* @param root Root object, or `null`
|
|
23
|
+
*/
|
|
24
|
+
setCenter(root: THREE.Object3D | null): void;
|
|
25
|
+
/**
|
|
26
|
+
* Update every spring bone attached to this manager.
|
|
27
|
+
*
|
|
28
|
+
* @param delta deltaTime
|
|
29
|
+
*/
|
|
30
|
+
lateUpdate(delta: number): void;
|
|
31
|
+
/**
|
|
32
|
+
* Reset every spring bone attached to this manager.
|
|
33
|
+
*/
|
|
34
|
+
reset(): void;
|
|
35
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface VRMSpringBoneParameters {
|
|
2
|
-
radius?: number;
|
|
3
|
-
stiffnessForce?: number;
|
|
4
|
-
gravityDir?: THREE.Vector3;
|
|
5
|
-
gravityPower?: number;
|
|
6
|
-
dragForce?: number;
|
|
7
|
-
colliders?: THREE.Mesh[];
|
|
8
|
-
center?: THREE.Object3D | null;
|
|
9
|
-
}
|
|
1
|
+
export interface VRMSpringBoneParameters {
|
|
2
|
+
radius?: number;
|
|
3
|
+
stiffnessForce?: number;
|
|
4
|
+
gravityDir?: THREE.Vector3;
|
|
5
|
+
gravityPower?: number;
|
|
6
|
+
dragForce?: number;
|
|
7
|
+
colliders?: THREE.Mesh[];
|
|
8
|
+
center?: THREE.Object3D | null;
|
|
9
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './VRMSpringBone';
|
|
2
|
-
export * from './VRMSpringBoneColliderGroup';
|
|
3
|
-
export * from './VRMSpringBoneImporter';
|
|
4
|
-
export * from './VRMSpringBoneManager';
|
|
5
|
-
export * from './VRMSpringBoneParameters';
|
|
1
|
+
export * from './VRMSpringBone';
|
|
2
|
+
export * from './VRMSpringBoneColliderGroup';
|
|
3
|
+
export * from './VRMSpringBoneImporter';
|
|
4
|
+
export * from './VRMSpringBoneManager';
|
|
5
|
+
export * from './VRMSpringBoneParameters';
|