iflow-engine 2.5.3 → 2.5.4

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.
@@ -83738,6 +83738,16 @@ class uy extends os {
83738
83738
  registerHandler(e) {
83739
83739
  this.contextHandlers.push(e);
83740
83740
  }
83741
+ unregisterHandler(e) {
83742
+ this.contextHandlers = this.contextHandlers.filter((t) => t !== e);
83743
+ }
83744
+ clearHandlers(e = !0) {
83745
+ if (!e) {
83746
+ this.contextHandlers = [];
83747
+ return;
83748
+ }
83749
+ this.contextHandlers.length !== 0 && (this.contextHandlers = [this.contextHandlers[0]]);
83750
+ }
83741
83751
  /**
83742
83752
  * 显示菜单
83743
83753
  * @param x 横坐标
@@ -83960,6 +83970,55 @@ class L2 extends os {
83960
83970
  jumpToCamera(e) {
83961
83971
  return this.engineInstance ? this.engineInstance.jumpToCamera(e) : (console.warn("[EngineManager] 3D Engine not initialized."), !1);
83962
83972
  }
83973
+ getConstructTreeData() {
83974
+ return this.engineInstance ? {
83975
+ level: this.engineInstance.getLevelTreeData(),
83976
+ type: this.engineInstance.getTypeTreeData(),
83977
+ major: this.engineInstance.getMajorTreeData()
83978
+ } : (console.warn("[EngineManager] 3D Engine not initialized."), { level: [], type: [], major: [] });
83979
+ }
83980
+ getComponentProperties(e, t, i) {
83981
+ if (!this.engineInstance) {
83982
+ console.warn("[EngineManager] 3D Engine not initialized.");
83983
+ return;
83984
+ }
83985
+ this.engineInstance.getComponentProperties(e, t, i);
83986
+ }
83987
+ registerRightKeyHandler(e) {
83988
+ if (!this.rightKey) {
83989
+ console.warn("[EngineManager] RightKey manager not initialized.");
83990
+ return;
83991
+ }
83992
+ this.rightKey.registerHandler(e);
83993
+ }
83994
+ unregisterRightKeyHandler(e) {
83995
+ if (!this.rightKey) {
83996
+ console.warn("[EngineManager] RightKey manager not initialized.");
83997
+ return;
83998
+ }
83999
+ this.rightKey.unregisterHandler(e);
84000
+ }
84001
+ clearRightKeyHandlers(e = !0) {
84002
+ if (!this.rightKey) {
84003
+ console.warn("[EngineManager] RightKey manager not initialized.");
84004
+ return;
84005
+ }
84006
+ this.rightKey.clearHandlers(e);
84007
+ }
84008
+ showRightKeyMenu(e, t, i, n) {
84009
+ if (!this.rightKey) {
84010
+ console.warn("[EngineManager] RightKey manager not initialized.");
84011
+ return;
84012
+ }
84013
+ this.rightKey.showMenu(e, t, i, n);
84014
+ }
84015
+ hideRightKeyMenu() {
84016
+ if (!this.rightKey) {
84017
+ console.warn("[EngineManager] RightKey manager not initialized.");
84018
+ return;
84019
+ }
84020
+ this.rightKey.hide();
84021
+ }
83963
84022
  /** 销毁引擎管理器 */
83964
84023
  destroy() {
83965
84024
  this.engineInstance && (this.engineInstance.destroy(), this.engineInstance = null), this.rightKey && (this.rightKey.destroy(), this.rightKey = null), super.destroy();
@@ -90033,7 +90092,7 @@ class bH {
90033
90092
  init() {
90034
90093
  this.container.innerHTML = "", this.wrapper = document.createElement("div"), this.wrapper.className = "bim-engine-wrapper", this.container.appendChild(this.wrapper);
90035
90094
  const e = document.createElement("div");
90036
- e.className = "bim-engine-version", e.textContent = "v2.5.3", this.wrapper.appendChild(e), this.sizeEl = document.createElement("div"), this.sizeEl.className = "bim-engine-size", this.wrapper.appendChild(this.sizeEl), this.updateClientSizeDisplay(), this.bindSizeObserver(), this.registry.container = this.container, this.registry.wrapper = this.wrapper, this.engine = new L2(this.wrapper, this.registry), this.dialog = new gM(this.wrapper, this.registry), this.rightKey = new uy(this.wrapper, this.registry), this.bottomDock = new D2(this.wrapper, this.registry), this.registry.bottomDock = this.bottomDock, this.measureDock = new O2(this.registry), this.registry.measureDock = this.measureDock, this.measureDock.init(), this.sectionDock = new U2(this.registry), this.registry.sectionDock = this.sectionDock, this.sectionDock.init(), this.walkDock = new z2(this.registry), this.registry.walkDock = this.walkDock, this.walkDock.init(), this.radialToolbar = new I2(this.wrapper, this.registry), this.measure = new H2(this.registry), this.sectionPlane = new V2(this.registry), this.sectionAxis = new G2(this.registry), this.sectionBox = new W2(this.registry), this.walkControl = new X2(this.registry), this.walkControl.init(), this.engineInfo = new j2(this.registry), this.engineInfo.init(), this.registry.engine3d = this.engine, this.registry.dialog = this.dialog, this.registry.rightKey = this.rightKey, this.registry.radialToolbar = this.radialToolbar, this.registry.measure = this.measure, this.registry.sectionPlane = this.sectionPlane, this.registry.sectionAxis = this.sectionAxis, this.registry.sectionBox = this.sectionBox, this.registry.walkControl = this.walkControl, this.registry.engineInfo = this.engineInfo, this.componentDetail = new q2(this.registry), this.registry.componentDetail = this.componentDetail, this.componentDetail.init(), this.aiChat = new Z2(this.registry), this.registry.aiChat = this.aiChat, this.aiChat.init(), this.constructTreeBtn = new Y9(this.wrapper, this.registry), this.registry.constructTree = this.constructTreeBtn, this.setting = new ur(this.registry), this.registry.setting = this.setting, this.setting.init(), this.updateTheme(ct.getTheme()), ct.subscribe((t) => {
90095
+ e.className = "bim-engine-version", e.textContent = "v2.5.4", this.wrapper.appendChild(e), this.sizeEl = document.createElement("div"), this.sizeEl.className = "bim-engine-size", this.wrapper.appendChild(this.sizeEl), this.updateClientSizeDisplay(), this.bindSizeObserver(), this.registry.container = this.container, this.registry.wrapper = this.wrapper, this.engine = new L2(this.wrapper, this.registry), this.dialog = new gM(this.wrapper, this.registry), this.rightKey = new uy(this.wrapper, this.registry), this.bottomDock = new D2(this.wrapper, this.registry), this.registry.bottomDock = this.bottomDock, this.measureDock = new O2(this.registry), this.registry.measureDock = this.measureDock, this.measureDock.init(), this.sectionDock = new U2(this.registry), this.registry.sectionDock = this.sectionDock, this.sectionDock.init(), this.walkDock = new z2(this.registry), this.registry.walkDock = this.walkDock, this.walkDock.init(), this.radialToolbar = new I2(this.wrapper, this.registry), this.measure = new H2(this.registry), this.sectionPlane = new V2(this.registry), this.sectionAxis = new G2(this.registry), this.sectionBox = new W2(this.registry), this.walkControl = new X2(this.registry), this.walkControl.init(), this.engineInfo = new j2(this.registry), this.engineInfo.init(), this.registry.engine3d = this.engine, this.registry.dialog = this.dialog, this.registry.rightKey = this.rightKey, this.registry.radialToolbar = this.radialToolbar, this.registry.measure = this.measure, this.registry.sectionPlane = this.sectionPlane, this.registry.sectionAxis = this.sectionAxis, this.registry.sectionBox = this.sectionBox, this.registry.walkControl = this.walkControl, this.registry.engineInfo = this.engineInfo, this.componentDetail = new q2(this.registry), this.registry.componentDetail = this.componentDetail, this.componentDetail.init(), this.aiChat = new Z2(this.registry), this.registry.aiChat = this.aiChat, this.aiChat.init(), this.constructTreeBtn = new Y9(this.wrapper, this.registry), this.registry.constructTree = this.constructTreeBtn, this.setting = new ur(this.registry), this.registry.setting = this.setting, this.setting.init(), this.updateTheme(ct.getTheme()), ct.subscribe((t) => {
90037
90096
  this.updateTheme(t);
90038
90097
  });
90039
90098
  }
@@ -90128,7 +90187,7 @@ class MH {
90128
90187
  init() {
90129
90188
  this.container.innerHTML = "", this.wrapper = document.createElement("div"), this.wrapper.className = "bim-engine-wrapper", this.container.appendChild(this.wrapper);
90130
90189
  const e = document.createElement("div");
90131
- e.className = "bim-engine-version", e.textContent = "v2.5.3", this.wrapper.appendChild(e), this.sizeEl = document.createElement("div"), this.sizeEl.className = "bim-engine-size", this.wrapper.appendChild(this.sizeEl), this.updateClientSizeDisplay(), this.bindSizeObserver(), this.registry.container = this.container, this.registry.wrapper = this.wrapper, this.engine = new L2(this.wrapper, this.registry), this.dialog = new gM(this.wrapper, this.registry), this.rightKey = new uy(this.wrapper, this.registry), this.bottomDock = new D2(this.wrapper, this.registry), this.registry.bottomDock = this.bottomDock, this.registry.engine3d = this.engine, this.registry.dialog = this.dialog, this.registry.rightKey = this.rightKey, this.measureDock = new O2(this.registry), this.registry.measureDock = this.measureDock, this.measureDock.init(), this.sectionDock = new U2(this.registry), this.registry.sectionDock = this.sectionDock, this.sectionDock.init(), this.walkDock = new z2(this.registry), this.registry.walkDock = this.walkDock, this.walkDock.init(), this.radialToolbar = new I2(this.wrapper, this.registry), this.measure = new H2(this.registry), this.sectionPlane = new V2(this.registry), this.sectionAxis = new G2(this.registry), this.sectionBox = new W2(this.registry), this.walkControl = new X2(this.registry), this.walkControl.init(), this.engineInfo = new j2(this.registry), this.engineInfo.init(), this.registry.radialToolbar = this.radialToolbar, this.registry.measure = this.measure, this.registry.sectionPlane = this.sectionPlane, this.registry.sectionAxis = this.sectionAxis, this.registry.sectionBox = this.sectionBox, this.registry.walkControl = this.walkControl, this.registry.engineInfo = this.engineInfo, this.componentDetail = new q2(this.registry), this.registry.componentDetail = this.componentDetail, this.componentDetail.init(), this.aiChat = new Z2(this.registry), this.registry.aiChat = this.aiChat, this.aiChat.init(), this.setting = new ur(this.registry), this.registry.setting = this.setting, this.setting.init(), this.updateTheme(ct.getTheme()), this.unsubscribeTheme = ct.subscribe((t) => {
90190
+ e.className = "bim-engine-version", e.textContent = "v2.5.4", this.wrapper.appendChild(e), this.sizeEl = document.createElement("div"), this.sizeEl.className = "bim-engine-size", this.wrapper.appendChild(this.sizeEl), this.updateClientSizeDisplay(), this.bindSizeObserver(), this.registry.container = this.container, this.registry.wrapper = this.wrapper, this.engine = new L2(this.wrapper, this.registry), this.dialog = new gM(this.wrapper, this.registry), this.rightKey = new uy(this.wrapper, this.registry), this.bottomDock = new D2(this.wrapper, this.registry), this.registry.bottomDock = this.bottomDock, this.registry.engine3d = this.engine, this.registry.dialog = this.dialog, this.registry.rightKey = this.rightKey, this.measureDock = new O2(this.registry), this.registry.measureDock = this.measureDock, this.measureDock.init(), this.sectionDock = new U2(this.registry), this.registry.sectionDock = this.sectionDock, this.sectionDock.init(), this.walkDock = new z2(this.registry), this.registry.walkDock = this.walkDock, this.walkDock.init(), this.radialToolbar = new I2(this.wrapper, this.registry), this.measure = new H2(this.registry), this.sectionPlane = new V2(this.registry), this.sectionAxis = new G2(this.registry), this.sectionBox = new W2(this.registry), this.walkControl = new X2(this.registry), this.walkControl.init(), this.engineInfo = new j2(this.registry), this.engineInfo.init(), this.registry.radialToolbar = this.radialToolbar, this.registry.measure = this.measure, this.registry.sectionPlane = this.sectionPlane, this.registry.sectionAxis = this.sectionAxis, this.registry.sectionBox = this.sectionBox, this.registry.walkControl = this.walkControl, this.registry.engineInfo = this.engineInfo, this.componentDetail = new q2(this.registry), this.registry.componentDetail = this.componentDetail, this.componentDetail.init(), this.aiChat = new Z2(this.registry), this.registry.aiChat = this.aiChat, this.aiChat.init(), this.setting = new ur(this.registry), this.registry.setting = this.setting, this.setting.init(), this.updateTheme(ct.getTheme()), this.unsubscribeTheme = ct.subscribe((t) => {
90132
90191
  this.updateTheme(t);
90133
90192
  });
90134
90193
  }