@pixiv/types-vrmc-node-constraint-1.0 1.0.0-beta.3 → 1.0.0-beta.7
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixiv/types-vrmc-node-constraint-1.0",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.7",
|
|
4
4
|
"description": "Type definitions of VRMC_node_constraint 1.0 schema",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "pixiv",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"prettier --write"
|
|
34
34
|
]
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "9b630ce11c16406bdd852753ccd19c5c9f4a6595"
|
|
37
37
|
}
|
package/types/AimConstraint.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import type { ConstraintObjectSpace } from './ConstraintObjectSpace';
|
|
2
|
-
/**
|
|
3
|
-
* A constraint that rotates the node to face sources.
|
|
4
|
-
*/
|
|
5
|
-
export interface AimConstraint {
|
|
6
|
-
/**
|
|
7
|
-
* The index of the node constrains the node.
|
|
8
|
-
*/
|
|
9
|
-
source: number;
|
|
10
|
-
/**
|
|
11
|
-
* The source node will be evaluated in this space.
|
|
12
|
-
*/
|
|
13
|
-
sourceSpace?: ConstraintObjectSpace;
|
|
14
|
-
/**
|
|
15
|
-
* The destination node will be evaluated in this space.
|
|
16
|
-
*/
|
|
17
|
-
destinationSpace?: ConstraintObjectSpace;
|
|
18
|
-
/**
|
|
19
|
-
* An axis which faces the direction of its sources.
|
|
20
|
-
*/
|
|
21
|
-
aimVector?: [number, number, number];
|
|
22
|
-
/**
|
|
23
|
-
* An up axis of the constraint.
|
|
24
|
-
*/
|
|
25
|
-
upVector?: [number, number, number];
|
|
26
|
-
/**
|
|
27
|
-
* Axes be constrained by this constraint, in Yaw-Pitch order.
|
|
28
|
-
*/
|
|
29
|
-
freezeAxes?: [boolean, boolean];
|
|
30
|
-
/**
|
|
31
|
-
* The weight of the constraint.
|
|
32
|
-
*/
|
|
33
|
-
weight?: number;
|
|
34
|
-
}
|
|
1
|
+
import type { ConstraintObjectSpace } from './ConstraintObjectSpace';
|
|
2
|
+
/**
|
|
3
|
+
* A constraint that rotates the node to face sources.
|
|
4
|
+
*/
|
|
5
|
+
export interface AimConstraint {
|
|
6
|
+
/**
|
|
7
|
+
* The index of the node constrains the node.
|
|
8
|
+
*/
|
|
9
|
+
source: number;
|
|
10
|
+
/**
|
|
11
|
+
* The source node will be evaluated in this space.
|
|
12
|
+
*/
|
|
13
|
+
sourceSpace?: ConstraintObjectSpace;
|
|
14
|
+
/**
|
|
15
|
+
* The destination node will be evaluated in this space.
|
|
16
|
+
*/
|
|
17
|
+
destinationSpace?: ConstraintObjectSpace;
|
|
18
|
+
/**
|
|
19
|
+
* An axis which faces the direction of its sources.
|
|
20
|
+
*/
|
|
21
|
+
aimVector?: [number, number, number];
|
|
22
|
+
/**
|
|
23
|
+
* An up axis of the constraint.
|
|
24
|
+
*/
|
|
25
|
+
upVector?: [number, number, number];
|
|
26
|
+
/**
|
|
27
|
+
* Axes be constrained by this constraint, in Yaw-Pitch order.
|
|
28
|
+
*/
|
|
29
|
+
freezeAxes?: [boolean, boolean];
|
|
30
|
+
/**
|
|
31
|
+
* The weight of the constraint.
|
|
32
|
+
*/
|
|
33
|
+
weight?: number;
|
|
34
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare type ConstraintObjectSpace = 'model' | 'local';
|
|
1
|
+
export declare type ConstraintObjectSpace = 'model' | 'local';
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import type { ConstraintObjectSpace } from './ConstraintObjectSpace';
|
|
2
|
-
/**
|
|
3
|
-
* A constraint that links the position with sources.
|
|
4
|
-
*/
|
|
5
|
-
export interface PositionConstraint {
|
|
6
|
-
/**
|
|
7
|
-
* The index of the node constrains the node.
|
|
8
|
-
*/
|
|
9
|
-
source: number;
|
|
10
|
-
/**
|
|
11
|
-
* The source node will be evaluated in this space.
|
|
12
|
-
*/
|
|
13
|
-
sourceSpace?: ConstraintObjectSpace;
|
|
14
|
-
/**
|
|
15
|
-
* The destination node will be evaluated in this space.
|
|
16
|
-
*/
|
|
17
|
-
destinationSpace?: ConstraintObjectSpace;
|
|
18
|
-
/**
|
|
19
|
-
* Axes be constrained by this constraint, in X-Y-Z order.
|
|
20
|
-
*/
|
|
21
|
-
freezeAxes?: [boolean, boolean, boolean];
|
|
22
|
-
/**
|
|
23
|
-
* The weight of the constraint.
|
|
24
|
-
*/
|
|
25
|
-
weight?: number;
|
|
26
|
-
}
|
|
1
|
+
import type { ConstraintObjectSpace } from './ConstraintObjectSpace';
|
|
2
|
+
/**
|
|
3
|
+
* A constraint that links the position with sources.
|
|
4
|
+
*/
|
|
5
|
+
export interface PositionConstraint {
|
|
6
|
+
/**
|
|
7
|
+
* The index of the node constrains the node.
|
|
8
|
+
*/
|
|
9
|
+
source: number;
|
|
10
|
+
/**
|
|
11
|
+
* The source node will be evaluated in this space.
|
|
12
|
+
*/
|
|
13
|
+
sourceSpace?: ConstraintObjectSpace;
|
|
14
|
+
/**
|
|
15
|
+
* The destination node will be evaluated in this space.
|
|
16
|
+
*/
|
|
17
|
+
destinationSpace?: ConstraintObjectSpace;
|
|
18
|
+
/**
|
|
19
|
+
* Axes be constrained by this constraint, in X-Y-Z order.
|
|
20
|
+
*/
|
|
21
|
+
freezeAxes?: [boolean, boolean, boolean];
|
|
22
|
+
/**
|
|
23
|
+
* The weight of the constraint.
|
|
24
|
+
*/
|
|
25
|
+
weight?: number;
|
|
26
|
+
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import type { ConstraintObjectSpace } from './ConstraintObjectSpace';
|
|
2
|
-
/**
|
|
3
|
-
* A constraint that links the rotation with sources.
|
|
4
|
-
*/
|
|
5
|
-
export interface RotationConstraint {
|
|
6
|
-
/**
|
|
7
|
-
* The index of the node constrains the node.
|
|
8
|
-
*/
|
|
9
|
-
source: number;
|
|
10
|
-
/**
|
|
11
|
-
* The source node will be evaluated in this space.
|
|
12
|
-
*/
|
|
13
|
-
sourceSpace?: ConstraintObjectSpace;
|
|
14
|
-
/**
|
|
15
|
-
* The destination node will be evaluated in this space.
|
|
16
|
-
*/
|
|
17
|
-
destinationSpace?: ConstraintObjectSpace;
|
|
18
|
-
/**
|
|
19
|
-
* Axes be constrained by this constraint, in X-Y-Z order.
|
|
20
|
-
*/
|
|
21
|
-
freezeAxes?: [boolean, boolean, boolean];
|
|
22
|
-
/**
|
|
23
|
-
* The weight of the constraint.
|
|
24
|
-
*/
|
|
25
|
-
weight?: number;
|
|
26
|
-
}
|
|
1
|
+
import type { ConstraintObjectSpace } from './ConstraintObjectSpace';
|
|
2
|
+
/**
|
|
3
|
+
* A constraint that links the rotation with sources.
|
|
4
|
+
*/
|
|
5
|
+
export interface RotationConstraint {
|
|
6
|
+
/**
|
|
7
|
+
* The index of the node constrains the node.
|
|
8
|
+
*/
|
|
9
|
+
source: number;
|
|
10
|
+
/**
|
|
11
|
+
* The source node will be evaluated in this space.
|
|
12
|
+
*/
|
|
13
|
+
sourceSpace?: ConstraintObjectSpace;
|
|
14
|
+
/**
|
|
15
|
+
* The destination node will be evaluated in this space.
|
|
16
|
+
*/
|
|
17
|
+
destinationSpace?: ConstraintObjectSpace;
|
|
18
|
+
/**
|
|
19
|
+
* Axes be constrained by this constraint, in X-Y-Z order.
|
|
20
|
+
*/
|
|
21
|
+
freezeAxes?: [boolean, boolean, boolean];
|
|
22
|
+
/**
|
|
23
|
+
* The weight of the constraint.
|
|
24
|
+
*/
|
|
25
|
+
weight?: number;
|
|
26
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import type { AimConstraint } from './AimConstraint';
|
|
2
|
-
import type { PositionConstraint } from './PositionConstraint';
|
|
3
|
-
import type { RotationConstraint } from './RotationConstraint';
|
|
4
|
-
/**
|
|
5
|
-
* glTF extension that defines a node constraint.
|
|
6
|
-
*/
|
|
7
|
-
export interface VRMCNodeConstraint {
|
|
8
|
-
/**
|
|
9
|
-
* Specification version of VRMC_node_constraint
|
|
10
|
-
*/
|
|
11
|
-
specVersion: '1.0-draft';
|
|
12
|
-
position?: PositionConstraint;
|
|
13
|
-
rotation?: RotationConstraint;
|
|
14
|
-
aim?: AimConstraint;
|
|
15
|
-
extensions?: {
|
|
16
|
-
[name: string]: any;
|
|
17
|
-
};
|
|
18
|
-
extras?: any;
|
|
19
|
-
}
|
|
1
|
+
import type { AimConstraint } from './AimConstraint';
|
|
2
|
+
import type { PositionConstraint } from './PositionConstraint';
|
|
3
|
+
import type { RotationConstraint } from './RotationConstraint';
|
|
4
|
+
/**
|
|
5
|
+
* glTF extension that defines a node constraint.
|
|
6
|
+
*/
|
|
7
|
+
export interface VRMCNodeConstraint {
|
|
8
|
+
/**
|
|
9
|
+
* Specification version of VRMC_node_constraint
|
|
10
|
+
*/
|
|
11
|
+
specVersion: '1.0-draft';
|
|
12
|
+
position?: PositionConstraint;
|
|
13
|
+
rotation?: RotationConstraint;
|
|
14
|
+
aim?: AimConstraint;
|
|
15
|
+
extensions?: {
|
|
16
|
+
[name: string]: any;
|
|
17
|
+
};
|
|
18
|
+
extras?: any;
|
|
19
|
+
}
|
package/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type { AimConstraint } from './AimConstraint';
|
|
2
|
-
export type { ConstraintObjectSpace } from './ConstraintObjectSpace';
|
|
3
|
-
export type { PositionConstraint } from './PositionConstraint';
|
|
4
|
-
export type { RotationConstraint } from './RotationConstraint';
|
|
5
|
-
export type { VRMCNodeConstraint } from './VRMCNodeConstraint';
|
|
1
|
+
export type { AimConstraint } from './AimConstraint';
|
|
2
|
+
export type { ConstraintObjectSpace } from './ConstraintObjectSpace';
|
|
3
|
+
export type { PositionConstraint } from './PositionConstraint';
|
|
4
|
+
export type { RotationConstraint } from './RotationConstraint';
|
|
5
|
+
export type { VRMCNodeConstraint } from './VRMCNodeConstraint';
|