@pixiv/types-vrmc-springbone-1.0 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/package.json +8 -17
- package/types/SpringBoneCollider.d.ts +7 -6
- package/types/SpringBoneColliderCapsule.d.ts +14 -12
- package/types/SpringBoneColliderGroup.d.ts +6 -6
- package/types/SpringBoneColliderShape.d.ts +6 -6
- package/types/SpringBoneColliderSphere.d.ts +9 -8
- package/types/SpringBoneJoint.d.ts +32 -28
- package/types/SpringBoneSpring.d.ts +23 -20
- package/types/VRMCSpringBone.d.ts +23 -20
- package/ts3.4/types/SpringBoneCollider.d.ts +0 -12
- package/ts3.4/types/SpringBoneColliderCapsule.d.ts +0 -22
- package/ts3.4/types/SpringBoneColliderGroup.d.ts +0 -11
- package/ts3.4/types/SpringBoneColliderShape.d.ts +0 -13
- package/ts3.4/types/SpringBoneColliderSphere.d.ts +0 -14
- package/ts3.4/types/SpringBoneJoint.d.ts +0 -37
- package/ts3.4/types/SpringBoneSpring.d.ts +0 -26
- package/ts3.4/types/VRMCSpringBone.d.ts +0 -28
- package/ts3.4/types/index.d.ts +0 -8
package/package.json
CHANGED
|
@@ -1,23 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixiv/types-vrmc-springbone-1.0",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-beta.0",
|
|
4
4
|
"description": "Type definitions of VRMC_springBone 1.0 schema",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "pixiv",
|
|
7
7
|
"files": [
|
|
8
|
-
"/ts*/",
|
|
9
8
|
"/types/",
|
|
10
9
|
"LICENSE"
|
|
11
10
|
],
|
|
12
11
|
"main": "",
|
|
13
12
|
"types": "types/index.d.ts",
|
|
14
|
-
"typesVersions": {
|
|
15
|
-
"<3.9": {
|
|
16
|
-
"*": [
|
|
17
|
-
"ts3.4/*"
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
13
|
"repository": {
|
|
22
14
|
"type": "git",
|
|
23
15
|
"url": "https://github.com/pixiv/three-vrm.git",
|
|
@@ -25,18 +17,17 @@
|
|
|
25
17
|
},
|
|
26
18
|
"scripts": {
|
|
27
19
|
"version": "yarn all",
|
|
28
|
-
"all": "yarn lint && yarn clean && yarn
|
|
29
|
-
"clean": "rimraf docs/
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"lint": "eslint \"
|
|
33
|
-
"lint-fix": "eslint \"src/**/*.{ts,tsx}\" --fix && prettier \"src/**/*.{ts,tsx}\" --write"
|
|
20
|
+
"all": "yarn lint && yarn clean && yarn docs",
|
|
21
|
+
"clean": "rimraf docs/",
|
|
22
|
+
"docs": "typedoc --entryPoints ./types/index.d.ts --out docs",
|
|
23
|
+
"lint": "eslint \"types/**/*.{ts,tsx}\" && prettier \"types/**/*.{ts,tsx}\" --check",
|
|
24
|
+
"lint-fix": "eslint \"types/**/*.{ts,tsx}\" --fix && prettier \"types/**/*.{ts,tsx}\" --write"
|
|
34
25
|
},
|
|
35
26
|
"lint-staged": {
|
|
36
|
-
"./
|
|
27
|
+
"./types/**/*.{ts,tsx}": [
|
|
37
28
|
"eslint --fix",
|
|
38
29
|
"prettier --write"
|
|
39
30
|
]
|
|
40
31
|
},
|
|
41
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "a8ac23ec2e534dcae60de7cce71542a03537fcea"
|
|
42
33
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { SpringBoneColliderShape } from './SpringBoneColliderShape';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* collider definition for SpringBone
|
|
4
5
|
*/
|
|
5
6
|
export interface SpringBoneCollider {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
node?: number;
|
|
8
|
+
|
|
9
|
+
shape?: SpringBoneColliderShape;
|
|
10
|
+
|
|
11
|
+
extensions?: { [name: string]: any };
|
|
12
|
+
extras?: any;
|
|
12
13
|
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
export interface SpringBoneColliderCapsule {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
/**
|
|
3
|
+
* The capsule head. vector3
|
|
4
|
+
*/
|
|
5
|
+
offset?: [number, number, number];
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The capsule radius
|
|
9
|
+
*/
|
|
10
|
+
radius?: number;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The capsule tail. vector3
|
|
14
|
+
*/
|
|
15
|
+
tail?: [number, number, number];
|
|
14
16
|
}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* collider group definition for SpringBone
|
|
3
3
|
*/
|
|
4
4
|
export interface SpringBoneColliderGroup {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
name?: string;
|
|
6
|
+
|
|
7
|
+
colliders?: number[];
|
|
8
|
+
|
|
9
|
+
extensions?: { [name: string]: any };
|
|
10
|
+
extras?: any;
|
|
11
11
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { SpringBoneColliderSphere } from './SpringBoneColliderSphere';
|
|
2
2
|
import type { SpringBoneColliderCapsule } from './SpringBoneColliderCapsule';
|
|
3
|
+
|
|
3
4
|
/**
|
|
4
5
|
* Shape of collider. Have one of sphere and capsule
|
|
5
6
|
*/
|
|
6
7
|
export interface SpringBoneColliderShape {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
extras?: any;
|
|
8
|
+
sphere?: SpringBoneColliderSphere;
|
|
9
|
+
capsule?: SpringBoneColliderCapsule;
|
|
10
|
+
|
|
11
|
+
extensions?: { [name: string]: any };
|
|
12
|
+
extras?: any;
|
|
13
13
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export interface SpringBoneColliderSphere {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
/**
|
|
3
|
+
* The sphere center. vector3
|
|
4
|
+
*/
|
|
5
|
+
offset?: [number, number, number];
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The sphere radius
|
|
9
|
+
*/
|
|
10
|
+
radius?: number;
|
|
10
11
|
}
|
|
@@ -2,32 +2,36 @@
|
|
|
2
2
|
* A bone joint of VRMCSpringBone.
|
|
3
3
|
*/
|
|
4
4
|
export interface SpringBoneJoint {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
5
|
+
/**
|
|
6
|
+
* The node index.
|
|
7
|
+
*/
|
|
8
|
+
node: number;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The radius of spring sphere.
|
|
12
|
+
*/
|
|
13
|
+
hitRadius: number;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The force to return to the initial pose.
|
|
17
|
+
*/
|
|
18
|
+
stiffness: number;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Gravitational acceleration.
|
|
22
|
+
*/
|
|
23
|
+
gravityPower: number;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* gravityDir
|
|
27
|
+
*/
|
|
28
|
+
gravityDir?: [number, number, number];
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Air resistance. Deceleration force.
|
|
32
|
+
*/
|
|
33
|
+
dragForce: number;
|
|
34
|
+
|
|
35
|
+
extensions?: { [name: string]: any };
|
|
36
|
+
extras?: any;
|
|
33
37
|
}
|
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
import type { SpringBoneJoint } from './SpringBoneJoint';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* A bone group of VRMCSpringBone.
|
|
4
5
|
*/
|
|
5
6
|
export interface SpringBoneSpring {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Name of the Spring
|
|
9
|
+
*/
|
|
10
|
+
name?: string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Joints of the spring. Except for the first element, a previous joint of the array must be an ancestor of the joint.
|
|
14
|
+
*/
|
|
15
|
+
joints: SpringBoneJoint[];
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Indices of ColliderGroups that detect collision with this spring.
|
|
19
|
+
*/
|
|
20
|
+
colliderGroups?: number[];
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* An index of node which is used as a root of center space.
|
|
24
|
+
*/
|
|
25
|
+
center?: number;
|
|
26
|
+
|
|
27
|
+
extensions?: { [name: string]: any };
|
|
28
|
+
extras?: any;
|
|
26
29
|
}
|
|
@@ -1,28 +1,31 @@
|
|
|
1
1
|
import type { SpringBoneCollider } from './SpringBoneCollider';
|
|
2
2
|
import type { SpringBoneColliderGroup } from './SpringBoneColliderGroup';
|
|
3
3
|
import type { SpringBoneSpring } from './SpringBoneSpring';
|
|
4
|
+
|
|
4
5
|
/**
|
|
5
6
|
* SpringBone makes objects such as costumes and hair swaying
|
|
6
7
|
*/
|
|
7
8
|
export interface VRMCSpringBone {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Specification version of VRMC_springBone
|
|
11
|
+
*/
|
|
12
|
+
specVersion: '1.0' | '1.0-beta';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* An array of colliders.
|
|
16
|
+
*/
|
|
17
|
+
colliders?: SpringBoneCollider[];
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* An array of collider groups.
|
|
21
|
+
*/
|
|
22
|
+
colliderGroups?: SpringBoneColliderGroup[];
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* An array of springs.
|
|
26
|
+
*/
|
|
27
|
+
springs?: SpringBoneSpring[];
|
|
28
|
+
|
|
29
|
+
extensions?: { [name: string]: any };
|
|
30
|
+
extras?: any;
|
|
28
31
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SpringBoneColliderShape } from './SpringBoneColliderShape';
|
|
2
|
-
/**
|
|
3
|
-
* collider definition for SpringBone
|
|
4
|
-
*/
|
|
5
|
-
export interface SpringBoneCollider {
|
|
6
|
-
node?: number;
|
|
7
|
-
shape?: SpringBoneColliderShape;
|
|
8
|
-
extensions?: {
|
|
9
|
-
[name: string]: any;
|
|
10
|
-
};
|
|
11
|
-
extras?: any;
|
|
12
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface SpringBoneColliderCapsule {
|
|
2
|
-
/**
|
|
3
|
-
* The capsule head. vector3
|
|
4
|
-
*/
|
|
5
|
-
offset?: [
|
|
6
|
-
number,
|
|
7
|
-
number,
|
|
8
|
-
number
|
|
9
|
-
];
|
|
10
|
-
/**
|
|
11
|
-
* The capsule radius
|
|
12
|
-
*/
|
|
13
|
-
radius?: number;
|
|
14
|
-
/**
|
|
15
|
-
* The capsule tail. vector3
|
|
16
|
-
*/
|
|
17
|
-
tail?: [
|
|
18
|
-
number,
|
|
19
|
-
number,
|
|
20
|
-
number
|
|
21
|
-
];
|
|
22
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { SpringBoneColliderSphere } from './SpringBoneColliderSphere';
|
|
2
|
-
import { SpringBoneColliderCapsule } from './SpringBoneColliderCapsule';
|
|
3
|
-
/**
|
|
4
|
-
* Shape of collider. Have one of sphere and capsule
|
|
5
|
-
*/
|
|
6
|
-
export interface SpringBoneColliderShape {
|
|
7
|
-
sphere?: SpringBoneColliderSphere;
|
|
8
|
-
capsule?: SpringBoneColliderCapsule;
|
|
9
|
-
extensions?: {
|
|
10
|
-
[name: string]: any;
|
|
11
|
-
};
|
|
12
|
-
extras?: any;
|
|
13
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A bone joint of VRMCSpringBone.
|
|
3
|
-
*/
|
|
4
|
-
export interface SpringBoneJoint {
|
|
5
|
-
/**
|
|
6
|
-
* The node index.
|
|
7
|
-
*/
|
|
8
|
-
node: number;
|
|
9
|
-
/**
|
|
10
|
-
* The radius of spring sphere.
|
|
11
|
-
*/
|
|
12
|
-
hitRadius: number;
|
|
13
|
-
/**
|
|
14
|
-
* The force to return to the initial pose.
|
|
15
|
-
*/
|
|
16
|
-
stiffness: number;
|
|
17
|
-
/**
|
|
18
|
-
* Gravitational acceleration.
|
|
19
|
-
*/
|
|
20
|
-
gravityPower: number;
|
|
21
|
-
/**
|
|
22
|
-
* gravityDir
|
|
23
|
-
*/
|
|
24
|
-
gravityDir?: [
|
|
25
|
-
number,
|
|
26
|
-
number,
|
|
27
|
-
number
|
|
28
|
-
];
|
|
29
|
-
/**
|
|
30
|
-
* Air resistance. Deceleration force.
|
|
31
|
-
*/
|
|
32
|
-
dragForce: number;
|
|
33
|
-
extensions?: {
|
|
34
|
-
[name: string]: any;
|
|
35
|
-
};
|
|
36
|
-
extras?: any;
|
|
37
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { SpringBoneJoint } from './SpringBoneJoint';
|
|
2
|
-
/**
|
|
3
|
-
* A bone group of VRMCSpringBone.
|
|
4
|
-
*/
|
|
5
|
-
export interface SpringBoneSpring {
|
|
6
|
-
/**
|
|
7
|
-
* Name of the Spring
|
|
8
|
-
*/
|
|
9
|
-
name?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Joints of the spring. Except for the first element, a previous joint of the array must be an ancestor of the joint.
|
|
12
|
-
*/
|
|
13
|
-
joints: SpringBoneJoint[];
|
|
14
|
-
/**
|
|
15
|
-
* Indices of ColliderGroups that detect collision with this spring.
|
|
16
|
-
*/
|
|
17
|
-
colliderGroups?: number[];
|
|
18
|
-
/**
|
|
19
|
-
* An index of node which is used as a root of center space.
|
|
20
|
-
*/
|
|
21
|
-
center?: number;
|
|
22
|
-
extensions?: {
|
|
23
|
-
[name: string]: any;
|
|
24
|
-
};
|
|
25
|
-
extras?: any;
|
|
26
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { SpringBoneCollider } from './SpringBoneCollider';
|
|
2
|
-
import { SpringBoneColliderGroup } from './SpringBoneColliderGroup';
|
|
3
|
-
import { SpringBoneSpring } from './SpringBoneSpring';
|
|
4
|
-
/**
|
|
5
|
-
* SpringBone makes objects such as costumes and hair swaying
|
|
6
|
-
*/
|
|
7
|
-
export interface VRMCSpringBone {
|
|
8
|
-
/**
|
|
9
|
-
* Specification version of VRMC_springBone
|
|
10
|
-
*/
|
|
11
|
-
specVersion: '1.0' | '1.0-beta';
|
|
12
|
-
/**
|
|
13
|
-
* An array of colliders.
|
|
14
|
-
*/
|
|
15
|
-
colliders?: SpringBoneCollider[];
|
|
16
|
-
/**
|
|
17
|
-
* An array of collider groups.
|
|
18
|
-
*/
|
|
19
|
-
colliderGroups?: SpringBoneColliderGroup[];
|
|
20
|
-
/**
|
|
21
|
-
* An array of springs.
|
|
22
|
-
*/
|
|
23
|
-
springs?: SpringBoneSpring[];
|
|
24
|
-
extensions?: {
|
|
25
|
-
[name: string]: any;
|
|
26
|
-
};
|
|
27
|
-
extras?: any;
|
|
28
|
-
}
|
package/ts3.4/types/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { SpringBoneCollider } from './SpringBoneCollider';
|
|
2
|
-
export { SpringBoneColliderCapsule } from './SpringBoneColliderCapsule';
|
|
3
|
-
export { SpringBoneColliderGroup } from './SpringBoneColliderGroup';
|
|
4
|
-
export { SpringBoneColliderShape } from './SpringBoneColliderShape';
|
|
5
|
-
export { SpringBoneColliderSphere } from './SpringBoneColliderSphere';
|
|
6
|
-
export { SpringBoneJoint } from './SpringBoneJoint';
|
|
7
|
-
export { SpringBoneSpring } from './SpringBoneSpring';
|
|
8
|
-
export { VRMCSpringBone } from './VRMCSpringBone';
|