iflow-engine 2.5.8 → 2.5.9
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
|
@@ -59436,10 +59436,10 @@ class N6 {
|
|
|
59436
59436
|
enabled: !0,
|
|
59437
59437
|
// AO 采样半径。推荐范围:0.1 ~ 2.0。
|
|
59438
59438
|
// 越大遮蔽范围越广,但容易发灰、丢细节;对性能有轻到中等影响。
|
|
59439
|
-
radius: 0.
|
|
59439
|
+
radius: 0.3,
|
|
59440
59440
|
// 深度厚度容差。推荐范围:0.5 ~ 4.0。
|
|
59441
59441
|
// 越大越容易把相邻表面视为同一片几何体,主要影响观感,对性能影响很小。
|
|
59442
|
-
thickness:
|
|
59442
|
+
thickness: 1,
|
|
59443
59443
|
// 半径内采样衰减指数。推荐范围:1.0 ~ 2.5。
|
|
59444
59444
|
// 越大越偏向近处采样,主要影响 AO 分布,对性能影响很小。
|
|
59445
59445
|
distanceExponent: 1,
|
|
@@ -59448,16 +59448,17 @@ class N6 {
|
|
|
59448
59448
|
distanceFallOff: 1,
|
|
59449
59449
|
// AO 强度。推荐范围:0.8 ~ 2.0。
|
|
59450
59450
|
// 1 为原始强度,>1 会更重;只影响最终混合强度,对性能几乎无影响。
|
|
59451
|
-
scale:
|
|
59451
|
+
scale: 3,
|
|
59452
59452
|
// 采样数。推荐范围:4 ~ 16,移动端建议 4 ~ 8,桌面端建议 8 ~ 12。
|
|
59453
59453
|
// 越大越平滑,但 GPU 开销越高;这是 GTAO 最直接的性能开关之一。
|
|
59454
|
-
samples:
|
|
59454
|
+
samples: 16,
|
|
59455
59455
|
// 内部分辨率缩放。推荐范围:0.5 ~ 1.0。
|
|
59456
59456
|
// <1 能显著省性能,但会更糊;这是 GTAO 另一个最直接的性能开关。
|
|
59457
59457
|
resolutionScale: 0.45,
|
|
59458
59458
|
// 是否依赖时间域滤波。建议默认 false,仅在配合 TRAA 时考虑开启。
|
|
59459
59459
|
// 开启后噪点更少,但会引入时间稳定性问题;对性能影响小,但会增加系统复杂度。
|
|
59460
|
-
useTemporalFiltering: !1
|
|
59460
|
+
useTemporalFiltering: !1,
|
|
59461
|
+
screenSpaceRadius: !1
|
|
59461
59462
|
}), this.applyClippingToAmbientOcclusionPass(this.gtaoPass), this.composer.addPass(this.gtaoPass), this.ssaoPass = new Ys(i, n, e, t), this.ssaoPass.kernelRadius = 8, this.ssaoPass.minDistance = 5e-3, this.ssaoPass.maxDistance = 0.1, this.ssaoPass.output = Ys.OUTPUT.Default, this.ssaoPass.enabled = !1, this.applyClippingToAmbientOcclusionPass(this.ssaoPass), this.composer.addPass(this.ssaoPass), this.saturationPass = new eu(D6), this.saturationPass.uniforms.saturation.value = 1.3, this.saturationPass.uniforms.contrast.value = 1.1, this.saturationPass.enabled = !1, this.composer.addPass(this.saturationPass), this.outputPass = new L6(), this.outputPass.enabled = !1, this.composer.addPass(this.outputPass), this.fxaaPass = new eu(I6), this.fxaaPass.material.uniforms.resolution.value.x = 1 / (e * a), this.fxaaPass.material.uniforms.resolution.value.y = 1 / (t * a), this.fxaaPass.enabled = !1, this.composer.addPass(this.fxaaPass);
|
|
59462
59463
|
}
|
|
59463
59464
|
}
|
|
@@ -66125,7 +66126,14 @@ async function _U(r, e, t, i) {
|
|
|
66125
66126
|
const d = a[h];
|
|
66126
66127
|
for (let u = 0; u < d.length; u++) {
|
|
66127
66128
|
const v = d[u];
|
|
66128
|
-
v.glb = h, o.nodesMap.has(v.id) === !1
|
|
66129
|
+
if (v.glb = h, o.nodesMap.has(v.id) === !1)
|
|
66130
|
+
o.nodesMap.set(v.id, { infos: [v] });
|
|
66131
|
+
else {
|
|
66132
|
+
if (!o.nodesMap.get(v.id).infos)
|
|
66133
|
+
continue;
|
|
66134
|
+
o.nodesMap.get(v.id).infos.push(v);
|
|
66135
|
+
}
|
|
66136
|
+
(u + 1) % PM === 0 && (l = await ar(r, i, l));
|
|
66129
66137
|
}
|
|
66130
66138
|
const p = await oU(n, [`/${h}.glb`, `${h}.glb`, h + ".glb"]);
|
|
66131
66139
|
if (p == null) {
|
|
@@ -66354,7 +66362,7 @@ class RU {
|
|
|
66354
66362
|
e.shadow.camera.left = -t, e.shadow.camera.right = t, e.shadow.camera.top = t, e.shadow.camera.bottom = -t, e.shadow.radius = 2;
|
|
66355
66363
|
const i = new Fr(16777215, 2);
|
|
66356
66364
|
this.engine.scene.add(e), this.engine.scene.add(i), this.engine.scene.dirLight = i;
|
|
66357
|
-
const n = new bl(16777215,
|
|
66365
|
+
const n = new bl(16777215, 2);
|
|
66358
66366
|
this.engine.scene.add(n);
|
|
66359
66367
|
}
|
|
66360
66368
|
}
|
|
@@ -69551,7 +69559,7 @@ function gk(r) {
|
|
|
69551
69559
|
if (f != null && f.includes(m))
|
|
69552
69560
|
continue;
|
|
69553
69561
|
let y = r.models.find((x) => x.url == l.url).nodesMap.get(m);
|
|
69554
|
-
y != null && !y.instance && y.infos.map((x) => x.mesh).forEach((x) => {
|
|
69562
|
+
y != null && !y.instance && y.infos != null && y.infos.map((x) => x.mesh).forEach((x) => {
|
|
69555
69563
|
n.push(x);
|
|
69556
69564
|
});
|
|
69557
69565
|
}
|
|
@@ -69565,7 +69573,7 @@ function gk(r) {
|
|
|
69565
69573
|
if (y != null && y.includes(m))
|
|
69566
69574
|
continue;
|
|
69567
69575
|
let x = r.models.find((_) => _.url == l.url).nodesMap.get(m);
|
|
69568
|
-
x != null && !x.instance && x.infos.map((_) => _.mesh).forEach((_) => {
|
|
69576
|
+
x != null && !x.instance && x.infos != null && x.infos.map((_) => _.mesh).forEach((_) => {
|
|
69569
69577
|
n.push(_);
|
|
69570
69578
|
});
|
|
69571
69579
|
}
|
|
@@ -76051,7 +76059,7 @@ class d7 {
|
|
|
76051
76059
|
// 业务数据
|
|
76052
76060
|
models = [];
|
|
76053
76061
|
reactBoundingClientRect = { left: 0, top: 0 };
|
|
76054
|
-
version = "3.4.
|
|
76062
|
+
version = "3.4.9";
|
|
76055
76063
|
versionEl = null;
|
|
76056
76064
|
// 引擎容器
|
|
76057
76065
|
container;
|
|
@@ -88047,7 +88055,7 @@ class iB {
|
|
|
88047
88055
|
init() {
|
|
88048
88056
|
this.container.innerHTML = "", this.wrapper = document.createElement("div"), this.wrapper.className = "bim-engine-wrapper", this.container.appendChild(this.wrapper);
|
|
88049
88057
|
const e = document.createElement("div");
|
|
88050
|
-
e.className = "bim-engine-version", e.textContent = "v2.5.
|
|
88058
|
+
e.className = "bim-engine-version", e.textContent = "v2.5.9", 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 WM(this.wrapper, this.registry), this.dialog = new zx(this.wrapper, this.registry), this.rightKey = new dv(this.wrapper, this.registry), this.bottomDock = new jM(this.wrapper, this.registry), this.registry.bottomDock = this.bottomDock, this.measureDock = new YM(this.registry), this.registry.measureDock = this.measureDock, this.measureDock.init(), this.sectionDock = new KM(this.registry), this.registry.sectionDock = this.sectionDock, this.sectionDock.init(), this.walkDock = new QM(this.registry), this.registry.walkDock = this.walkDock, this.walkDock.init(), this.radialToolbar = new XM(this.wrapper, this.registry), this.measure = new eS(this.registry), this.sectionPlane = new tS(this.registry), this.sectionAxis = new iS(this.registry), this.sectionBox = new nS(this.registry), this.walkControl = new sS(this.registry), this.walkControl.init(), this.engineInfo = new rS(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 aS(this.registry), this.registry.componentDetail = this.componentDetail, this.componentDetail.init(), this.aiChat = new oS(this.registry), this.registry.aiChat = this.aiChat, this.aiChat.init(), this.constructTreeBtn = new RO(this.wrapper, this.registry), this.registry.constructTree = this.constructTreeBtn, this.setting = new Ws(this.registry), this.registry.setting = this.setting, this.setting.init(), this.updateTheme(ht.getTheme()), ht.subscribe((t) => {
|
|
88051
88059
|
this.updateTheme(t);
|
|
88052
88060
|
});
|
|
88053
88061
|
}
|
|
@@ -88142,7 +88150,7 @@ class nB {
|
|
|
88142
88150
|
init() {
|
|
88143
88151
|
this.container.innerHTML = "", this.wrapper = document.createElement("div"), this.wrapper.className = "bim-engine-wrapper", this.container.appendChild(this.wrapper);
|
|
88144
88152
|
const e = document.createElement("div");
|
|
88145
|
-
e.className = "bim-engine-version", e.textContent = "v2.5.
|
|
88153
|
+
e.className = "bim-engine-version", e.textContent = "v2.5.9", 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 WM(this.wrapper, this.registry), this.dialog = new zx(this.wrapper, this.registry), this.rightKey = new dv(this.wrapper, this.registry), this.bottomDock = new jM(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 YM(this.registry), this.registry.measureDock = this.measureDock, this.measureDock.init(), this.sectionDock = new KM(this.registry), this.registry.sectionDock = this.sectionDock, this.sectionDock.init(), this.walkDock = new QM(this.registry), this.registry.walkDock = this.walkDock, this.walkDock.init(), this.radialToolbar = new XM(this.wrapper, this.registry), this.measure = new eS(this.registry), this.sectionPlane = new tS(this.registry), this.sectionAxis = new iS(this.registry), this.sectionBox = new nS(this.registry), this.walkControl = new sS(this.registry), this.walkControl.init(), this.engineInfo = new rS(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 aS(this.registry), this.registry.componentDetail = this.componentDetail, this.componentDetail.init(), this.aiChat = new oS(this.registry), this.registry.aiChat = this.aiChat, this.aiChat.init(), this.setting = new Ws(this.registry), this.registry.setting = this.setting, this.setting.init(), this.updateTheme(ht.getTheme()), this.unsubscribeTheme = ht.subscribe((t) => {
|
|
88146
88154
|
this.updateTheme(t);
|
|
88147
88155
|
});
|
|
88148
88156
|
}
|