vis-core 0.32.1 → 0.32.3

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.d.ts CHANGED
@@ -1239,6 +1239,12 @@ export declare class SceneManager extends Event_2 {
1239
1239
  loadMapRegion(documentOrUrl: VisSceneDocument | string, adcode: number, resolveScene: MapRegionSceneResolver, hooks?: Record<string, any>): Promise<Map_2>;
1240
1240
  private loadDocument;
1241
1241
  switchScene(sceneId: string, options?: SwitchSceneOptions, hooks?: Record<string, any>): Promise<Base | null>;
1242
+ /**
1243
+ * 恢复并缓存一个非活动场景,不改变当前场景、导航历史或相机。
1244
+ * 适合预制件场景:调用方可从返回实例取对象,再通过 instantiate({ target })
1245
+ * 直接实例化到当前场景。
1246
+ */
1247
+ preloadScene(sceneId: string, hooks?: Record<string, any>): Promise<Base>;
1242
1248
  /** 编辑器事务:在独立页面上修改参数并重建快照,成功后一起提交文档和实例。 */
1243
1249
  editScene(sceneId: string, edit: (scene: Base, definition: SceneViewportDocument) => Promise<SceneViewportDocument>, hooks?: Record<string, any>): Promise<Base>;
1244
1250
  back(hooks?: Record<string, any>): Promise<Base | null>;
@@ -1258,6 +1264,8 @@ export declare class SceneManager extends Event_2 {
1258
1264
  private getCurrentSceneByType;
1259
1265
  getScene<T extends SceneType>(sceneId: string, type: T): SceneTypeMap[T] | undefined;
1260
1266
  getScene(sceneId: string): Base | undefined;
1267
+ getSceneByName<T extends SceneType>(name: string, type: T): SceneTypeMap[T] | undefined;
1268
+ getSceneByName(name: string): Base | undefined;
1261
1269
  private getSceneByType;
1262
1270
  getDocument(): VisSceneDocument | undefined;
1263
1271
  private bindSceneInteractions;
@@ -1403,7 +1411,7 @@ export { TWEEN }
1403
1411
 
1404
1412
  export { Tween }
1405
1413
 
1406
- export declare const VERSION = "0.32.1";
1414
+ export declare const VERSION = "0.32.3";
1407
1415
 
1408
1416
  export declare interface VisSceneDocument extends SceneDocumentMarker {
1409
1417
  entrySceneId: string;