iflow-engine 1.4.1 → 1.5.1

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.
@@ -21,6 +21,10 @@ export type { EngineOptions, ModelLoadOptions };
21
21
  export declare class BimEngine {
22
22
  container: HTMLElement;
23
23
  private wrapper;
24
+ private sizeEl;
25
+ private resizeObserver;
26
+ private lastSyncedWidth;
27
+ private lastSyncedHeight;
24
28
  private registry;
25
29
  toolbar: ToolbarManager | null;
26
30
  constructTreeBtn: ConstructTreeManagerBtn | null;
@@ -37,6 +41,7 @@ export declare class BimEngine {
37
41
  componentDetail: ComponentDetailManager | null;
38
42
  aiChat: AiChatManager | null;
39
43
  setting: SettingDialogManager | null;
44
+ private readonly handleWindowResize;
40
45
  constructor(container: HTMLElement | string, options?: {
41
46
  locale?: LocaleType;
42
47
  theme?: ThemeType;
@@ -49,5 +54,9 @@ export declare class BimEngine {
49
54
  setCustomTheme(theme: ThemeConfig): void;
50
55
  private init;
51
56
  private updateTheme;
57
+ private updateClientSizeDisplay;
58
+ private syncEngineSize;
59
+ private bindSizeObserver;
60
+ private unbindSizeObserver;
52
61
  destroy(): void;
53
62
  }
@@ -105,7 +105,7 @@ export declare class Engine implements IBimComponent {
105
105
  * 调整渲染器尺寸
106
106
  * 容器大小变化时调用,自动更新渲染器、相机投影矩阵和后处理合成器
107
107
  */
108
- resize(): void;
108
+ resize(width?: number, height?: number): void;
109
109
  /**
110
110
  * 激活测量功能
111
111
  * @param mode 测量类型