soonspacejs 2.8.5 → 2.8.6
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/dist/index.esm.js +2 -2
- package/package.json +2 -2
- package/types/index.d.ts +17 -22
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "soonspacejs",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.6",
|
|
4
4
|
"homepage": "http://www.xwbuilders.com:8800/",
|
|
5
5
|
"description": "soonspacejs 2.x",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"three": ">=0.152.2"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "342a359c333c305927c93ad9a9329a4aef8acab6"
|
|
32
32
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
import * as THREE from 'three';
|
|
10
10
|
import { Object3D, Vector3, Euler, Box3, AnimationClip, Light, Texture, Mesh, Skeleton } from 'three';
|
|
11
11
|
import type { Camera } from 'three';
|
|
12
|
-
import { Azimuth } from '@three3d/tools';
|
|
13
12
|
import * as shared from './Shared';
|
|
14
13
|
import Animation from './Animation';
|
|
15
14
|
import { PathAnimation, PathAnimationOptions } from './Animation/path-animation';
|
|
@@ -207,10 +206,6 @@ export declare class SoonSpace {
|
|
|
207
206
|
readonly viewport: Viewport;
|
|
208
207
|
readonly manager: Manager;
|
|
209
208
|
readonly plugins: Record<string, any>;
|
|
210
|
-
/**
|
|
211
|
-
* 方位判断
|
|
212
|
-
*/
|
|
213
|
-
readonly azimuth: Azimuth;
|
|
214
209
|
constructor(param: SoonSpaceConstructor);
|
|
215
210
|
/******/
|
|
216
211
|
/******/
|
|
@@ -1295,12 +1290,12 @@ export declare class SoonSpace {
|
|
|
1295
1290
|
*/
|
|
1296
1291
|
createFindObjectsInSphereNearPosition(radius: number, objects: Object3D[]): FindObjectsNearPosition;
|
|
1297
1292
|
/**
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1293
|
+
* 创建用于 查找路径附近的范围内的物体 的查找器
|
|
1294
|
+
*
|
|
1295
|
+
* @param points - 描述路径的点
|
|
1296
|
+
* @param radius - 描述查找半径
|
|
1297
|
+
* @returns 用于查找的函数
|
|
1298
|
+
*/
|
|
1304
1299
|
createFindObjectsNearPath(points: Vector3[], radius: number): FindNearbyObjects;
|
|
1305
1300
|
/**
|
|
1306
1301
|
* 创建路径动画
|
|
@@ -1343,22 +1338,22 @@ export declare class SoonSpace {
|
|
|
1343
1338
|
*/
|
|
1344
1339
|
createBonePathAnimation(model: Object3D, path: AnimationPath, options: CreateBonePathAnimationOptions): import("./Animation/createPathAnimation").BonePathAnimationInfo;
|
|
1345
1340
|
/**
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1341
|
+
* 为指定的 模型 创建其对应的链式骨骼模型
|
|
1342
|
+
* @param model
|
|
1343
|
+
* @param options
|
|
1344
|
+
* @returns
|
|
1345
|
+
*/
|
|
1351
1346
|
createChainSkeletalModel(model: Object3D, options: Omit<CreateChainSkeletalModelOptions, 'target'>): {
|
|
1352
1347
|
skeletalModel: THREE.Object3D<THREE.Event>;
|
|
1353
1348
|
skeleton: THREE.Skeleton;
|
|
1354
1349
|
};
|
|
1355
1350
|
/**
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1351
|
+
* 创建骨骼沿曲线路径运动的动画
|
|
1352
|
+
* @param model
|
|
1353
|
+
* @param skeleton
|
|
1354
|
+
* @param options
|
|
1355
|
+
* @returns
|
|
1356
|
+
*/
|
|
1362
1357
|
createPathAnimationForBones(model: Object3D, skeleton: Skeleton, options: Omit<CreateCurveAnimationClipForBonesOptions, 'target'>): AnimationOperate | undefined;
|
|
1363
1358
|
}
|
|
1364
1359
|
export default SoonSpace;
|