iflow-engine-base 3.10.2 → 3.10.5
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/bim-engine-sdk.es.js +5 -5
- package/dist/bim-engine-sdk.umd.js +851 -770
- package/dist/chunks/{engine-2d-BqSrZIgs.js → engine-2d-CpqDbJe7.js} +1337 -1371
- package/dist/chunks/{engine-3d-CRi8gi4g.js → engine-3d-BhxVZ73W.js} +10278 -9019
- package/dist/chunks/{engine-720-SBj4j_-S.js → engine-720-BQiUK3zq.js} +23 -30
- package/dist/chunks/{engine-gaussian-Dm41ihjY.js → engine-gaussian-DMexkC3P.js} +128 -135
- package/dist/chunks/{engine-gis-CFrFKNSx.js → engine-gis-8vFpNVQi.js} +6046 -6053
- package/dist/chunks/{sdk-runtime-D7NH6c4x.js → sdk-runtime-BdLIZvCz.js} +3 -3
- package/dist/chunks/{three-vendor-DTqpDaJq.js → three-vendor-DHLrIver.js} +8127 -7648
- package/dist/index.d.ts +351 -34
- package/dist2d/dwg-preview.es.js +3567 -3599
- package/dist2d/dwg-preview.umd.js +27 -27
- package/distGaussian/gaussian.es.js +7 -17
- package/distGaussian/gaussian.umd.js +3 -3
- package/package.json +3 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as S,
|
|
2
|
-
import { C as T, W as w, r as
|
|
3
|
-
import { E as
|
|
4
|
-
class
|
|
1
|
+
import { n as S, as as R, h as E, aM as x, j as A, t as b, E as k, Q as F, p as I, W as D, a as v, T as f, i as P, K as m, V as p, b as y } from "./three-vendor-DHLrIver.js";
|
|
2
|
+
import { C as T, W as w, r as L } from "./sdk-runtime-BdLIZvCz.js";
|
|
3
|
+
import { E as z } from "./engine-2d-CpqDbJe7.js";
|
|
4
|
+
class _ {
|
|
5
5
|
scene;
|
|
6
6
|
panoramaSphere = null;
|
|
7
7
|
sphereRadius;
|
|
@@ -102,7 +102,7 @@ class V {
|
|
|
102
102
|
this.scene.clear();
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
class
|
|
105
|
+
class V {
|
|
106
106
|
camera;
|
|
107
107
|
minFov;
|
|
108
108
|
maxFov;
|
|
@@ -200,7 +200,7 @@ class K {
|
|
|
200
200
|
this.camera = null;
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
class
|
|
203
|
+
class K {
|
|
204
204
|
renderer;
|
|
205
205
|
container;
|
|
206
206
|
animationId = null;
|
|
@@ -329,7 +329,7 @@ class H {
|
|
|
329
329
|
this.pauseRendering(), this.container.contains(this.renderer.domElement) && this.container.removeChild(this.renderer.domElement), this.watermark.dispose(), this.renderer.dispose(), this.renderer.forceContextLoss(), this.onBeforeRenderCallback = void 0, this.onAfterRenderCallback = void 0;
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
|
-
class
|
|
332
|
+
class H {
|
|
333
333
|
camera;
|
|
334
334
|
domElement;
|
|
335
335
|
cameraModule;
|
|
@@ -543,12 +543,12 @@ class O {
|
|
|
543
543
|
this.domElement.removeEventListener("mousedown", this._onMouseDown), this.domElement.removeEventListener("mousemove", this._onMouseMove), this.domElement.removeEventListener("mouseup", this._onMouseUp), this.domElement.removeEventListener("mouseleave", this._onMouseUp), this.domElement.removeEventListener("wheel", this._onWheel), this.domElement.removeEventListener("touchstart", this._onTouchStart), this.domElement.removeEventListener("touchmove", this._onTouchMove), this.domElement.removeEventListener("touchend", this._onTouchEnd), this.onViewAngleChange = void 0;
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
|
-
class
|
|
546
|
+
class O {
|
|
547
547
|
controls;
|
|
548
548
|
domElement;
|
|
549
549
|
cameraModule;
|
|
550
550
|
constructor(e, t) {
|
|
551
|
-
this.cameraModule = e, this.domElement = t, this.controls = new
|
|
551
|
+
this.cameraModule = e, this.domElement = t, this.controls = new H(e, t);
|
|
552
552
|
}
|
|
553
553
|
/**
|
|
554
554
|
* 初始化控制模块
|
|
@@ -624,7 +624,7 @@ class X {
|
|
|
624
624
|
this.controls.dispose();
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
|
-
class
|
|
627
|
+
class X {
|
|
628
628
|
cache = /* @__PURE__ */ new Map();
|
|
629
629
|
loadingPromises = /* @__PURE__ */ new Map();
|
|
630
630
|
/**
|
|
@@ -702,13 +702,13 @@ class Z {
|
|
|
702
702
|
this.clear();
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
|
-
class
|
|
705
|
+
class Z {
|
|
706
706
|
textureCache;
|
|
707
707
|
currentUrl = null;
|
|
708
708
|
loadProgress = 0;
|
|
709
709
|
onProgressCallback;
|
|
710
710
|
constructor() {
|
|
711
|
-
this.textureCache = new
|
|
711
|
+
this.textureCache = new X();
|
|
712
712
|
}
|
|
713
713
|
/**
|
|
714
714
|
* 加载全景图纹理
|
|
@@ -889,7 +889,7 @@ class C {
|
|
|
889
889
|
}
|
|
890
890
|
}
|
|
891
891
|
var d = /* @__PURE__ */ ((a) => (a.ICON = "icon", a.TEXT = "text", a.LINK = "link", a))(d || {});
|
|
892
|
-
class
|
|
892
|
+
class W {
|
|
893
893
|
annotations = /* @__PURE__ */ new Map();
|
|
894
894
|
container;
|
|
895
895
|
annotationContainer;
|
|
@@ -1165,7 +1165,7 @@ class Y {
|
|
|
1165
1165
|
return `annotation-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
|
|
1166
1166
|
}
|
|
1167
1167
|
}
|
|
1168
|
-
class
|
|
1168
|
+
class Y {
|
|
1169
1169
|
listeners = /* @__PURE__ */ new Map();
|
|
1170
1170
|
/**
|
|
1171
1171
|
* 订阅事件
|
|
@@ -1235,7 +1235,7 @@ class U {
|
|
|
1235
1235
|
}
|
|
1236
1236
|
}
|
|
1237
1237
|
var r = /* @__PURE__ */ ((a) => (a.PanoramaLoadStart = "panorama-load-start", a.PanoramaLoadProgress = "panorama-load-progress", a.PanoramaLoaded = "panorama-loaded", a.PanoramaLoadError = "panorama-load-error", a.AnnotationClick = "annotation-click", a.AnnotationHover = "annotation-hover", a.AnnotationAdd = "annotation-add", a.AnnotationRemove = "annotation-remove", a.ViewAngleChanged = "view-angle-changed", a))(r || {});
|
|
1238
|
-
class
|
|
1238
|
+
class N {
|
|
1239
1239
|
options;
|
|
1240
1240
|
// 核心模块(使用 definite assignment assertions)
|
|
1241
1241
|
sceneModule;
|
|
@@ -1249,8 +1249,7 @@ class j {
|
|
|
1249
1249
|
worldToScreen;
|
|
1250
1250
|
// 内部状态
|
|
1251
1251
|
isInitialized = !1;
|
|
1252
|
-
version =
|
|
1253
|
-
interactionMode = "standard";
|
|
1252
|
+
version = z;
|
|
1254
1253
|
constructor(e) {
|
|
1255
1254
|
this.options = e, this.initialize(e);
|
|
1256
1255
|
}
|
|
@@ -1274,28 +1273,28 @@ class j {
|
|
|
1274
1273
|
if (!n)
|
|
1275
1274
|
throw new Error(`Container with id "${t.containerId}" not found`);
|
|
1276
1275
|
try {
|
|
1277
|
-
this.eventModule = new
|
|
1276
|
+
this.eventModule = new Y(), this.sceneModule = new _(t.sphereRadius), this.cameraModule = new V(
|
|
1278
1277
|
n,
|
|
1279
1278
|
t.fov,
|
|
1280
1279
|
t.minFov,
|
|
1281
1280
|
t.maxFov
|
|
1282
|
-
), this.renderModule = new
|
|
1281
|
+
), this.renderModule = new K(n, !0), this.controlModule = new O(
|
|
1283
1282
|
this.cameraModule,
|
|
1284
1283
|
this.renderModule.getDomElement()
|
|
1285
1284
|
);
|
|
1286
1285
|
const i = this.controlModule.getControls();
|
|
1287
1286
|
i.enableZoom = t.enableZoom, i.enableRotate = t.enableRotate, i.setRotateSpeed(t.rotateSpeed), i.setZoomSpeed(t.zoomSpeed), i.setEnableDamping(t.enableDamping), i.setDampingFactor(t.dampingFactor), i.setZoomLimits(t.minFov, t.maxFov), i.setOnViewAngleChange((o, s) => {
|
|
1288
1287
|
this.eventModule.trigger(r.ViewAngleChanged, { theta: o, phi: s });
|
|
1289
|
-
}), this.panoramaLoader = new
|
|
1288
|
+
}), this.panoramaLoader = new Z(), this.worldToScreen = new w(
|
|
1290
1289
|
this.cameraModule.getCamera(),
|
|
1291
1290
|
this.renderModule.getRenderer(),
|
|
1292
1291
|
this.sceneModule.getScene()
|
|
1293
|
-
), this.annotationManager = new
|
|
1292
|
+
), this.annotationManager = new W(
|
|
1294
1293
|
n,
|
|
1295
1294
|
this.cameraModule.getCamera(),
|
|
1296
1295
|
this.renderModule.getRenderer(),
|
|
1297
1296
|
t.sphereRadius
|
|
1298
|
-
), this.
|
|
1297
|
+
), this.annotationManager.setOnClickAnnotation((o) => {
|
|
1299
1298
|
this.eventModule.trigger(r.AnnotationClick, {
|
|
1300
1299
|
id: o.id,
|
|
1301
1300
|
config: o.config,
|
|
@@ -1355,7 +1354,7 @@ class j {
|
|
|
1355
1354
|
* 通过 viewToken 解析全景资源地址,再复用现有全景加载逻辑。
|
|
1356
1355
|
*/
|
|
1357
1356
|
async loadPanoramaByViewToken(e) {
|
|
1358
|
-
const t = await
|
|
1357
|
+
const t = await L(
|
|
1359
1358
|
this.options,
|
|
1360
1359
|
e,
|
|
1361
1360
|
"720"
|
|
@@ -1524,12 +1523,6 @@ class j {
|
|
|
1524
1523
|
getVersion() {
|
|
1525
1524
|
return this.version;
|
|
1526
1525
|
}
|
|
1527
|
-
setInteractionMode(e) {
|
|
1528
|
-
this.interactionMode = _(e);
|
|
1529
|
-
}
|
|
1530
|
-
getInteractionMode() {
|
|
1531
|
-
return this.interactionMode;
|
|
1532
|
-
}
|
|
1533
1526
|
/**
|
|
1534
1527
|
* 销毁引擎
|
|
1535
1528
|
*/
|
|
@@ -1550,5 +1543,5 @@ class j {
|
|
|
1550
1543
|
}
|
|
1551
1544
|
}
|
|
1552
1545
|
export {
|
|
1553
|
-
|
|
1546
|
+
N as EngineKernel720
|
|
1554
1547
|
};
|