@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.
Files changed (84) hide show
  1. package/lib/three-vrm.js +3654 -3640
  2. package/lib/three-vrm.min.js +1 -1
  3. package/lib/three-vrm.module.js +3654 -3640
  4. package/lib/three-vrm.module.min.js +1 -1
  5. package/package.json +6 -6
  6. package/ts3.4/types/VRM.d.ts +1 -1
  7. package/ts3.4/types/VRMImporter.d.ts +1 -1
  8. package/ts3.4/types/blendshape/VRMBlendShapeImporter.d.ts +1 -1
  9. package/ts3.4/types/debug/VRMDebug.d.ts +1 -1
  10. package/ts3.4/types/debug/VRMImporterDebug.d.ts +1 -1
  11. package/ts3.4/types/debug/VRMLookAtImporterDebug.d.ts +1 -1
  12. package/ts3.4/types/debug/VRMSpringBoneImporterDebug.d.ts +1 -1
  13. package/ts3.4/types/firstperson/VRMFirstPersonImporter.d.ts +1 -1
  14. package/ts3.4/types/humanoid/VRMHumanoidImporter.d.ts +1 -1
  15. package/ts3.4/types/lookat/VRMLookAtImporter.d.ts +1 -1
  16. package/ts3.4/types/material/VRMMaterialImporter.d.ts +1 -1
  17. package/ts3.4/types/material/getTexelDecodingFunction.d.ts +4 -0
  18. package/ts3.4/types/meta/VRMMetaImporter.d.ts +1 -1
  19. package/ts3.4/types/springbone/VRMSpringBoneImporter.d.ts +1 -1
  20. package/ts3.4/types/utils/gltfExtractPrimitivesFromNode.d.ts +1 -1
  21. package/types/VRM.d.ts +110 -110
  22. package/types/VRMImporter.d.ts +42 -42
  23. package/types/VRMUtils/extractThumbnailBlob.d.ts +10 -10
  24. package/types/VRMUtils/index.d.ts +9 -9
  25. package/types/VRMUtils/removeUnnecessaryJoints.d.ts +9 -9
  26. package/types/VRMUtils/removeUnnecessaryVertices.d.ts +12 -12
  27. package/types/blendshape/VRMBlendShapeGroup.d.ts +50 -50
  28. package/types/blendshape/VRMBlendShapeImporter.d.ts +13 -13
  29. package/types/blendshape/VRMBlendShapeProxy.d.ts +91 -91
  30. package/types/blendshape/index.d.ts +3 -3
  31. package/types/debug/VRMDebug.d.ts +28 -28
  32. package/types/debug/VRMDebugOptions.d.ts +10 -10
  33. package/types/debug/VRMImporterDebug.d.ts +11 -11
  34. package/types/debug/VRMLookAtHeadDebug.d.ts +8 -8
  35. package/types/debug/VRMLookAtImporterDebug.d.ts +9 -9
  36. package/types/debug/VRMSpringBoneDebug.d.ts +14 -14
  37. package/types/debug/VRMSpringBoneImporterDebug.d.ts +10 -10
  38. package/types/debug/VRMSpringBoneManagerDebug.d.ts +11 -11
  39. package/types/debug/index.d.ts +4 -4
  40. package/types/firstperson/VRMFirstPerson.d.ts +116 -116
  41. package/types/firstperson/VRMFirstPersonImporter.d.ts +15 -15
  42. package/types/firstperson/index.d.ts +2 -2
  43. package/types/humanoid/VRMHumanBone.d.ts +22 -22
  44. package/types/humanoid/VRMHumanBoneArray.d.ts +9 -9
  45. package/types/humanoid/VRMHumanBones.d.ts +8 -8
  46. package/types/humanoid/VRMHumanDescription.d.ts +14 -14
  47. package/types/humanoid/VRMHumanLimit.d.ts +12 -12
  48. package/types/humanoid/VRMHumanoid.d.ts +87 -87
  49. package/types/humanoid/VRMHumanoidImporter.d.ts +13 -13
  50. package/types/humanoid/index.d.ts +6 -6
  51. package/types/index.d.ts +12 -12
  52. package/types/lookat/VRMCurveMapper.d.ts +36 -36
  53. package/types/lookat/VRMLookAtApplyer.d.ts +18 -18
  54. package/types/lookat/VRMLookAtBlendShapeApplyer.d.ts +26 -26
  55. package/types/lookat/VRMLookAtBoneApplyer.d.ts +28 -28
  56. package/types/lookat/VRMLookAtHead.d.ts +57 -57
  57. package/types/lookat/VRMLookAtImporter.d.ts +23 -23
  58. package/types/lookat/index.d.ts +6 -6
  59. package/types/material/MToonMaterial.d.ts +206 -206
  60. package/types/material/VRMMaterialImporter.d.ts +50 -50
  61. package/types/material/VRMUnlitMaterial.d.ts +46 -46
  62. package/types/material/getTexelDecodingFunction.d.ts +13 -9
  63. package/types/material/index.d.ts +3 -3
  64. package/types/meta/VRMMeta.d.ts +59 -59
  65. package/types/meta/VRMMetaImporter.d.ts +14 -14
  66. package/types/meta/VRMMetaImporterOptions.d.ts +9 -9
  67. package/types/meta/index.d.ts +3 -3
  68. package/types/springbone/VRMSpringBone.d.ts +130 -130
  69. package/types/springbone/VRMSpringBoneColliderGroup.d.ts +15 -15
  70. package/types/springbone/VRMSpringBoneImporter.d.ts +34 -34
  71. package/types/springbone/VRMSpringBoneManager.d.ts +35 -35
  72. package/types/springbone/VRMSpringBoneParameters.d.ts +9 -9
  73. package/types/springbone/index.d.ts +5 -5
  74. package/types/types/GLTFSchema.d.ts +887 -887
  75. package/types/types/VRMSchema.d.ts +440 -440
  76. package/types/types/index.d.ts +3 -3
  77. package/types/types/types.d.ts +64 -64
  78. package/types/utils/Matrix4InverseCache.d.ts +28 -28
  79. package/types/utils/disposer.d.ts +2 -2
  80. package/types/utils/gltfExtractPrimitivesFromNode.d.ts +22 -22
  81. package/types/utils/mat4InvertCompat.d.ts +8 -8
  82. package/types/utils/math.d.ts +40 -40
  83. package/types/utils/quatInvertCompat.d.ts +8 -8
  84. 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';