soonspacejs 2.7.4 → 2.8.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "soonspacejs",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.1",
|
|
4
4
|
"homepage": "http://www.xwbuilders.com:8800/",
|
|
5
5
|
"description": "soonspacejs 2.x",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"three": ">=0.152.2"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "731d7f163e6bb022299e14f5809fd4df82ffe296"
|
|
30
30
|
}
|
|
@@ -21,7 +21,7 @@ export declare function formatAnimationPath(path: AnimationPath): {
|
|
|
21
21
|
points?: Vector3[] | undefined;
|
|
22
22
|
};
|
|
23
23
|
export type CreatePathAnimationOptions = VectorMembersToIVectors<Omit<CreateCurveAnimationClipOptions, 'target' | 'curve' | 'points'>>;
|
|
24
|
-
export declare function createPathAnimation(target: Object3D, path: AnimationPath, ssp: SoonSpace, options?: CreatePathAnimationOptions): AnimationOperate
|
|
24
|
+
export declare function createPathAnimation(target: Object3D, path: AnimationPath, ssp: SoonSpace, options?: CreatePathAnimationOptions): AnimationOperate;
|
|
25
25
|
export interface CreatePathAnimationActionForCameraOptions_Base {
|
|
26
26
|
/**
|
|
27
27
|
* 眼睛高度
|
|
@@ -29,25 +29,25 @@ export interface CreatePathAnimationActionForCameraOptions_Base {
|
|
|
29
29
|
eyeHeight?: number;
|
|
30
30
|
}
|
|
31
31
|
export type CreatePathAnimationActionForCameraOptions = CreatePathAnimationActionForCameraOptions_Base & CreatePathAnimationOptions;
|
|
32
|
-
export declare function createPathAnimationActionForCamera(camera: Camera, path: IVector3[] | Curve<Vector3> | Topology, ssp: SoonSpace, options?: CreatePathAnimationActionForCameraOptions): AnimationOperate
|
|
32
|
+
export declare function createPathAnimationActionForCamera(camera: Camera, path: IVector3[] | Curve<Vector3> | Topology, ssp: SoonSpace, options?: CreatePathAnimationActionForCameraOptions): AnimationOperate;
|
|
33
33
|
export type CreateBonePathAnimationOptions = VectorMembersToIVectors<Omit<BonePathAnimationOptions, 'mixer' | 'model'>>;
|
|
34
34
|
export type BonePathAnimationInfo = Omit<CreateBonePathAnimationResult, 'action'> & {
|
|
35
35
|
action: AnimationOperate;
|
|
36
36
|
};
|
|
37
37
|
/**
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
* 创建骨骼路径动画
|
|
39
|
+
* @param options
|
|
40
|
+
* @returns
|
|
41
|
+
*/
|
|
42
42
|
export declare function createBonePathAnimation(model: Object3D, path: AnimationPath, ssp: SoonSpace, options: CreateBonePathAnimationOptions): BonePathAnimationInfo;
|
|
43
43
|
/**
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
* 为指定的 模型 创建其对应的链式骨骼模型
|
|
45
|
+
* @param model
|
|
46
|
+
* @param options
|
|
47
|
+
* @returns
|
|
48
|
+
*/
|
|
49
49
|
export declare function createChainSkeletalModel(model: Object3D, options: Omit<CreateChainSkeletalModelOptions, 'target'>): {
|
|
50
|
-
skeletalModel: Object3D<import("three").Event
|
|
50
|
+
skeletalModel: Object3D<import("three").Event>;
|
|
51
51
|
skeleton: Skeleton;
|
|
52
52
|
};
|
|
53
53
|
/**
|
package/types/index.d.ts
CHANGED
|
@@ -1326,7 +1326,7 @@ export declare class SoonSpace {
|
|
|
1326
1326
|
* @param options
|
|
1327
1327
|
* @returns 返回 AnimationOperate,它是对 AnimationAction 的扩展
|
|
1328
1328
|
*/
|
|
1329
|
-
createPathAnimationAction(target: Object3D, path: AnimationPath, options: CreatePathAnimationOptions): AnimationOperate
|
|
1329
|
+
createPathAnimationAction(target: Object3D, path: AnimationPath, options: CreatePathAnimationOptions): AnimationOperate;
|
|
1330
1330
|
/**
|
|
1331
1331
|
* 创建相机动画
|
|
1332
1332
|
* @param path
|
|
@@ -1335,7 +1335,7 @@ export declare class SoonSpace {
|
|
|
1335
1335
|
*/
|
|
1336
1336
|
createPathAnimationActionForCamera(path: AnimationPath, options?: CreatePathAnimationActionForCameraOptions & {
|
|
1337
1337
|
camera?: Camera;
|
|
1338
|
-
}): AnimationOperate
|
|
1338
|
+
}): AnimationOperate;
|
|
1339
1339
|
/**
|
|
1340
1340
|
* 创建骨骼路径动画
|
|
1341
1341
|
* @param options
|
|
@@ -1349,7 +1349,7 @@ export declare class SoonSpace {
|
|
|
1349
1349
|
* @returns
|
|
1350
1350
|
*/
|
|
1351
1351
|
createChainSkeletalModel(model: Object3D, options: Omit<CreateChainSkeletalModelOptions, 'target'>): {
|
|
1352
|
-
skeletalModel: THREE.Object3D<THREE.Event
|
|
1352
|
+
skeletalModel: THREE.Object3D<THREE.Event>;
|
|
1353
1353
|
skeleton: THREE.Skeleton;
|
|
1354
1354
|
};
|
|
1355
1355
|
/**
|