soonspacejs 2.5.6 → 2.5.8

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.5.6",
3
+ "version": "2.5.8",
4
4
  "homepage": "http://www.xwbuilders.com:8800/",
5
5
  "description": "soonspacejs 2.x",
6
6
  "module": "./dist/index.esm.js",
@@ -25,5 +25,5 @@
25
25
  "@tweenjs/tween.js": "^18.6.4",
26
26
  "@types/three": "0.141.0"
27
27
  },
28
- "gitHead": "957a3d128884eb226fd9072fbdedd41a52f2563d"
28
+ "gitHead": "33b04f92e411652814164fbfbc0c7ac2a9b33cad"
29
29
  }
@@ -94,7 +94,6 @@ interface TopologyNodeGraph {
94
94
  name: string;
95
95
  };
96
96
  passable: number;
97
- length: number;
98
97
  enable?: boolean;
99
98
  restrict?: number;
100
99
  }
@@ -14,10 +14,8 @@ declare class CameraManager {
14
14
  removeCamera(key: string): boolean;
15
15
  setCurrentCamera(camera: PerspectiveCamera): void;
16
16
  getMainCamera(): PerspectiveCamera;
17
- getCameraViewpoint(): CameraViewpointData;
18
- setCameraViewpoint(data: CameraViewpointData): void;
19
- getCameraTargetView(): CameraTargetViewData | null;
20
- setCameraTargetView(data: CameraTargetViewData): void;
17
+ getCameraViewpoint(): CameraViewpointData | CameraTargetViewData;
18
+ setCameraViewpoint(data: CameraViewpointData | CameraTargetViewData): void;
21
19
  moveTo(position: Position, options?: AnimationOptions): Promise<void>;
22
20
  rotateTo(rotation: Euler, options?: AnimationOptions): Promise<void>;
23
21
  flyTo(position: Position, rotation?: FlyToViewpoint | Rotation | Euler, options?: AnimationOptions): Promise<void>;
package/types/index.d.ts CHANGED
@@ -282,19 +282,19 @@ export declare class SoonSpace {
282
282
  /**
283
283
  * 获取当前相机视角数据(free)
284
284
  */
285
- getCameraViewpoint(): CameraViewpointData;
285
+ getCameraViewpoint(): CameraViewpointData | CameraTargetViewData;
286
286
  /**
287
287
  * 设置相机视角数据(free)
288
288
  */
289
- setCameraViewpoint(data: CameraViewpointData): void;
289
+ setCameraViewpoint(data: CameraViewpointData | CameraTargetViewData): void;
290
290
  /**
291
291
  * 获取当前相机视角数据(orbit)
292
292
  */
293
- getCameraTargetView(): CameraTargetViewData | null;
293
+ getCameraTargetView(): CameraViewpointData | CameraTargetViewData;
294
294
  /**
295
295
  * 设置相机视角数据(orbit)
296
296
  */
297
- setCameraTargetView(data: CameraTargetViewData): void;
297
+ setCameraTargetView(data: CameraViewpointData | CameraTargetViewData): void;
298
298
  /**
299
299
  * 相机飞向
300
300
  * @param position