@realsee/dnalogel 3.41.2 → 3.41.3

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.
Files changed (89) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/CruisePlugin/BaseController.d.ts +0 -2
  3. package/dist/CurrentPanoImagePlugin/Controller.d.ts +1 -0
  4. package/dist/base/BasePlugin.d.ts +2 -0
  5. package/dist/index.cjs.js +53 -53
  6. package/dist/index.js +3921 -3904
  7. package/dist/index.umd.js +48 -48
  8. package/dist/shared-utils/Utils/FiveUtil.d.ts +1 -0
  9. package/dist/shared-utils/five/FiveDomEvents.d.ts +1 -0
  10. package/dist/shared-utils/five/getFiveModel.d.ts +2 -0
  11. package/libs/AreaMakerPlugin/Controller.js +6 -4
  12. package/libs/AreaMakerPlugin/index.js +5 -3
  13. package/libs/AreaMakerPlugin/utils/Item.js +2 -2
  14. package/libs/CSS3DRenderPlugin/Controller.js +3 -2
  15. package/libs/CSS3DRenderPlugin/index.js +6 -5
  16. package/libs/CruisePlugin/BaseController.d.ts +0 -2
  17. package/libs/CruisePlugin/BaseController.js +36 -36
  18. package/libs/CruisePlugin/Move.js +5 -4
  19. package/libs/CruisePlugin/Work.js +5 -4
  20. package/libs/CruisePlugin/index.js +9 -8
  21. package/libs/CurrentPanoImagePlugin/Controller.d.ts +1 -0
  22. package/libs/CurrentPanoImagePlugin/Controller.js +13 -11
  23. package/libs/CurrentPanoImagePlugin/index.js +6 -4
  24. package/libs/GuideLinePlugin/Controller.js +7 -6
  25. package/libs/GuideLinePlugin/GuideLineItem.js +5 -4
  26. package/libs/GuideLinePlugin/GuideLineModeItem.js +5 -3
  27. package/libs/GuideLinePlugin/index.js +9 -8
  28. package/libs/ModelMakerPlugin/Controller.js +5 -3
  29. package/libs/ModelMakerPlugin/index.js +5 -3
  30. package/libs/ModelMakerPlugin/item/baseItem.js +3 -2
  31. package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
  32. package/libs/ModelMakerPlugin/item/polygonItem.js +3 -2
  33. package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
  34. package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +7 -6
  35. package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
  36. package/libs/ModelTVVideoPlugin/index.js +3 -2
  37. package/libs/Object3DHelperPlugin/Controller.js +16 -14
  38. package/libs/Object3DHelperPlugin/index.js +8 -6
  39. package/libs/PanoCompassPlugin/Controller.js +5 -3
  40. package/libs/PanoCompassPlugin/index.js +6 -4
  41. package/libs/PanoDoorLabelPlugin/BaseController.js +9 -7
  42. package/libs/PanoDoorLabelPlugin/Controller.js +5 -3
  43. package/libs/PanoDoorLabelPlugin/index.js +6 -4
  44. package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
  45. package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
  46. package/libs/PanoMeasurePlugin/Controller/EditController.js +4 -3
  47. package/libs/PanoMeasurePlugin/Controller/MixedController.js +35 -34
  48. package/libs/PanoMeasurePlugin/Controller/WatchController.js +50 -49
  49. package/libs/PanoMeasurePlugin/Controller/index.js +5 -3
  50. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -2
  51. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +4 -3
  52. package/libs/PanoMeasurePlugin/index.js +16 -14
  53. package/libs/PanoSpatialTagPlugin/Plugin.js +4 -3
  54. package/libs/PanoSpatialTagPlugin/index.js +1 -0
  55. package/libs/PanoTagPlugin/controller/TagCache.js +11 -9
  56. package/libs/PanoTagPlugin/controller/TagComputer.js +12 -10
  57. package/libs/PanoTagPlugin/controller/TagRender.js +5 -3
  58. package/libs/PanoTagPlugin/controller/TagUtil.js +5 -3
  59. package/libs/PanoTagPlugin/controller/index.js +8 -6
  60. package/libs/PanoTagPlugin/index.js +14 -12
  61. package/libs/PanoVideoPlugin/Controller.js +5 -3
  62. package/libs/PanoVideoPlugin/index.js +8 -6
  63. package/libs/PipelinePlugin/Controller.js +25 -23
  64. package/libs/PipelinePlugin/index.js +6 -4
  65. package/libs/base/BasePlugin.d.ts +2 -0
  66. package/libs/base/BasePlugin.js +14 -13
  67. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +14 -11
  68. package/libs/floorplan/MapviewFloorplanPlugin/index.js +7 -4
  69. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +5 -3
  70. package/libs/floorplan/ModelFloorplanPlugin/index.js +6 -4
  71. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +5 -3
  72. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +6 -4
  73. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +5 -3
  74. package/libs/floorplan/TopviewFloorplanPlugin/index.js +6 -4
  75. package/libs/index.js +128 -127
  76. package/libs/shared-utils/Utils/FiveUtil.d.ts +1 -0
  77. package/libs/shared-utils/Utils/FiveUtil.js +11 -7
  78. package/libs/shared-utils/five/FiveDomEvents.d.ts +1 -0
  79. package/libs/shared-utils/five/FiveDomEvents.js +46 -42
  80. package/libs/shared-utils/five/fiveModelLoad.js +26 -17
  81. package/libs/shared-utils/five/getFiveModel.d.ts +2 -0
  82. package/libs/shared-utils/five/getFiveModel.js +7 -0
  83. package/libs/shared-utils/five/getPosition.js +24 -23
  84. package/libs/shared-utils/logger.js +1 -1
  85. package/libs/shared-utils/tag.js +10 -9
  86. package/libs/shared-utils/three/getIntersect.js +19 -18
  87. package/package.json +1 -1
  88. package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +0 -2
  89. package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +0 -31
@@ -52,8 +52,10 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
52
52
  import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
53
53
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
54
54
  import "../../shared-utils/url/absoluteUrl.js";
55
- import "../../shared-utils/Utils/WorkUtil.js";
55
+ import "../../shared-utils/Utils/FiveUtil.js";
56
56
  import "../../shared-utils/Utils/BaseUtil.js";
57
+ import "../../shared-utils/Utils/WorkUtil.js";
58
+ import "../../shared-utils/five/getFiveModel.js";
57
59
  import "../../vendor/svelte/internal/index.js";
58
60
  import "../../CSS3DRenderPlugin/Controller.js";
59
61
  import "../../shared-utils/five/fiveModelLoad.js";
@@ -66,7 +68,7 @@ import "../../shared-utils/three/getPositionsByObjectFit.js";
66
68
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
67
69
  import "../../shared-utils/three/getNormal.js";
68
70
  import "../../shared-utils/five/calculateThreeMouse.js";
69
- class hi extends ne {
71
+ class Ti extends ne {
70
72
  constructor(e) {
71
73
  super(e);
72
74
  f(this, "tags", []);
@@ -370,5 +372,5 @@ class hi extends ne {
370
372
  }
371
373
  }
372
374
  export {
373
- hi as TagUtil
375
+ Ti as TagUtil
374
376
  };
@@ -67,9 +67,11 @@ import "./TagCache.js";
67
67
  import "../../base/BasePlugin.js";
68
68
  import "../../shared-utils/Subscribe.js";
69
69
  import "../../shared-utils/url/absoluteUrl.js";
70
- import "../../shared-utils/Utils/WorkUtil.js";
70
+ import "../../shared-utils/Utils/FiveUtil.js";
71
71
  import "../../shared-utils/Utils/BaseUtil.js";
72
+ import "../../shared-utils/Utils/WorkUtil.js";
72
73
  import "../../shared-utils/five/transformPosition.js";
74
+ import "../../shared-utils/five/getFiveModel.js";
73
75
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
74
76
  import "three/examples/jsm/renderers/CSS3DRenderer";
75
77
  import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
@@ -173,8 +175,8 @@ import "../Components/Common/TagPoint.js";
173
175
  import "../../shared-utils/three/GLTFLoader.js";
174
176
  import "@realsee/five/gltf-loader";
175
177
  import "../../shared-utils/animationFrame/index.js";
176
- const B = "Dnalogel-PanoTagPlugin", Gi = (d) => `${B}--${d}`;
177
- class Ni extends j {
178
+ const B = "Dnalogel-PanoTagPlugin", xi = (d) => `${B}--${d}`;
179
+ class zi extends j {
178
180
  constructor(e, t) {
179
181
  super(e);
180
182
  /** state */
@@ -624,7 +626,7 @@ class Ni extends j {
624
626
  }
625
627
  }
626
628
  export {
627
- Ni as PanoTagPluginController,
628
- Ni as default,
629
- Gi as pluginFlag
629
+ zi as PanoTagPluginController,
630
+ zi as default,
631
+ xi as pluginFlag
630
632
  };
@@ -1,7 +1,7 @@
1
1
  import r from "./controller/index.js";
2
- import { pluginFlag as St } from "./controller/index.js";
3
- import { defaultGlobalConfig as Vt } from "./typings/tag/TagConfig.js";
4
- import { ContentType as Xt, DimensionType as Yt, PointType as Zt } from "./Archive/deprecated.js";
2
+ import { pluginFlag as Vt } from "./controller/index.js";
3
+ import { defaultGlobalConfig as Xt } from "./typings/tag/TagConfig.js";
4
+ import { ContentType as Zt, DimensionType as _t, PointType as $t } from "./Archive/deprecated.js";
5
5
  import "three";
6
6
  import "@realsee/five";
7
7
  import "../vendor/object-assign-deep/objectAssignDeep.js";
@@ -44,9 +44,11 @@ import "./utils/normalPositionToPositions.js";
44
44
  import "./controller/TagCache.js";
45
45
  import "../base/BasePlugin.js";
46
46
  import "../shared-utils/url/absoluteUrl.js";
47
- import "../shared-utils/Utils/WorkUtil.js";
47
+ import "../shared-utils/Utils/FiveUtil.js";
48
48
  import "../shared-utils/Utils/BaseUtil.js";
49
+ import "../shared-utils/Utils/WorkUtil.js";
49
50
  import "../shared-utils/five/transformPosition.js";
51
+ import "../shared-utils/five/getFiveModel.js";
50
52
  import "../vendor/svelte/store/index.js";
51
53
  import "../vendor/svelte/internal/index.js";
52
54
  import "../shared-utils/device.js";
@@ -147,14 +149,14 @@ import "../shared-utils/animationFrame/BetterTween.js";
147
149
  import "../shared-utils/animationFrame/index.js";
148
150
  import "./utils/DebugUtil.js";
149
151
  import "../CruisePlugin/utils/sleep.js";
150
- const Ot = (o, t) => new r(o, t);
152
+ const Rt = (o, t) => new r(o, t);
151
153
  export {
152
- Xt as ContentType,
153
- Yt as DimensionType,
154
- Ot as PanoTagPlugin,
154
+ Zt as ContentType,
155
+ _t as DimensionType,
156
+ Rt as PanoTagPlugin,
155
157
  r as PanoTagPluginController,
156
- Zt as PointType,
157
- Ot as default,
158
- Vt as defaultGlobalConfig,
159
- St as pluginFlag
158
+ $t as PointType,
159
+ Rt as default,
160
+ Xt as defaultGlobalConfig,
161
+ Vt as pluginFlag
160
162
  };
@@ -37,10 +37,12 @@ import "animejs";
37
37
  import "../shared-utils/animationFrame/index.js";
38
38
  import "./utils/index.js";
39
39
  import "../shared-utils/url/absoluteUrl.js";
40
- import "../shared-utils/Utils/WorkUtil.js";
40
+ import "../shared-utils/Utils/FiveUtil.js";
41
41
  import "../shared-utils/Utils/BaseUtil.js";
42
+ import "../shared-utils/Utils/WorkUtil.js";
42
43
  import "../shared-utils/five/transformPosition.js";
43
- class X extends _ {
44
+ import "../shared-utils/five/getFiveModel.js";
45
+ class Z extends _ {
44
46
  constructor(r) {
45
47
  super(r);
46
48
  s(this, "controllerMap", /* @__PURE__ */ new Map());
@@ -183,5 +185,5 @@ class X extends _ {
183
185
  }
184
186
  }
185
187
  export {
186
- X as PanoVideoPluginController
188
+ Z as PanoVideoPluginController
187
189
  };
@@ -1,5 +1,5 @@
1
1
  import { PanoVideoPluginController as r } from "./Controller.js";
2
- import { typings as G } from "./typings/index.js";
2
+ import { typings as I } from "./typings/index.js";
3
3
  import "./VideoMeshController.js";
4
4
  import "./utils/shader.js";
5
5
  import "hammerjs";
@@ -26,12 +26,14 @@ import "../shared-utils/animationFrame/index.js";
26
26
  import "./utils/index.js";
27
27
  import "../base/BasePlugin.js";
28
28
  import "../shared-utils/url/absoluteUrl.js";
29
- import "../shared-utils/Utils/WorkUtil.js";
29
+ import "../shared-utils/Utils/FiveUtil.js";
30
30
  import "../shared-utils/Utils/BaseUtil.js";
31
+ import "../shared-utils/Utils/WorkUtil.js";
31
32
  import "../shared-utils/five/transformPosition.js";
32
- const D = (o) => new r(o);
33
+ import "../shared-utils/five/getFiveModel.js";
34
+ const F = (o) => new r(o);
33
35
  export {
34
- D as PanoVideoPlugin,
35
- G as PanoVideoPluginType,
36
- D as default
36
+ F as PanoVideoPlugin,
37
+ I as PanoVideoPluginType,
38
+ F as default
37
39
  };
@@ -1,30 +1,30 @@
1
1
  var j = Object.defineProperty;
2
2
  var v = Object.getOwnPropertySymbols;
3
3
  var P = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
4
- var A = (p, n, e) => n in p ? j(p, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[n] = e, m = (p, n) => {
4
+ var A = (c, n, e) => n in c ? j(c, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[n] = e, m = (c, n) => {
5
5
  for (var e in n || (n = {}))
6
- P.call(n, e) && A(p, e, n[e]);
6
+ P.call(n, e) && A(c, e, n[e]);
7
7
  if (v)
8
8
  for (var e of v(n))
9
- _.call(n, e) && A(p, e, n[e]);
10
- return p;
9
+ _.call(n, e) && A(c, e, n[e]);
10
+ return c;
11
11
  };
12
- var u = (p, n, e) => (A(p, typeof n != "symbol" ? n + "" : n, e), e);
13
- var d = (p, n, e) => new Promise((t, i) => {
12
+ var u = (c, n, e) => (A(c, typeof n != "symbol" ? n + "" : n, e), e);
13
+ var d = (c, n, e) => new Promise((t, i) => {
14
14
  var s = (a) => {
15
15
  try {
16
16
  o(e.next(a));
17
- } catch (c) {
18
- i(c);
17
+ } catch (p) {
18
+ i(p);
19
19
  }
20
20
  }, r = (a) => {
21
21
  try {
22
22
  o(e.throw(a));
23
- } catch (c) {
24
- i(c);
23
+ } catch (p) {
24
+ i(p);
25
25
  }
26
26
  }, o = (a) => a.done ? t(a.value) : Promise.resolve(a.value).then(s, r);
27
- o((e = e.apply(p, n)).next());
27
+ o((e = e.apply(c, n)).next());
28
28
  });
29
29
  import * as F from "three";
30
30
  import { Controller as S } from "../base/BasePluginWithData.js";
@@ -54,9 +54,11 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
54
54
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
55
55
  import "animejs";
56
56
  import "../shared-utils/url/absoluteUrl.js";
57
- import "../shared-utils/Utils/WorkUtil.js";
57
+ import "../shared-utils/Utils/FiveUtil.js";
58
58
  import "../shared-utils/Utils/BaseUtil.js";
59
+ import "../shared-utils/Utils/WorkUtil.js";
59
60
  import "../shared-utils/five/transformPosition.js";
61
+ import "../shared-utils/five/getFiveModel.js";
60
62
  import "../shared-utils/isTruelyObject.js";
61
63
  import "../shared-utils/animationFrame/index.js";
62
64
  import "./utils/Objects/Pipe.js";
@@ -65,7 +67,7 @@ import "../shared-utils/three/Extras/Curves/BezierCurve3.js";
65
67
  import "../shared-utils/three/Extras/Core/Interpolations.js";
66
68
  import "../shared-utils/three/Extras/Core/Interpolations2.js";
67
69
  const g = { flowSpeed: 0.6, rotateSpeed: 0 };
68
- class be extends S {
70
+ class Ae extends S {
69
71
  constructor(e) {
70
72
  super(e);
71
73
  // ==================== public properties ====================
@@ -94,12 +96,12 @@ class be extends S {
94
96
  const [t] = e, i = t.intersectObjects(this.pipeObjects, !1);
95
97
  if (i.length === 0 || !this.data)
96
98
  return;
97
- const o = i[0].object.customID, a = this.data.pipes.find(({ id: h }) => h === o), c = this.data.pipelines.find((h) => a && h.pipes.includes(a));
98
- if (!(!a || !c))
99
+ const o = i[0].object.customID, a = this.data.pipes.find(({ id: h }) => h === o), p = this.data.pipelines.find((h) => a && h.pipes.includes(a));
100
+ if (!(!a || !p))
99
101
  return this.hooks.emit("tap", {
100
102
  intersectObjects: i,
101
103
  pipe: a,
102
- pipeline: c,
104
+ pipeline: p,
103
105
  wantsFiveTapGestureParams: e
104
106
  }), !1;
105
107
  });
@@ -125,13 +127,13 @@ class be extends S {
125
127
  return d(this, null, function* () {
126
128
  const r = this.data;
127
129
  this.data = yield this.formatData(e, s), this.removeAllPipes(), this.hooks.emit("dataChange", this.data, r), this.pipeObjects = yield Promise.all(
128
- this.data.pipes.filter((o) => !!(o != null && o.texture)).map((b) => d(this, [b], function* ({ id: o, texture: a, path: c, radius: h }) {
129
- const l = yield this.loadPipeTexture(a), f = { id: o, path: c, textureURL: a, texture: l, geometryConfig: { radius: h } };
130
+ this.data.pipes.filter((o) => !!(o != null && o.texture)).map((b) => d(this, [b], function* ({ id: o, texture: a, path: p, radius: h }) {
131
+ const l = yield this.loadPipeTexture(a), f = { id: o, path: p, textureURL: a, texture: l, geometryConfig: { radius: h } };
130
132
  return new D(f);
131
133
  }))
132
134
  ), this.data.pipelines.forEach((o) => {
133
- o.pipes.reduce((a, c) => {
134
- const h = this.findPipeObjectWithID(c.id);
135
+ o.pipes.reduce((a, p) => {
136
+ const h = this.findPipeObjectWithID(p.id);
135
137
  return h == null || h.setInitialDisplacement(a), a + ((h == null ? void 0 : h.pathLength) || 0);
136
138
  }, 0);
137
139
  }), this.hooks.emit("dataLoaded", this.data), this.state.visible === !1 && this.pipeObjects.forEach((o) => o.setOpacity(0)), this.state.enabled && (this.group.add(...this.pipeObjects), this.five.needsRender = !0), t && this.setState(t, { userAction: i });
@@ -228,10 +230,10 @@ class be extends S {
228
230
  * */
229
231
  switchPipelines(e) {
230
232
  return d(this, null, function* () {
231
- var c, h, b, l, f, w;
233
+ var p, h, b, l, f, w;
232
234
  if (!this.data)
233
235
  return;
234
- const t = (c = e == null ? void 0 : e.target) != null ? c : null, i = (h = e == null ? void 0 : e.userAction) != null ? h : !0;
236
+ const t = (p = e == null ? void 0 : e.target) != null ? p : null, i = (h = e == null ? void 0 : e.userAction) != null ? h : !0;
235
237
  this.updateState({ target: t }, i);
236
238
  const s = { duration: 500 }, r = (l = (b = e == null ? void 0 : e.hideAnime) != null ? b : e == null ? void 0 : e.anime) != null ? l : s, o = (w = (f = e == null ? void 0 : e.showAnime) != null ? f : e == null ? void 0 : e.anime) != null ? w : s, a = {
237
239
  target: t,
@@ -345,5 +347,5 @@ class be extends S {
345
347
  }
346
348
  }
347
349
  export {
348
- be as Controller
350
+ Ae as Controller
349
351
  };
@@ -22,9 +22,11 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
22
22
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
23
23
  import "animejs";
24
24
  import "../shared-utils/url/absoluteUrl.js";
25
- import "../shared-utils/Utils/WorkUtil.js";
25
+ import "../shared-utils/Utils/FiveUtil.js";
26
26
  import "../shared-utils/Utils/BaseUtil.js";
27
+ import "../shared-utils/Utils/WorkUtil.js";
27
28
  import "../shared-utils/five/transformPosition.js";
29
+ import "../shared-utils/five/getFiveModel.js";
28
30
  import "../shared-utils/equal.js";
29
31
  import "../shared-utils/isTruelyObject.js";
30
32
  import "../shared-utils/isNil.js";
@@ -37,8 +39,8 @@ import "../shared-utils/animationFrame/BetterTween.js";
37
39
  import "../shared-utils/three/Extras/Curves/BezierCurve3.js";
38
40
  import "../shared-utils/three/Extras/Core/Interpolations.js";
39
41
  import "../shared-utils/three/Extras/Core/Interpolations2.js";
40
- const O = (r) => new o(r);
42
+ const R = (r) => new o(r);
41
43
  export {
42
- O as PipelinePlugin,
43
- O as default
44
+ R as PipelinePlugin,
45
+ R as default
44
46
  };
@@ -1,6 +1,7 @@
1
1
  import type { Five } from '@realsee/five';
2
2
  import { Subscribe } from '../shared-utils/Subscribe';
3
3
  import { WorkUtil } from '../shared-utils/Utils/WorkUtil';
4
+ import { FiveUtil } from '../shared-utils/Utils/FiveUtil';
4
5
  /**
5
6
  * 基本属性字段
6
7
  */
@@ -60,6 +61,7 @@ declare abstract class Controller<PluginState extends State = State, PluginEvent
60
61
  readonly NAME?: string;
61
62
  five: Five;
62
63
  workUtil: WorkUtil;
64
+ fiveUtil: FiveUtil;
63
65
  set workCode(workCode: string);
64
66
  get workCode(): string;
65
67
  /**
@@ -1,6 +1,6 @@
1
- var i = Object.defineProperty;
2
- var s = (e, t, r) => t in e ? i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var o = (e, t, r) => (s(e, typeof t != "symbol" ? t + "" : t, r), r);
1
+ var o = Object.defineProperty;
2
+ var s = (i, t, r) => t in i ? o(i, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : i[t] = r;
3
+ var e = (i, t, r) => (s(i, typeof t != "symbol" ? t + "" : t, r), r);
4
4
  import { Subscribe as l } from "../shared-utils/Subscribe.js";
5
5
  import "hammerjs";
6
6
  import "three";
@@ -9,22 +9,23 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
9
9
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
10
10
  import "animejs";
11
11
  import { absoluteUrl as a } from "../shared-utils/url/absoluteUrl.js";
12
- import { WorkUtil as m } from "../shared-utils/Utils/WorkUtil.js";
13
- let x = class {
12
+ import { FiveUtil as h } from "../shared-utils/Utils/FiveUtil.js";
13
+ let c = class {
14
14
  constructor(t, r) {
15
15
  /**
16
16
  * @realsee/dnalogel 版本号
17
17
  */
18
- o(this, "VERSION", "3.41.2");
19
- o(this, "NAME");
20
- o(this, "five");
21
- o(this, "workUtil");
18
+ e(this, "VERSION", "3.41.3");
19
+ e(this, "NAME");
20
+ e(this, "five");
21
+ e(this, "workUtil");
22
+ e(this, "fiveUtil");
22
23
  /**
23
24
  * @description: 插件事件钩子
24
25
  */
25
- o(this, "hooks", new l());
26
- o(this, "staticPrefix", "//vr-image-4.realsee-cdn.cn");
27
- this.five = t, this.workUtil = new m(t), r != null && r.staticPrefix && (this.staticPrefix = r.staticPrefix);
26
+ e(this, "hooks", new l());
27
+ e(this, "staticPrefix", "//vr-image-4.realsee-cdn.cn");
28
+ this.five = t, this.fiveUtil = new h(t), this.workUtil = this.fiveUtil.workUtil, r != null && r.staticPrefix && (this.staticPrefix = r.staticPrefix);
28
29
  }
29
30
  set workCode(t) {
30
31
  this.workUtil.workCode = t, this.onWorkCodeChange();
@@ -48,5 +49,5 @@ let x = class {
48
49
  }
49
50
  };
50
51
  export {
51
- x as Controller
52
+ c as Controller
52
53
  };
@@ -30,9 +30,9 @@ var u = (d, r, t) => new Promise((e, i) => {
30
30
  import * as b from "three";
31
31
  import { to as M } from "../../shared-utils/to.js";
32
32
  import { equal as y } from "../../shared-utils/equal.js";
33
- import { Main as L } from "../Components/Main.js";
33
+ import { Main as _ } from "../Components/Main.js";
34
34
  import { formatData as S } from "../utils/formatData.js";
35
- import { CAMERA_IMAGE as _ } from "../Assets/camera.js";
35
+ import { CAMERA_IMAGE as L } from "../Assets/camera.js";
36
36
  import { omit as C } from "../../shared-utils/filter.js";
37
37
  import { FLOOR_PLAN_ATTACHED_TO as D } from "../constant.js";
38
38
  import { Controller as O } from "../../base/BasePluginWithData.js";
@@ -44,6 +44,7 @@ import "hammerjs";
44
44
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
45
45
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
46
46
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
47
+ import { waitFiveModelLoaded as U } from "../../shared-utils/five/fiveModelLoad.js";
47
48
  import "animejs";
48
49
  import { isNil as z } from "../../shared-utils/isNil.js";
49
50
  import "../../shared-utils/isTruelyObject.js";
@@ -78,9 +79,11 @@ import "../../shared-utils/tap.js";
78
79
  import "../../base/BasePlugin.js";
79
80
  import "../../shared-utils/Subscribe.js";
80
81
  import "../../shared-utils/url/absoluteUrl.js";
81
- import "../../shared-utils/Utils/WorkUtil.js";
82
+ import "../../shared-utils/Utils/FiveUtil.js";
82
83
  import "../../shared-utils/Utils/BaseUtil.js";
84
+ import "../../shared-utils/Utils/WorkUtil.js";
83
85
  import "../../shared-utils/five/transformPosition.js";
86
+ import "../../shared-utils/five/getFiveModel.js";
84
87
  import "../../shared-utils/nearlyEqual.js";
85
88
  import "../../shared-utils/five/changeMode.js";
86
89
  import "../../shared-utils/positionToVector3.js";
@@ -104,7 +107,7 @@ function G(d) {
104
107
  const { latitude: r, longitude: t } = d, e = Math.abs(r - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
105
108
  return e && i;
106
109
  }
107
- class ie extends O {
110
+ class re extends O {
108
111
  constructor(t, e) {
109
112
  var a, f;
110
113
  super(t);
@@ -191,7 +194,7 @@ class ie extends O {
191
194
  var h;
192
195
  if (!this.state.enabled)
193
196
  return;
194
- if (!((h = this.five.model) != null && h.loaded))
197
+ if (!((h = this.fiveUtil.model) != null && h.loaded))
195
198
  throw new Error(m.ModelNotLoaded);
196
199
  if (!this.data)
197
200
  throw new Error(m.DataNotLoaded);
@@ -216,7 +219,7 @@ class ie extends O {
216
219
  throw a ? new Error(a) : new Error(m.UnknownError);
217
220
  if (!this.updateSize())
218
221
  throw new Error(m.UpdateSizeError);
219
- this.updatePosition(), this.floorIndex = i.floorIndex, this.five.model.show(this.floorIndex);
222
+ this.updatePosition(), this.floorIndex = i.floorIndex, this.fiveUtil.model.show(this.floorIndex);
220
223
  });
221
224
  return this.isHiddenByHideFunc = !1, this.showPromise = n().then(() => {
222
225
  this.showPromise = void 0, this.showRejection = void 0;
@@ -324,7 +327,7 @@ class ie extends O {
324
327
  roomAreaEnable: !0,
325
328
  roomNameEnable: !0,
326
329
  roomDimensionEnable: !0,
327
- cameraImageUrl: _,
330
+ cameraImageUrl: L,
328
331
  attachedTo: D.BOUNDING_CENTER,
329
332
  getLabelElement: void 0,
330
333
  adaptiveRoomLabelVisibleEnable: !0,
@@ -334,7 +337,7 @@ class ie extends O {
334
337
  getRoomDimensionText: (c, g) => (c / 1e3).toFixed(1) + "m × " + (g / 1e3).toFixed(1) + "m",
335
338
  getRuleDistanceText: (c) => c.toString()
336
339
  }, n = e ? C(e, ["selector", "scale"]) : {}, h = l(l({}, i.missingFloorConfig), n.missingFloorConfig), s = p(l(l({}, i), n), { missingFloorConfig: h });
337
- this.state = { enabled: !0, visible: !1, config: s }, this.initContainer(), t.model.loaded ? this.onFiveModelLoaded() : t.once("modelLoaded", this.onFiveModelLoaded), t.once("dispose", this.dispose), this.addEventListener();
340
+ this.state = { enabled: !0, visible: !1, config: s }, this.initContainer(), U(t).then(this.onFiveModelLoaded), t.once("dispose", this.dispose), this.addEventListener();
338
341
  }
339
342
  load(t, e, i = !0) {
340
343
  return u(this, null, function* () {
@@ -380,7 +383,7 @@ class ie extends O {
380
383
  /** 更新户型图位置 */
381
384
  updatePosition() {
382
385
  var s;
383
- const t = k(this.five, this.floorIndex, this.state.config.attachedTo), e = (s = this.five.model) == null ? void 0 : s.bounding.getCenter(new b.Vector3()).setY(t);
386
+ const t = k(this.five, this.floorIndex, this.state.config.attachedTo), e = (s = this.fiveUtil.model) == null ? void 0 : s.bounding.getCenter(new b.Vector3()).setY(t);
384
387
  if (!e)
385
388
  return;
386
389
  const i = e.clone().project(this.five.camera), n = (i.x + 1) / 2, h = -(i.y - 1) / 2;
@@ -434,9 +437,9 @@ class ie extends O {
434
437
  });
435
438
  if (this.app)
436
439
  return this.app.$set(e);
437
- this.app = new L({ target: this.container, intro: !0, props: e });
440
+ this.app = new _({ target: this.container, intro: !0, props: e });
438
441
  }
439
442
  }
440
443
  export {
441
- ie as Controller
444
+ re as Controller
442
445
  };
@@ -58,18 +58,21 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
58
58
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
59
59
  import "animejs";
60
60
  import "../../shared-utils/url/absoluteUrl.js";
61
- import "../../shared-utils/Utils/WorkUtil.js";
61
+ import "../../shared-utils/Utils/FiveUtil.js";
62
62
  import "../../shared-utils/Utils/BaseUtil.js";
63
+ import "../../shared-utils/Utils/WorkUtil.js";
63
64
  import "../../shared-utils/five/transformPosition.js";
65
+ import "../../shared-utils/five/getFiveModel.js";
64
66
  import "../../shared-utils/getPxmm.js";
65
67
  import "../utils/correctFiveState.js";
66
68
  import "../utils/constant.js";
67
69
  import "../../shared-utils/nearlyEqual.js";
68
70
  import "../../shared-utils/five/changeMode.js";
69
71
  import "../../shared-utils/changeModelCanvasOpacity.js";
72
+ import "../../shared-utils/five/fiveModelLoad.js";
70
73
  import "../../shared-utils/isNil.js";
71
- const Fo = (o, r) => new t(o, r);
74
+ const bo = (o, r) => new t(o, r);
72
75
  export {
73
- Fo as MapviewFloorplanPlugin,
74
- Fo as default
76
+ bo as MapviewFloorplanPlugin,
77
+ bo as default
75
78
  };
@@ -78,9 +78,11 @@ import "../../shared-utils/tap.js";
78
78
  import "../../base/BasePlugin.js";
79
79
  import "../../shared-utils/Subscribe.js";
80
80
  import "../../shared-utils/url/absoluteUrl.js";
81
- import "../../shared-utils/Utils/WorkUtil.js";
81
+ import "../../shared-utils/Utils/FiveUtil.js";
82
82
  import "../../shared-utils/Utils/BaseUtil.js";
83
+ import "../../shared-utils/Utils/WorkUtil.js";
83
84
  import "../../shared-utils/five/transformPosition.js";
85
+ import "../../shared-utils/five/getFiveModel.js";
84
86
  import "../../shared-utils/nearlyEqual.js";
85
87
  import "../../shared-utils/five/changeMode.js";
86
88
  import "../../shared-utils/positionToVector3.js";
@@ -104,7 +106,7 @@ function z(d) {
104
106
  const { latitude: s, longitude: t } = d, e = Math.abs(s - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
105
107
  return e && i;
106
108
  }
107
- class oe extends T {
109
+ class ne extends T {
108
110
  constructor(t, e) {
109
111
  var a, f, m;
110
112
  super(t);
@@ -435,5 +437,5 @@ class oe extends T {
435
437
  }
436
438
  }
437
439
  export {
438
- oe as Controller
440
+ ne as Controller
439
441
  };
@@ -59,17 +59,19 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
59
59
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
60
60
  import "animejs";
61
61
  import "../../shared-utils/url/absoluteUrl.js";
62
- import "../../shared-utils/Utils/WorkUtil.js";
62
+ import "../../shared-utils/Utils/FiveUtil.js";
63
63
  import "../../shared-utils/Utils/BaseUtil.js";
64
+ import "../../shared-utils/Utils/WorkUtil.js";
64
65
  import "../../shared-utils/five/transformPosition.js";
66
+ import "../../shared-utils/five/getFiveModel.js";
65
67
  import "../utils/correctFiveState.js";
66
68
  import "../utils/constant.js";
67
69
  import "../../shared-utils/nearlyEqual.js";
68
70
  import "../../shared-utils/five/changeMode.js";
69
71
  import "../../shared-utils/changeModelCanvasOpacity.js";
70
72
  import "../../shared-utils/isNil.js";
71
- const Mo = (o, r) => new t(o, r);
73
+ const bo = (o, r) => new t(o, r);
72
74
  export {
73
- Mo as ModelFloorplanPlugin,
74
- Mo as default
75
+ bo as ModelFloorplanPlugin,
76
+ bo as default
75
77
  };
@@ -68,11 +68,13 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
68
68
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
69
69
  import "animejs";
70
70
  import "../../shared-utils/url/absoluteUrl.js";
71
- import "../../shared-utils/Utils/WorkUtil.js";
71
+ import "../../shared-utils/Utils/FiveUtil.js";
72
72
  import "../../shared-utils/Utils/BaseUtil.js";
73
+ import "../../shared-utils/Utils/WorkUtil.js";
73
74
  import "../../shared-utils/five/transformPosition.js";
75
+ import "../../shared-utils/five/getFiveModel.js";
74
76
  import "../Assets/floorplanExtraObject.js";
75
- class vt extends O {
77
+ class St extends O {
76
78
  constructor(t, i) {
77
79
  super(t);
78
80
  // =============== public properties =================
@@ -215,5 +217,5 @@ class vt extends O {
215
217
  }
216
218
  }
217
219
  export {
218
- vt as Controller
220
+ St as Controller
219
221
  };
@@ -39,13 +39,15 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
39
39
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
40
40
  import "animejs";
41
41
  import "../../shared-utils/url/absoluteUrl.js";
42
- import "../../shared-utils/Utils/WorkUtil.js";
42
+ import "../../shared-utils/Utils/FiveUtil.js";
43
43
  import "../../shared-utils/Utils/BaseUtil.js";
44
+ import "../../shared-utils/Utils/WorkUtil.js";
44
45
  import "../../shared-utils/five/transformPosition.js";
46
+ import "../../shared-utils/five/getFiveModel.js";
45
47
  import "../utils/formatData.js";
46
48
  import "../Assets/floorplanExtraObject.js";
47
- const X = (o, r) => new t(o, r);
49
+ const Z = (o, r) => new t(o, r);
48
50
  export {
49
- X as PanoFloorplanRadarPlugin,
50
- X as default
51
+ Z as PanoFloorplanRadarPlugin,
52
+ Z as default
51
53
  };
@@ -76,9 +76,11 @@ import "../../shared-utils/tap.js";
76
76
  import "../../base/BasePlugin.js";
77
77
  import "../../shared-utils/Subscribe.js";
78
78
  import "../../shared-utils/url/absoluteUrl.js";
79
- import "../../shared-utils/Utils/WorkUtil.js";
79
+ import "../../shared-utils/Utils/FiveUtil.js";
80
80
  import "../../shared-utils/Utils/BaseUtil.js";
81
+ import "../../shared-utils/Utils/WorkUtil.js";
81
82
  import "../../shared-utils/five/transformPosition.js";
83
+ import "../../shared-utils/five/getFiveModel.js";
82
84
  import "../../shared-utils/nearlyEqual.js";
83
85
  import "../../shared-utils/to.js";
84
86
  import "../../shared-utils/positionToVector3.js";
@@ -94,7 +96,7 @@ import "../../shared-utils/three/centerPoint.js";
94
96
  import "../../shared-utils/three/getObjectVisible.js";
95
97
  import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
96
98
  import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
97
- class Yt extends M {
99
+ class Qt extends M {
98
100
  constructor(t, e) {
99
101
  var h, p;
100
102
  super(t);
@@ -367,5 +369,5 @@ class Yt extends M {
367
369
  }
368
370
  }
369
371
  export {
370
- Yt as Controller
372
+ Qt as Controller
371
373
  };
@@ -57,17 +57,19 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
57
57
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
58
58
  import "animejs";
59
59
  import "../../shared-utils/url/absoluteUrl.js";
60
- import "../../shared-utils/Utils/WorkUtil.js";
60
+ import "../../shared-utils/Utils/FiveUtil.js";
61
61
  import "../../shared-utils/Utils/BaseUtil.js";
62
+ import "../../shared-utils/Utils/WorkUtil.js";
62
63
  import "../../shared-utils/five/transformPosition.js";
64
+ import "../../shared-utils/five/getFiveModel.js";
63
65
  import "../../shared-utils/five/changeMode.js";
64
66
  import "../../shared-utils/nearlyEqual.js";
65
67
  import "../../shared-utils/to.js";
66
68
  import "../../shared-utils/getPxmm.js";
67
69
  import "../../shared-utils/changeModelCanvasOpacity.js";
68
70
  import "../../shared-utils/isNil.js";
69
- const xo = (o, r) => new t(o, r);
71
+ const Fo = (o, r) => new t(o, r);
70
72
  export {
71
- xo as TopviewFloorplanPlugin,
72
- xo as default
73
+ Fo as TopviewFloorplanPlugin,
74
+ Fo as default
73
75
  };