@pixiv/types-vrmc-node-constraint-1.0 2.1.2 → 3.0.0-beta.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.
- package/package.json +8 -17
- package/types/AimConstraint.d.ts +17 -16
- package/types/Constraint.d.ts +7 -7
- package/types/RollConstraint.d.ts +17 -16
- package/types/RotationConstraint.d.ts +12 -12
- package/types/VRMCNodeConstraint.d.ts +10 -9
- package/ts3.4/types/AimConstraint.d.ts +0 -21
- package/ts3.4/types/Constraint.d.ts +0 -15
- package/ts3.4/types/RollConstraint.d.ts +0 -21
- package/ts3.4/types/RotationConstraint.d.ts +0 -17
- package/ts3.4/types/VRMCNodeConstraint.d.ts +0 -15
- package/ts3.4/types/index.d.ts +0 -5
package/package.json
CHANGED
|
@@ -1,23 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixiv/types-vrmc-node-constraint-1.0",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-beta.1",
|
|
4
4
|
"description": "Type definitions of VRMC_node_constraint 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": "4d55fad79ca8d21151f902ae4382aceff948c8cd"
|
|
42
33
|
}
|
package/types/AimConstraint.d.ts
CHANGED
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
* A constraint that makes it look at a source object.
|
|
3
3
|
*/
|
|
4
4
|
export interface AimConstraint {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
5
|
+
/**
|
|
6
|
+
* The index of the node constrains the node.
|
|
7
|
+
*/
|
|
8
|
+
source: number;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The aim axis of the constraint.
|
|
12
|
+
*/
|
|
13
|
+
aimAxis: 'PositiveX' | 'NegativeX' | 'PositiveY' | 'NegativeY' | 'PositiveZ' | 'NegativeZ';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The weight of the constraint.
|
|
17
|
+
*/
|
|
18
|
+
weight?: number;
|
|
19
|
+
|
|
20
|
+
extensions?: { [name: string]: any };
|
|
21
|
+
extras?: any;
|
|
21
22
|
}
|
package/types/Constraint.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { AimConstraint } from './AimConstraint';
|
|
2
2
|
import { RollConstraint } from './RollConstraint';
|
|
3
3
|
import type { RotationConstraint } from './RotationConstraint';
|
|
4
|
+
|
|
4
5
|
/**
|
|
5
6
|
* An object contains one of constraints.
|
|
6
7
|
*/
|
|
7
8
|
export interface Constraint {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
extras?: any;
|
|
9
|
+
roll?: RollConstraint;
|
|
10
|
+
aim?: AimConstraint;
|
|
11
|
+
rotation?: RotationConstraint;
|
|
12
|
+
|
|
13
|
+
extensions?: { [name: string]: any };
|
|
14
|
+
extras?: any;
|
|
15
15
|
}
|
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
* A constraint that transfers a rotation around one axis of a source.
|
|
3
3
|
*/
|
|
4
4
|
export interface RollConstraint {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
5
|
+
/**
|
|
6
|
+
* The index of the node constrains the node.
|
|
7
|
+
*/
|
|
8
|
+
source: number;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The roll axis of the constraint.
|
|
12
|
+
*/
|
|
13
|
+
rollAxis: 'X' | 'Y' | 'Z';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The weight of the constraint.
|
|
17
|
+
*/
|
|
18
|
+
weight?: number;
|
|
19
|
+
|
|
20
|
+
extensions?: { [name: string]: any };
|
|
21
|
+
extras?: any;
|
|
21
22
|
}
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
* A constraint that links the rotation with a source.
|
|
3
3
|
*/
|
|
4
4
|
export interface RotationConstraint {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
/**
|
|
6
|
+
* The index of the node constrains the node.
|
|
7
|
+
*/
|
|
8
|
+
source: number;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The weight of the constraint.
|
|
12
|
+
*/
|
|
13
|
+
weight?: number;
|
|
14
|
+
|
|
15
|
+
extensions?: { [name: string]: any };
|
|
16
|
+
extras?: any;
|
|
17
17
|
}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import type { Constraint } from './Constraint';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* glTF extension that defines a node constraint.
|
|
4
5
|
*/
|
|
5
6
|
export interface VRMCNodeConstraint {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Specification version of VRMC_node_constraint
|
|
9
|
+
*/
|
|
10
|
+
specVersion: '1.0' | '1.0-beta';
|
|
11
|
+
|
|
12
|
+
constraint: Constraint;
|
|
13
|
+
|
|
14
|
+
extensions?: { [name: string]: any };
|
|
15
|
+
extras?: any;
|
|
15
16
|
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A constraint that makes it look at a source object.
|
|
3
|
-
*/
|
|
4
|
-
export interface AimConstraint {
|
|
5
|
-
/**
|
|
6
|
-
* The index of the node constrains the node.
|
|
7
|
-
*/
|
|
8
|
-
source: number;
|
|
9
|
-
/**
|
|
10
|
-
* The aim axis of the constraint.
|
|
11
|
-
*/
|
|
12
|
-
aimAxis: 'PositiveX' | 'NegativeX' | 'PositiveY' | 'NegativeY' | 'PositiveZ' | 'NegativeZ';
|
|
13
|
-
/**
|
|
14
|
-
* The weight of the constraint.
|
|
15
|
-
*/
|
|
16
|
-
weight?: number;
|
|
17
|
-
extensions?: {
|
|
18
|
-
[name: string]: any;
|
|
19
|
-
};
|
|
20
|
-
extras?: any;
|
|
21
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { AimConstraint } from './AimConstraint';
|
|
2
|
-
import { RollConstraint } from './RollConstraint';
|
|
3
|
-
import { RotationConstraint } from './RotationConstraint';
|
|
4
|
-
/**
|
|
5
|
-
* An object contains one of constraints.
|
|
6
|
-
*/
|
|
7
|
-
export interface Constraint {
|
|
8
|
-
roll?: RollConstraint;
|
|
9
|
-
aim?: AimConstraint;
|
|
10
|
-
rotation?: RotationConstraint;
|
|
11
|
-
extensions?: {
|
|
12
|
-
[name: string]: any;
|
|
13
|
-
};
|
|
14
|
-
extras?: any;
|
|
15
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A constraint that transfers a rotation around one axis of a source.
|
|
3
|
-
*/
|
|
4
|
-
export interface RollConstraint {
|
|
5
|
-
/**
|
|
6
|
-
* The index of the node constrains the node.
|
|
7
|
-
*/
|
|
8
|
-
source: number;
|
|
9
|
-
/**
|
|
10
|
-
* The roll axis of the constraint.
|
|
11
|
-
*/
|
|
12
|
-
rollAxis: 'X' | 'Y' | 'Z';
|
|
13
|
-
/**
|
|
14
|
-
* The weight of the constraint.
|
|
15
|
-
*/
|
|
16
|
-
weight?: number;
|
|
17
|
-
extensions?: {
|
|
18
|
-
[name: string]: any;
|
|
19
|
-
};
|
|
20
|
-
extras?: any;
|
|
21
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A constraint that links the rotation with a source.
|
|
3
|
-
*/
|
|
4
|
-
export interface RotationConstraint {
|
|
5
|
-
/**
|
|
6
|
-
* The index of the node constrains the node.
|
|
7
|
-
*/
|
|
8
|
-
source: number;
|
|
9
|
-
/**
|
|
10
|
-
* The weight of the constraint.
|
|
11
|
-
*/
|
|
12
|
-
weight?: number;
|
|
13
|
-
extensions?: {
|
|
14
|
-
[name: string]: any;
|
|
15
|
-
};
|
|
16
|
-
extras?: any;
|
|
17
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Constraint } from './Constraint';
|
|
2
|
-
/**
|
|
3
|
-
* glTF extension that defines a node constraint.
|
|
4
|
-
*/
|
|
5
|
-
export interface VRMCNodeConstraint {
|
|
6
|
-
/**
|
|
7
|
-
* Specification version of VRMC_node_constraint
|
|
8
|
-
*/
|
|
9
|
-
specVersion: '1.0' | '1.0-beta';
|
|
10
|
-
constraint: Constraint;
|
|
11
|
-
extensions?: {
|
|
12
|
-
[name: string]: any;
|
|
13
|
-
};
|
|
14
|
-
extras?: any;
|
|
15
|
-
}
|
package/ts3.4/types/index.d.ts
DELETED