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.
@@ -1,7 +1,7 @@
1
- import { n as S, ao as R, h as E, aB 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-DTqpDaJq.js";
2
- import { C as T, W as w, r as z } from "./sdk-runtime-D7NH6c4x.js";
3
- import { E as L, n as _ } from "./engine-2d-BqSrZIgs.js";
4
- class V {
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 K {
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 H {
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 O {
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 X {
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 O(e, t);
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 Z {
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 W {
705
+ class Z {
706
706
  textureCache;
707
707
  currentUrl = null;
708
708
  loadProgress = 0;
709
709
  onProgressCallback;
710
710
  constructor() {
711
- this.textureCache = new Z();
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 Y {
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 U {
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 j {
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 = L;
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 U(), this.sceneModule = new V(t.sphereRadius), this.cameraModule = new K(
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 H(n, !0), this.controlModule = new X(
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 W(), this.worldToScreen = new w(
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 Y(
1292
+ ), this.annotationManager = new W(
1294
1293
  n,
1295
1294
  this.cameraModule.getCamera(),
1296
1295
  this.renderModule.getRenderer(),
1297
1296
  t.sphereRadius
1298
- ), this.setInteractionMode(e.interactionMode), this.annotationManager.setOnClickAnnotation((o) => {
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 z(
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
- j as EngineKernel720
1546
+ N as EngineKernel720
1554
1547
  };