vis-core 0.33.1 → 0.33.2

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
@@ -479,6 +479,7 @@ export declare function createRuntimeSceneDocument(document: VisSceneDocument):
479
479
  /** Convert authored asset aliases to the native catalog expected by graph restoration. */
480
480
  export declare function createRuntimeSceneGraph(scene: SceneViewportDocument, options?: {
481
481
  omitPrefabPreviews?: boolean;
482
+ /* Excluded from this release type: consumeInput */
482
483
  }): Record<string, any>;
483
484
 
484
485
  declare class DirectionalLight extends DirectionalLightObject {
@@ -590,6 +591,8 @@ declare class Event_2 {
590
591
  dispose(): void;
591
592
  }
592
593
 
594
+ /* Excluded from this release type: expandOwnedSceneDocumentResources */
595
+
593
596
  /** Expand at the editor import boundary so independently edited scenes own their data. */
594
597
  export declare function expandSceneDocumentResources<T extends VisSceneDocument>(document: T): T;
595
598
 
@@ -1017,6 +1020,8 @@ export declare interface MaterialDefinitionScope {
1017
1020
  /** One explicit mapping from an asset's authored resource UUIDs to runtime resource UUIDs. */
1018
1021
  export declare function materializeAssetDefinition(asset: MaterialAsset, materialUuid?: string): Record<string, any>;
1019
1022
 
1023
+ /* Excluded from this release type: materializeOwnedProjectMaterials */
1024
+
1020
1025
  /** Mutate a detached working snapshot owned exclusively by the caller. */
1021
1026
  export declare function materializeOwnedSceneMaterials<T extends SceneViewportDocument>(scene: T, library?: MaterialAsset[]): T;
1022
1027
 
@@ -1140,10 +1145,11 @@ declare class Mountain extends GroupObject {
1140
1145
  }[];
1141
1146
  create(): Promise<void>;
1142
1147
  setNoise(geometry: THREE.BufferGeometry, image: HTMLImageElement, maxHeight?: number): void;
1143
- render(): void;
1144
1148
  rebuildFromScene(): void;
1145
1149
  }
1146
1150
 
1151
+ /* Excluded from this release type: normalizeOwnedProjectMaterials */
1152
+
1147
1153
  /** Bind serialized runtime materials and alias catalogs to authored assets. */
1148
1154
  export declare function normalizeProjectMaterials<T extends VisSceneDocument>(document: T): T;
1149
1155
 
@@ -1323,6 +1329,8 @@ declare class PlaneMap extends GroupObject {
1323
1329
  mergeSideArea: ExtrudePolygonObject | null;
1324
1330
  extrudelineArr?: LineObject[];
1325
1331
  splitPolygons: number;
1332
+ private standaloneHideMaterial?;
1333
+ private getHideMaterial;
1326
1334
  constructor(options: Options);
1327
1335
  create(): Promise<void>;
1328
1336
  private markGeneratedObjects;
@@ -1403,6 +1411,8 @@ export declare interface PrefabAsset {
1403
1411
  revision: number;
1404
1412
  /** Stable public SDK identifier. Omit for assets used only by the editor. */
1405
1413
  sdkKey?: string;
1414
+ /** Legacy business templates own complete material snapshots, without promoting scene assets. */
1415
+ materialMode?: 'embedded';
1406
1416
  snapshot: Record<string, any>;
1407
1417
  }
1408
1418
 
@@ -1571,6 +1581,11 @@ export declare class SceneManager extends Event_2 {
1571
1581
  private debugInteraction;
1572
1582
  private enablePickDebug;
1573
1583
  private disposeInactiveScenes;
1584
+ /** Retire inactive pages after the host accepts navigation; failures never undo the active page. */
1585
+ trimInactiveScenes(): unknown[];
1586
+ /** Update host navigation policy when lifecycle scripts change between scene activations. */
1587
+ setSceneCachePolicy(cacheScenes: boolean, maxCachedScenes?: number | undefined): void;
1588
+ private reportSceneRetirementErrors;
1574
1589
  constructor(options: SceneManagerInitOptions);
1575
1590
  private prepareScene;
1576
1591
  /** Publish one identity remap without exporting runtimes or copying other pages/resources. */
@@ -1655,8 +1670,6 @@ export declare class SceneManager extends Event_2 {
1655
1670
  switchScene(sceneId: string, options?: SwitchSceneOptions, hooks?: Record<string, any>): Promise<Base_2 | null>;
1656
1671
  /**
1657
1672
  * 恢复并缓存一个非活动场景,不改变当前场景、导航历史或相机。
1658
- * 适合预制件场景:调用方可从返回实例取对象,再通过 instantiate({ target })
1659
- * 直接实例化到当前场景。
1660
1673
  */
1661
1674
  preloadScene(sceneId: string, hooks?: Record<string, any>): Promise<Base_2>;
1662
1675
  /** 编辑器事务:在独立页面上修改参数并重建快照,成功后一起提交文档和实例。 */
@@ -1713,6 +1726,8 @@ export declare interface SceneManagerBehaviorOptions {
1713
1726
  prepareScene?: (scene: Base_2) => void;
1714
1727
  /** 是否保留非活动场景实例;编辑器可关闭以限制 GPU/内存占用。 */
1715
1728
  cacheScenes?: boolean;
1729
+ /** Pages retained after navigation, including the active page; oldest inactive pages retire first. */
1730
+ maxCachedScenes?: number;
1716
1731
  /** 自定义分包场景读取器;可从 IndexedDB 等非 HTTP 存储按需读取。 */
1717
1732
  loadScene?: (entry: SceneManifestEntry) => Promise<SceneViewportDocument>;
1718
1733
  }
@@ -1978,7 +1993,7 @@ declare interface TweenOptions {
1978
1993
 
1979
1994
  export declare function updateProjectMaterial<T extends VisSceneDocument>(document: T, assetId: string, patch: Partial<Pick<MaterialAsset, 'name' | 'material' | 'locked'>>): T;
1980
1995
 
1981
- export declare const VERSION = "0.33.1";
1996
+ export declare const VERSION = "0.33.2";
1982
1997
 
1983
1998
  export declare interface VisSceneDocument extends SceneDocumentMarker {
1984
1999
  entrySceneId: string;