iflow-engine 2.1.0 → 2.2.0
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/iflow-engine.es.js
CHANGED
|
@@ -49287,7 +49287,7 @@ class CT {
|
|
|
49287
49287
|
*/
|
|
49288
49288
|
async loadModel(e, t = {}) {
|
|
49289
49289
|
if (!e.includes(".json"))
|
|
49290
|
-
Mu(e
|
|
49290
|
+
Mu(e, (n) => {
|
|
49291
49291
|
const i = JSON.parse(n);
|
|
49292
49292
|
this.engine.dwgData = i, this.data = i, this.buildScene(i), this.engine.fitToView(), this.engine.layerManager._loadLayers();
|
|
49293
49293
|
});
|
|
@@ -57700,7 +57700,7 @@ class I4 {
|
|
|
57700
57700
|
init() {
|
|
57701
57701
|
this.container.innerHTML = "", this.wrapper = document.createElement("div"), this.wrapper.className = "bim-engine-wrapper", this.container.appendChild(this.wrapper);
|
|
57702
57702
|
const e = document.createElement("div");
|
|
57703
|
-
e.className = "bim-engine-version", e.textContent = "v2.
|
|
57703
|
+
e.className = "bim-engine-version", e.textContent = "v2.2.0", 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 iA(this.wrapper, this.registry), this.dialog = new O0(this.wrapper, this.registry), this.toolbar = new N0(this.wrapper, this.registry), this.buttonGroup = new B0(this.wrapper, this.registry), this.rightKey = new b0(this.wrapper, this.registry), this.constructTreeBtn = new cA(this.wrapper, this.registry), this.measure = new dA(this.registry), this.sectionPlane = new pA(this.registry), this.sectionAxis = new mA(this.registry), this.sectionBox = new xA(this.registry), this.walkControl = new _A(this.registry), this.walkControl.init(), this.engineInfo = new MA(this.registry), this.engineInfo.init(), this.registry.engine3d = this.engine, this.registry.dialog = this.dialog, this.registry.toolbar = this.toolbar, this.registry.buttonGroup = this.buttonGroup, this.registry.rightKey = this.rightKey, this.registry.constructTree = this.constructTreeBtn, 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 PA(this.registry), this.registry.componentDetail = this.componentDetail, this.componentDetail.init(), this.aiChat = new LA(this.registry), this.registry.aiChat = this.aiChat, this.aiChat.init(), this.setting = new TA(this.registry), this.registry.setting = this.setting, this.setting.init(), this.updateTheme(tt.getTheme()), tt.subscribe((t) => {
|
|
57704
57704
|
this.updateTheme(t);
|
|
57705
57705
|
});
|
|
57706
57706
|
}
|