vis-core 0.33.13 → 0.33.15

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
@@ -4287,6 +4287,7 @@ declare class Pencil {
4287
4287
  };
4288
4288
  initResizeObserver(): void;
4289
4289
  private userSetDprCache;
4290
+ private hasRenderableSize;
4290
4291
  private handeleResize;
4291
4292
  setDevicePixelRatio(userSetDprCache: number): void;
4292
4293
  private viewPadding;
@@ -4677,7 +4678,12 @@ export declare function remapProjectMaterialIds<T extends VisSceneDocument>(docu
4677
4678
  * 复制一组场景并为它们分配新 ID,同时保持文档内部的场景跳转关系。
4678
4679
  * 用于把完整模板追加到另一个场景文档中。
4679
4680
  */
4680
- export declare function remapSceneDocumentIds(document: VisSceneDocument, createSceneId: (scene: SceneViewportDocument, index: number) => string): RemappedSceneDocument;
4681
+ export declare function remapSceneDocumentIds(document: VisSceneDocument, createSceneId: (scene: SceneViewportDocument, index: number) => string, options?: {
4682
+ /** Leave authored definitions in the library until the selected scene loads. */
4683
+ materialize?: boolean;
4684
+ /** Resolve cross-project material collisions in the same ownership pass. */
4685
+ occupiedMaterialIds?: Iterable<string>;
4686
+ }): RemappedSceneDocument;
4681
4687
 
4682
4688
  export declare const remapSceneMaterialReferencesCopy: <T>(scene: T, previous: string, next: string) => T;
4683
4689
 
@@ -4703,6 +4709,7 @@ declare class RendererController {
4703
4709
  readonly ready: Promise<void>;
4704
4710
  initialized: boolean;
4705
4711
  private disposed;
4712
+ private hasRenderableSize;
4706
4713
  private readonly pointSprites;
4707
4714
  options: Options_4;
4708
4715
  private displayScaleObserver?;
@@ -4870,6 +4877,8 @@ declare class ResourceScope {
4870
4877
  }
4871
4878
 
4872
4879
  declare interface RestoreBaseObjectOptions {
4880
+ /** Image loading boundaries, before native materials and scene objects are restored. */
4881
+ onResourceLoad?: (phase: 'start' | 'done') => void | Promise<void>;
4873
4882
  /** Transfer an exclusively owned snapshot between packages; restoration may mutate it. */
4874
4883
  consumeInput?: boolean;
4875
4884
  /** The caller must validate equality with the serialized resource definitions. */
@@ -5101,7 +5110,12 @@ export declare class SceneManager extends Event_2 {
5101
5110
  commitSceneStructure(prepared: PreparedSceneStructure): void;
5102
5111
  /** Commit scalar material history without accepting or copying caller object graphs. */
5103
5112
  patchMaterialDefinitions(assets: MaterialAsset[], scenes: Pick<SceneViewportDocument, 'id'>[], scope?: MaterialDefinitionScope): void;
5104
- load(documentOrUrl: VisSceneDocument | VisSceneManifest | string, hooks?: Record<string, any>): Promise<Base_3>;
5113
+ load(documentOrUrl: VisSceneDocument | VisSceneManifest | string, hooks?: Record<string, any>, options?: {
5114
+ /** Transfer a detached document to the manager; the caller must not mutate it afterwards. */
5115
+ consumeInput?: boolean;
5116
+ /** Restore a saved active scene without changing the project's entry scene. */
5117
+ sceneId?: string;
5118
+ }): Promise<Base_3>;
5105
5119
  /**
5106
5120
  * 创建一个没有快照输入的运行时页面,并在可选构建步骤完成后将其导出为
5107
5121
  * 标准单场景文档。主要供编辑器新建和旧模板迁移使用。
@@ -5396,18 +5410,22 @@ export declare interface SceneStructurePatch {
5396
5410
  set?: Partial<Record<SceneStructureGraphKey, any>>;
5397
5411
  unset?: SceneStructureGraphKey[];
5398
5412
  };
5413
+ /** Optional order lists every final row identity, including unchanged rows. */
5399
5414
  resources?: Partial<Record<SceneStructureResource, {
5400
5415
  upsert?: Record<string, any>[];
5401
5416
  remove?: string[];
5417
+ order?: string[];
5402
5418
  unset?: true;
5403
5419
  }>>;
5404
5420
  assets?: {
5405
5421
  upsert?: MaterialAsset[];
5406
5422
  remove?: string[];
5423
+ order?: string[];
5407
5424
  };
5408
5425
  prefabs?: {
5409
5426
  upsert?: PrefabAsset[];
5410
5427
  remove?: string[];
5428
+ order?: string[];
5411
5429
  };
5412
5430
  }
5413
5431
 
@@ -5809,7 +5827,7 @@ declare class UseMaterial extends PointerEvent_2 {
5809
5827
 
5810
5828
  declare type ValuesOf<T extends readonly any[]> = T[number];
5811
5829
 
5812
- export declare const VERSION = "0.33.13";
5830
+ export declare const VERSION = "0.33.15";
5813
5831
 
5814
5832
  declare interface Viewport {
5815
5833
  left: number;