@pixiv/three-vrm 2.1.2 → 3.0.0-beta.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.
- package/README.md +29 -10
- package/lib/three-vrm.cjs +6646 -0
- package/lib/three-vrm.min.cjs +1052 -0
- package/lib/three-vrm.module.js +6514 -6794
- package/lib/three-vrm.module.min.js +1016 -19
- package/package.json +23 -23
- package/types/VRMUtils/removeUnnecessaryJoints.d.ts +11 -1
- package/lib/three-vrm.js +0 -6974
- package/lib/three-vrm.min.js +0 -54
- package/ts3.4/types/VRM.d.ts +0 -39
- package/ts3.4/types/VRMLoaderPlugin.d.ts +0 -31
- package/ts3.4/types/VRMLoaderPluginOptions.d.ts +0 -32
- package/ts3.4/types/VRMParameters.d.ts +0 -12
- package/ts3.4/types/VRMUtils/deepDispose.d.ts +0 -2
- package/ts3.4/types/VRMUtils/index.d.ts +0 -11
- package/ts3.4/types/VRMUtils/removeUnnecessaryJoints.d.ts +0 -9
- package/ts3.4/types/VRMUtils/removeUnnecessaryVertices.d.ts +0 -12
- package/ts3.4/types/VRMUtils/rotateVRM0.d.ts +0 -7
- package/ts3.4/types/index.d.ts +0 -9
- package/ts3.4/types/utils/Matrix4InverseCache.d.ts +0 -28
- package/ts3.4/types/utils/mat4InvertCompat.d.ts +0 -8
- package/ts3.4/types/utils/math.d.ts +0 -40
- package/ts3.4/types/utils/quatInvertCompat.d.ts +0 -8
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as THREE from 'three';
|
|
2
|
-
export declare class Matrix4InverseCache {
|
|
3
|
-
/**
|
|
4
|
-
* The target matrix.
|
|
5
|
-
*/
|
|
6
|
-
readonly matrix: THREE.Matrix4;
|
|
7
|
-
/**
|
|
8
|
-
* A cache of inverse of current matrix.
|
|
9
|
-
*/
|
|
10
|
-
private readonly _inverseCache;
|
|
11
|
-
/**
|
|
12
|
-
* A flag that makes it want to recalculate its {@link _inverseCache}.
|
|
13
|
-
* Will be set `true` when `elements` are mutated and be used in `getInverse`.
|
|
14
|
-
*/
|
|
15
|
-
private _shouldUpdateInverse;
|
|
16
|
-
/**
|
|
17
|
-
* The original of `matrix.elements`
|
|
18
|
-
*/
|
|
19
|
-
private readonly _originalElements;
|
|
20
|
-
/*
|
|
21
|
-
* Inverse of given matrix.
|
|
22
|
-
* Note that it will return its internal private instance.
|
|
23
|
-
* Make sure copying this before mutate this.
|
|
24
|
-
*/
|
|
25
|
-
readonly inverse: THREE.Matrix4;
|
|
26
|
-
constructor(matrix: THREE.Matrix4);
|
|
27
|
-
revert(): void;
|
|
28
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as THREE from 'three';
|
|
2
|
-
/**
|
|
3
|
-
* A compat function for `Matrix4.invert()` / `Matrix4.getInverse()`.
|
|
4
|
-
* `Matrix4.invert()` is introduced in r123 and `Matrix4.getInverse()` emits a warning.
|
|
5
|
-
* We are going to use this compat for a while.
|
|
6
|
-
* @param target A target matrix
|
|
7
|
-
*/
|
|
8
|
-
export declare function mat4InvertCompat<T extends THREE.Matrix4>(target: T): T;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as THREE from 'three';
|
|
2
|
-
/**
|
|
3
|
-
* Clamp an input number within [ `0.0` - `1.0` ].
|
|
4
|
-
*
|
|
5
|
-
* @param value The input value
|
|
6
|
-
*/
|
|
7
|
-
export declare function saturate(value: number): number;
|
|
8
|
-
/**
|
|
9
|
-
* Map the range of an input value from [ `min` - `max` ] to [ `0.0` - `1.0` ].
|
|
10
|
-
* If input value is less than `min` , it returns `0.0`.
|
|
11
|
-
* If input value is greater than `max` , it returns `1.0`.
|
|
12
|
-
*
|
|
13
|
-
* See also: https://threejs.org/docs/#api/en/math/Math.smoothstep
|
|
14
|
-
*
|
|
15
|
-
* @param x The value that will be mapped into the specified range
|
|
16
|
-
* @param min Minimum value of the range
|
|
17
|
-
* @param max Maximum value of the range
|
|
18
|
-
*/
|
|
19
|
-
export declare function linstep(x: number, min: number, max: number): number;
|
|
20
|
-
/**
|
|
21
|
-
* Extract world position of an object from its world space matrix, in cheaper way.
|
|
22
|
-
*
|
|
23
|
-
* @param object The object
|
|
24
|
-
* @param out Target vector
|
|
25
|
-
*/
|
|
26
|
-
export declare function getWorldPositionLite(object: THREE.Object3D, out: THREE.Vector3): THREE.Vector3;
|
|
27
|
-
/**
|
|
28
|
-
* Extract world scale of an object from its world space matrix, in cheaper way.
|
|
29
|
-
*
|
|
30
|
-
* @param object The object
|
|
31
|
-
* @param out Target vector
|
|
32
|
-
*/
|
|
33
|
-
export declare function getWorldScaleLite(object: THREE.Object3D, out: THREE.Vector3): THREE.Vector3;
|
|
34
|
-
/**
|
|
35
|
-
* Extract world rotation of an object from its world space matrix, in cheaper way.
|
|
36
|
-
*
|
|
37
|
-
* @param object The object
|
|
38
|
-
* @param out Target vector
|
|
39
|
-
*/
|
|
40
|
-
export declare function getWorldQuaternionLite(object: THREE.Object3D, out: THREE.Quaternion): THREE.Quaternion;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as THREE from 'three';
|
|
2
|
-
/**
|
|
3
|
-
* A compat function for `Quaternion.invert()` / `Quaternion.inverse()`.
|
|
4
|
-
* `Quaternion.invert()` is introduced in r123 and `Quaternion.inverse()` emits a warning.
|
|
5
|
-
* We are going to use this compat for a while.
|
|
6
|
-
* @param target A target quaternion
|
|
7
|
-
*/
|
|
8
|
-
export declare function quatInvertCompat<T extends THREE.Quaternion>(target: T): T;
|