vis-core 0.33.19 → 0.33.21

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
@@ -367,11 +367,12 @@ declare class Base_3 extends Camera {
367
367
  private prefabAssets;
368
368
  private prefabMaterials;
369
369
  private prefabOperations;
370
- /** Inspect SDK-enabled definitions without creating scene objects or resources. */
370
+ /** Inspect Prefab definitions without creating scene objects or resources. */
371
371
  getPrefabLibrary(): PrefabAsset[];
372
372
  /** Internal: Update definitions for future instances without rebuilding live content. */
373
373
  setPrefabLibrary(assets?: readonly PrefabAsset[], materials?: MaterialAsset[]): void;
374
- instantiatePrefab(keyOrAssetId: string, options?: InstantiatePrefabOptions): Promise<BaseObject>;
374
+ /** Instantiate by the unique asset name. */
375
+ instantiatePrefab(name: string, options?: InstantiatePrefabOptions): Promise<BaseObject>;
375
376
  private cancelPrefabOperations;
376
377
  constructor(options: BaseOptions);
377
378
  getMaterialGroup(group: string): Record<string, _THREE.Material<_THREE.MaterialEventMap>> | null;
@@ -3249,7 +3250,7 @@ declare interface MapCityOptions extends MapOptions {
3249
3250
 
3250
3251
  export declare interface MapExportScope {
3251
3252
  rootAdcode: number;
3252
- maxLevel: 'province' | 'city' | 'district';
3253
+ maxLevel: MapTemplateLevel;
3253
3254
  }
3254
3255
 
3255
3256
  declare interface MapLabelStyle {
@@ -3383,6 +3384,10 @@ declare interface MapSceneBindings {
3383
3384
  cities: string[];
3384
3385
  }
3385
3386
 
3387
+ declare type MapTemplateLevel = typeof mapTemplateLevels[number];
3388
+
3389
+ declare const mapTemplateLevels: readonly ["world", "country", "province", "city", "district"];
3390
+
3386
3391
  export declare const MATERIAL_ASSET_ID = "_materialAssetId";
3387
3392
 
3388
3393
  export declare const MATERIAL_ASSET_REVISION = "_materialAssetRevision";
@@ -4604,10 +4609,9 @@ declare type PointsInput_2 = Vector3[] | Vector2_2[] | number[][] | number[];
4604
4609
 
4605
4610
  export declare interface PrefabAsset {
4606
4611
  id: string;
4612
+ /** Nonempty, trimmed, project-unique name used for SDK instantiation. */
4607
4613
  name: string;
4608
4614
  revision: number;
4609
- /** Stable public SDK identifier. Omit for assets used only by the editor. */
4610
- sdkKey?: string;
4611
4615
  /** Legacy business templates own complete material snapshots, without promoting scene assets. */
4612
4616
  materialMode?: 'embedded';
4613
4617
  snapshot: Record<string, any>;
@@ -4984,13 +4988,13 @@ export declare interface RuntimeAssetCatalog {
4984
4988
  scope?: MapExportScope;
4985
4989
  /** Explicit delivery contract; omitted only in older packages. */
4986
4990
  mapNavigation?: MapNavigation;
4987
- /** Enumerated interaction targets, including regions never opened in the editor. */
4991
+ /** Enumerated navigation targets, including regions never opened in the editor. */
4988
4992
  regions?: Record<string, number[]>;
4989
4993
  declaredSources?: string[];
4990
4994
  /** Explicitly deployed shared files; these sources are not stored inside the ZIP. */
4991
4995
  externalSources?: string[];
4992
4996
  mapDataMode?: 'bundled' | 'external';
4993
- /** Signed authorization restricted to the exported map interaction targets. */
4997
+ /** Signed authorization restricted to the exported map navigation targets. */
4994
4998
  mapSwitchKey?: string;
4995
4999
  projectId?: string;
4996
5000
  /** Runtime-only base for an unpacked deployment. ZIP imports contain data instead. */
@@ -5263,9 +5267,10 @@ export declare class SceneManager extends Event_2 {
5263
5267
  private getSceneByType;
5264
5268
  /** Inspect saved definitions without creating or pinning runtime materials. */
5265
5269
  getMaterialLibrary(): MaterialAsset[];
5266
- /** SDK-enabled definitions stay unloaded until explicitly instantiated. */
5270
+ /** Prefab definitions stay unloaded until explicitly instantiated. */
5267
5271
  getPrefabLibrary(): PrefabAsset[];
5268
- instantiatePrefab(keyOrAssetId: string, options?: SceneInstantiatePrefabOptions): Promise< BaseObject>;
5272
+ /** Instantiate by the unique asset name. */
5273
+ instantiatePrefab(name: string, options?: SceneInstantiatePrefabOptions): Promise< BaseObject>;
5269
5274
  /**
5270
5275
  * Update a saved asset and transactionally rebuild each affected cached page.
5271
5276
  * Reacquire Base/Object handles after this call: replaced pages are disposed.
@@ -5564,6 +5569,7 @@ export declare interface SceneTypeMap {
5564
5569
  export declare interface SceneViewportDocument {
5565
5570
  id: string;
5566
5571
  name: string;
5572
+ /** @deprecated Ignored by the runtime and removed on platform import/export. */
5567
5573
  interactions?: SceneInteraction[];
5568
5574
  cs?: Record<string, number[]>;
5569
5575
  csa?: string;
@@ -5951,7 +5957,7 @@ declare class UseMaterial extends PointerEvent_2 {
5951
5957
 
5952
5958
  declare type ValuesOf<T extends readonly any[]> = T[number];
5953
5959
 
5954
- export declare const VERSION = "0.33.19";
5960
+ export declare const VERSION = "0.33.21";
5955
5961
 
5956
5962
  declare interface Viewport {
5957
5963
  left: number;
@@ -5971,7 +5977,7 @@ export declare interface VisSceneDocument extends SceneDocumentMarker {
5971
5977
  scenes: SceneViewportDocument[];
5972
5978
  /** Schema 4: serializable definitions shared by explicit asset identity. */
5973
5979
  materialLibrary?: MaterialAsset[];
5974
- /** Reusable definitions. SDK-enabled assets are retained in deployment exports. */
5980
+ /** Reusable definitions retained in deployment exports and instantiated by name. */
5975
5981
  prefabLibrary?: PrefabAsset[];
5976
5982
  c?: Record<string, any>;
5977
5983
  d?: Record<string, any>;
@@ -5989,7 +5995,7 @@ export declare interface VisSceneManifest {
5989
5995
  materialLibrary?: MaterialAsset[];
5990
5996
  /** Manifest 5: media metadata keyed by native image URL. */
5991
5997
  assets?: MediaAssetManifest;
5992
- /** Reusable definitions. Only assets with sdkKey are available for SDK instantiation. */
5998
+ /** Reusable definitions, instantiated by their unique asset names. */
5993
5999
  prefabLibrary?: PrefabAsset[];
5994
6000
  c?: Record<string, any>;
5995
6001
  d?: Record<string, any>;