@realsee/dnalogel 3.45.0 → 3.46.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.
Files changed (96) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/Sculpt/Meshes/Line.d.ts +6 -1
  3. package/dist/index.cjs.js +53 -53
  4. package/dist/index.js +29609 -29576
  5. package/dist/index.umd.js +49 -49
  6. package/dist/shared-utils/tag.d.ts +6 -3
  7. package/libs/AreaMakerPlugin/Controller.js +150 -78
  8. package/libs/AreaMakerPlugin/index.js +76 -4
  9. package/libs/AreaMakerPlugin/utils/Item.js +190 -111
  10. package/libs/CSS3DRenderPlugin/Controller.js +89 -29
  11. package/libs/CSS3DRenderPlugin/index.js +75 -15
  12. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +132 -58
  13. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +181 -116
  14. package/libs/CruisePlugin/BaseController.js +121 -49
  15. package/libs/CruisePlugin/Move.js +73 -21
  16. package/libs/CruisePlugin/Work.js +98 -46
  17. package/libs/CruisePlugin/index.js +79 -27
  18. package/libs/CurrentPanoImagePlugin/Controller.js +176 -104
  19. package/libs/CurrentPanoImagePlugin/index.js +76 -4
  20. package/libs/GuideLinePlugin/Controller.js +82 -30
  21. package/libs/GuideLinePlugin/GuideLineItem.js +82 -30
  22. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
  23. package/libs/GuideLinePlugin/GuideLineModeItem.js +81 -29
  24. package/libs/GuideLinePlugin/index.js +79 -27
  25. package/libs/ModelMakerPlugin/Controller.js +139 -82
  26. package/libs/ModelMakerPlugin/index.js +75 -18
  27. package/libs/ModelTVVideoPlugin/Plugin.js +117 -57
  28. package/libs/ModelTVVideoPlugin/index.js +68 -8
  29. package/libs/Object3DHelperPlugin/Controller.js +54 -31
  30. package/libs/Object3DHelperPlugin/index.js +35 -13
  31. package/libs/PanoCompassPlugin/Controller.js +97 -42
  32. package/libs/PanoCompassPlugin/index.js +71 -16
  33. package/libs/PanoDoorLabelPlugin/BaseController.js +98 -26
  34. package/libs/PanoDoorLabelPlugin/Controller.js +187 -115
  35. package/libs/PanoDoorLabelPlugin/index.js +76 -4
  36. package/libs/PanoMeasurePlugin/Components/Controller0.js +140 -88
  37. package/libs/PanoMeasurePlugin/Components/Controller1.js +178 -126
  38. package/libs/PanoMeasurePlugin/Controller/EditController.js +124 -72
  39. package/libs/PanoMeasurePlugin/Controller/WatchController.js +167 -92
  40. package/libs/PanoMeasurePlugin/Controller/index.js +109 -64
  41. package/libs/PanoMeasurePlugin/Model/area.js +114 -38
  42. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +78 -0
  43. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +97 -45
  44. package/libs/PanoMeasurePlugin/index.js +76 -31
  45. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +98 -20
  46. package/libs/PanoSpatialTagPlugin/Plugin.js +210 -150
  47. package/libs/PanoSpatialTagPlugin/index.js +66 -6
  48. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +133 -53
  49. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +295 -216
  50. package/libs/PanoTagPlugin/Components/Tag/index.js +257 -187
  51. package/libs/PanoTagPlugin/Components/TagContainer.js +157 -87
  52. package/libs/PanoTagPlugin/Components/TagItem.js +144 -74
  53. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +73 -3
  54. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +109 -39
  55. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +105 -35
  56. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +113 -43
  57. package/libs/PanoTagPlugin/controller/TagRender.js +132 -80
  58. package/libs/PanoTagPlugin/controller/TagUtil.js +136 -84
  59. package/libs/PanoTagPlugin/controller/index.js +113 -61
  60. package/libs/PanoTagPlugin/index.js +89 -37
  61. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +121 -41
  62. package/libs/PanoVideoPlugin/Controller.js +137 -65
  63. package/libs/PanoVideoPlugin/VideoMeshController.js +149 -69
  64. package/libs/PanoVideoPlugin/index.js +82 -10
  65. package/libs/PipelinePlugin/Controller.js +199 -128
  66. package/libs/PipelinePlugin/index.js +76 -5
  67. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +102 -22
  68. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +95 -15
  69. package/libs/PipelinePlugin/utils/Objects/Pipe.js +136 -56
  70. package/libs/Sculpt/Meshes/Box.js +6 -5
  71. package/libs/Sculpt/Meshes/Cylinder.js +7 -6
  72. package/libs/Sculpt/Meshes/Line.d.ts +6 -1
  73. package/libs/Sculpt/Meshes/Line.js +76 -56
  74. package/libs/Sculpt/Meshes/Point.js +6 -5
  75. package/libs/Sculpt/Meshes/Polyline.js +5 -4
  76. package/libs/Sculpt/Meshes/Rectangle.js +3 -2
  77. package/libs/Sculpt/Objects/Line/Editor.js +11 -10
  78. package/libs/Sculpt/utils/three/ColoredMesh.js +14 -13
  79. package/libs/base/BasePlugin.js +14 -13
  80. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +128 -59
  81. package/libs/floorplan/MapviewFloorplanPlugin/index.js +75 -6
  82. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +129 -59
  83. package/libs/floorplan/ModelFloorplanPlugin/index.js +75 -5
  84. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +158 -86
  85. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +76 -4
  86. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +151 -81
  87. package/libs/floorplan/TopviewFloorplanPlugin/index.js +75 -5
  88. package/libs/floorplan/index.js +1 -0
  89. package/libs/index.js +67 -67
  90. package/libs/shared-utils/five/index.js +3 -2
  91. package/libs/shared-utils/five/lookObject.js +3 -2
  92. package/libs/shared-utils/logger.js +1 -1
  93. package/libs/shared-utils/tag.d.ts +6 -3
  94. package/libs/shared-utils/tag.js +38 -24
  95. package/libs/shared-utils/three/index.js +1 -0
  96. package/package.json +1 -1
@@ -17,13 +17,13 @@ var g = (l, o, e) => new Promise((t, r) => {
17
17
  } catch (p) {
18
18
  r(p);
19
19
  }
20
- }, m = (h) => {
20
+ }, d = (h) => {
21
21
  try {
22
22
  b(e.throw(h));
23
23
  } catch (p) {
24
24
  r(p);
25
25
  }
26
- }, b = (h) => h.done ? t(h.value) : Promise.resolve(h.value).then(s, m);
26
+ }, b = (h) => h.done ? t(h.value) : Promise.resolve(h.value).then(s, d);
27
27
  b((e = e.apply(l, o)).next());
28
28
  });
29
29
  import { Controller as L } from "../base/BasePlugin.js";
@@ -48,14 +48,31 @@ import { Subscribe as R } from "../shared-utils/Subscribe.js";
48
48
  import "hammerjs";
49
49
  import "three/examples/jsm/renderers/CSS3DRenderer";
50
50
  import "@realsee/five/line";
51
+ import "../Sculpt/utils/Modules/Global.js";
52
+ import "../Sculpt/utils/Modules/Cursor.js";
53
+ import "./Controller.js";
54
+ import "../shared-utils/five/FiveDomEvents.js";
55
+ import "../shared-utils/three/getObjectVisible.js";
56
+ import "../shared-utils/five/calculateThreeMouse.js";
57
+ import "../shared-utils/five/getFiveModel.js";
58
+ import "../shared-utils/three/THREERaycaster.js";
59
+ import "../shared-utils/three/PointSelector/index.js";
60
+ import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
61
+ import "../shared-utils/three/Magnifier.js";
62
+ import "../shared-utils/three/PointSelector/utils/PointHelper.js";
63
+ import "../shared-utils/three/Assets/index.js";
64
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
65
+ import "../CSS3DRenderPlugin/utils/even.js";
66
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
67
+ import "../shared-utils/three/centerPoint.js";
51
68
  import "animejs";
69
+ import "../shared-utils/isNil.js";
70
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
52
71
  import "../shared-utils/Utils/FiveUtil.js";
53
72
  import "../shared-utils/Utils/BaseUtil.js";
54
73
  import "../shared-utils/Utils/WorkUtil.js";
55
74
  import "../shared-utils/five/transformPosition.js";
56
- import "../shared-utils/five/getFiveModel.js";
57
75
  import "../shared-utils/url/absoluteUrl.js";
58
- import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
59
76
  import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
60
77
  import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
61
78
  import "../shared-utils/three/IObject3D.js";
@@ -64,13 +81,19 @@ import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
64
81
  import "../shared-utils/Object3DHelper/utils/direction.js";
65
82
  import "../shared-utils/Object3DHelper/Constants/color.js";
66
83
  import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
84
+ import "../shared-utils/positionToVector3.js";
85
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
86
+ import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
87
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
88
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
89
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
90
+ import "../shared-utils/util.js";
91
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
67
92
  import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
68
93
  import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
69
94
  import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
70
95
  import "../shared-utils/Object3DHelper/Base/BaseController.js";
71
96
  import "../shared-utils/threex/domevents/index.js";
72
- import "../shared-utils/isNil.js";
73
- import "../shared-utils/util.js";
74
97
  import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
75
98
  import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
76
99
  import "../Sculpt/utils/three/rayOnLine.js";
@@ -78,18 +101,18 @@ import "../shared-utils/math/rad2Deg.js";
78
101
  import "../shared-utils/math/deg2Rad.js";
79
102
  import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
80
103
  import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
81
- import "../shared-utils/positionToVector3.js";
82
- import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
83
- import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
84
- import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
85
- import "../CSS3DRenderPlugin/utils/even.js";
86
- import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
87
- import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
88
- import "../shared-utils/three/centerPoint.js";
89
- import "../shared-utils/three/getObjectVisible.js";
90
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
91
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
92
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
104
+ import "../shared-utils/three/PointSelector/utils/html.js";
105
+ import "../shared-utils/five/initialCSS3DRender.js";
106
+ import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
107
+ import "../Sculpt/Meshes/Line.js";
108
+ import "../Sculpt/typings/style.js";
109
+ import "../shared-utils/five/FiveLine.js";
110
+ import "../shared-utils/tag.js";
111
+ import "../shared-utils/five/vector3ToScreen.js";
112
+ import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
113
+ import "../shared-utils/isTouchDevice.js";
114
+ import "../shared-utils/five/getPosition.js";
115
+ import "../shared-utils/five/getRaycasterByNdcPosition.js";
93
116
  const w = "Object3DHelperPlugin", D = w, X = () => {
94
117
  console.error(`${D} is disposed`);
95
118
  }, Y = () => {
@@ -97,7 +120,7 @@ const w = "Object3DHelperPlugin", D = w, X = () => {
97
120
  }, Z = () => {
98
121
  console.error(`${D} is disabled`);
99
122
  };
100
- class mr extends L {
123
+ class Ir extends L {
101
124
  constructor(e) {
102
125
  super(e);
103
126
  f(this, "name", w);
@@ -173,7 +196,7 @@ class mr extends L {
173
196
  console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
174
197
  return;
175
198
  }
176
- const r = new N(), s = [], m = (M = this.five.getElement()) == null ? void 0 : M.parentElement, b = this.five.camera, p = n(n({}, {
199
+ const r = new N(), s = [], d = (M = this.five.getElement()) == null ? void 0 : M.parentElement, b = this.five.camera, p = n(n({}, {
177
200
  moveHelper: !0,
178
201
  rotateHelper: !0,
179
202
  scaleHelper: !0,
@@ -184,15 +207,15 @@ class mr extends L {
184
207
  return typeof i == "boolean" ? i : i.enable;
185
208
  };
186
209
  if (C(y)) {
187
- const i = n(n({}, this.getConfig(p.moveHelper)), p), d = new _(e, n({}, i)), a = new H(this.five, U, e, d, i, u, v);
210
+ const i = n(n({}, this.getConfig(p.moveHelper)), p), m = new _(e, n({}, i)), a = new H(this.five, U, e, m, i, u, v);
188
211
  r.addControllers({ moveController: a.helperController }), s.push(() => a.dispose());
189
212
  }
190
213
  if (C(B)) {
191
- const i = n(n({}, this.getConfig(p.rotateHelper)), p), d = new $(e, n({ container: m }, i)), a = new H(this.five, V, e, d, i, u, v);
214
+ const i = n(n({}, this.getConfig(p.rotateHelper)), p), m = new $(e, n({ container: d }, i)), a = new H(this.five, V, e, m, i, u, v);
192
215
  r.addControllers({ rotateController: a.helperController }), s.push(() => a.dispose());
193
216
  }
194
217
  if (C(k)) {
195
- const i = new G(e), d = new H(
218
+ const i = new G(e), m = new H(
196
219
  this.five,
197
220
  J,
198
221
  e,
@@ -201,11 +224,11 @@ class mr extends L {
201
224
  u,
202
225
  v
203
226
  );
204
- r.addControllers({ boundingBoxController: d.helperController });
227
+ r.addControllers({ boundingBoxController: m.helperController });
205
228
  }
206
229
  if (C(j))
207
- if (e.isCSS3DObjectPlus && m) {
208
- const i = new F(e, m, b, this.five.scene), d = new H(
230
+ if (e.isCSS3DObjectPlus && d) {
231
+ const i = new F(e, d, b, this.five.scene), m = new H(
209
232
  this.five,
210
233
  q,
211
234
  e,
@@ -214,7 +237,7 @@ class mr extends L {
214
237
  u,
215
238
  v
216
239
  );
217
- r.addControllers({ scaleController: d.helperController }), s.push(() => d.dispose()), T(this.five).then(() => {
240
+ r.addControllers({ scaleController: m.helperController }), s.push(() => m.dispose()), T(this.five).then(() => {
218
241
  var a, O;
219
242
  if (e.isCSS3DObjectPlus) {
220
243
  const c = e;
@@ -225,7 +248,7 @@ class mr extends L {
225
248
  }
226
249
  });
227
250
  } else {
228
- const i = n(n({}, this.getConfig(p.scaleHelper)), p), d = new K(e, i), a = new H(this.five, Q, e, d, i, u, v);
251
+ const i = n(n({}, this.getConfig(p.scaleHelper)), p), m = new K(e, i), a = new H(this.five, Q, e, m, i, u, v);
229
252
  r.addControllers({ scaleController: a.helperController }), s.push(() => a.dispose());
230
253
  }
231
254
  return this.objectHelperMap.set(e, { helper: r, disposers: s }), r.controllers;
@@ -236,8 +259,8 @@ class mr extends L {
236
259
  const { helper: t, disposers: r } = this.objectHelperMap.get(e);
237
260
  if (t) {
238
261
  if (e.isCSS3DObjectPlus) {
239
- const s = e, m = this.css3DObjectParentMap.get(s);
240
- m && m.add(s), this.css3DRender.render(this.five.camera);
262
+ const s = e, d = this.css3DObjectParentMap.get(s);
263
+ d && d.add(s), this.css3DRender.render(this.five.camera);
241
264
  }
242
265
  this.objectHelperMap.delete(e), t.dispose(), r == null || r.forEach((s) => s == null ? void 0 : s());
243
266
  }
@@ -269,6 +292,6 @@ class mr extends L {
269
292
  }
270
293
  }
271
294
  export {
272
- mr as Object3DHelperController,
295
+ Ir as Object3DHelperController,
273
296
  D as PLUGIN
274
297
  };
@@ -1,20 +1,36 @@
1
1
  import { Object3DHelperController as o } from "./Controller.js";
2
- import { PLUGIN as xr } from "./Controller.js";
2
+ import { PLUGIN as Er } from "./Controller.js";
3
3
  import "../base/BasePlugin.js";
4
4
  import "../shared-utils/Subscribe.js";
5
5
  import "three";
6
6
  import "hammerjs";
7
7
  import "three/examples/jsm/renderers/CSS3DRenderer";
8
8
  import "@realsee/five/line";
9
+ import "../Sculpt/utils/Modules/Global.js";
10
+ import "../Sculpt/utils/Modules/Cursor.js";
11
+ import "../shared-utils/five/FiveDomEvents.js";
12
+ import "../shared-utils/three/getObjectVisible.js";
13
+ import "../shared-utils/five/calculateThreeMouse.js";
14
+ import "../shared-utils/five/getFiveModel.js";
15
+ import "../shared-utils/three/THREERaycaster.js";
16
+ import "../shared-utils/three/PointSelector/index.js";
17
+ import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
18
+ import "../shared-utils/three/Magnifier.js";
19
+ import "../shared-utils/three/PointSelector/utils/PointHelper.js";
20
+ import "../shared-utils/three/Assets/index.js";
21
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
22
+ import "../CSS3DRenderPlugin/utils/even.js";
23
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
24
+ import "../shared-utils/three/centerPoint.js";
9
25
  import "../shared-utils/three/THREESphere.js";
10
26
  import "animejs";
27
+ import "../shared-utils/isNil.js";
28
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
11
29
  import "../shared-utils/Utils/FiveUtil.js";
12
30
  import "../shared-utils/Utils/BaseUtil.js";
13
31
  import "../shared-utils/Utils/WorkUtil.js";
14
32
  import "../shared-utils/five/transformPosition.js";
15
- import "../shared-utils/five/getFiveModel.js";
16
33
  import "../shared-utils/url/absoluteUrl.js";
17
- import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
18
34
  import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
19
35
  import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
20
36
  import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
@@ -29,12 +45,6 @@ import "../shared-utils/positionToVector3.js";
29
45
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
30
46
  import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
31
47
  import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
32
- import "../CSS3DRenderPlugin/utils/even.js";
33
- import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
34
- import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
35
- import "../shared-utils/three/centerPoint.js";
36
- import "../shared-utils/three/getObjectVisible.js";
37
- import "../shared-utils/isNil.js";
38
48
  import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
39
49
  import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
40
50
  import "../shared-utils/util.js";
@@ -64,10 +74,22 @@ import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
64
74
  import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
65
75
  import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
66
76
  import "../shared-utils/five/fiveModelLoad.js";
67
- const jr = (r) => new o(r);
77
+ import "../shared-utils/three/PointSelector/utils/html.js";
78
+ import "../shared-utils/five/initialCSS3DRender.js";
79
+ import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
80
+ import "../Sculpt/Meshes/Line.js";
81
+ import "../Sculpt/typings/style.js";
82
+ import "../shared-utils/five/FiveLine.js";
83
+ import "../shared-utils/tag.js";
84
+ import "../shared-utils/five/vector3ToScreen.js";
85
+ import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
86
+ import "../shared-utils/isTouchDevice.js";
87
+ import "../shared-utils/five/getPosition.js";
88
+ import "../shared-utils/five/getRaycasterByNdcPosition.js";
89
+ const zr = (r) => new o(r);
68
90
  export {
69
91
  o as Object3DHelperController,
70
- jr as Object3DHelperPlugin,
71
- xr as PLUGIN,
72
- jr as default
92
+ zr as Object3DHelperPlugin,
93
+ Er as PLUGIN,
94
+ zr as default
73
95
  };
@@ -11,19 +11,19 @@ var u = (h, n, e) => n in h ? P(h, n, { enumerable: !0, configurable: !0, writab
11
11
  };
12
12
  var r = (h, n, e) => (u(h, typeof n != "symbol" ? n + "" : n, e), e);
13
13
  var d = (h, n, e) => new Promise((t, o) => {
14
- var s = (p) => {
14
+ var i = (p) => {
15
15
  try {
16
16
  m(e.next(p));
17
17
  } catch (c) {
18
18
  o(c);
19
19
  }
20
- }, i = (p) => {
20
+ }, s = (p) => {
21
21
  try {
22
22
  m(e.throw(p));
23
23
  } catch (c) {
24
24
  o(c);
25
25
  }
26
- }, m = (p) => p.done ? t(p.value) : Promise.resolve(p.value).then(s, i);
26
+ }, m = (p) => p.done ? t(p.value) : Promise.resolve(p.value).then(i, s);
27
27
  m((e = e.apply(h, n)).next());
28
28
  });
29
29
  import * as a from "three";
@@ -38,17 +38,19 @@ import "../shared-utils/Subscribe.js";
38
38
  import "hammerjs";
39
39
  import "three/examples/jsm/renderers/CSS3DRenderer";
40
40
  import "@realsee/five/line";
41
+ import "../Sculpt/utils/Modules/Global.js";
42
+ import "../Sculpt/utils/Modules/Cursor.js";
43
+ import "../Object3DHelperPlugin/Controller.js";
41
44
  import "../shared-utils/three/THREESphere.js";
42
- import "animejs";
43
- import "../shared-utils/Utils/FiveUtil.js";
44
- import "../shared-utils/Utils/BaseUtil.js";
45
- import "../shared-utils/Utils/WorkUtil.js";
46
- import "../shared-utils/five/transformPosition.js";
47
- import "../shared-utils/five/getFiveModel.js";
48
- import "../shared-utils/url/absoluteUrl.js";
49
- import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
50
- import "./Assets/roomInfoIcon.js";
51
- import "../CSS3DRenderPlugin/Controller.js";
45
+ import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
46
+ import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
47
+ import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
48
+ import "../shared-utils/three/IObject3D.js";
49
+ import "../shared-utils/three/boundingBox.js";
50
+ import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
51
+ import "../shared-utils/Object3DHelper/utils/direction.js";
52
+ import "../shared-utils/Object3DHelper/Constants/color.js";
53
+ import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
52
54
  import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
53
55
  import "../shared-utils/positionToVector3.js";
54
56
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
@@ -59,16 +61,69 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
59
61
  import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
60
62
  import "../shared-utils/three/centerPoint.js";
61
63
  import "../shared-utils/three/getObjectVisible.js";
64
+ import "animejs";
62
65
  import "../shared-utils/isNil.js";
66
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
67
+ import "../shared-utils/Utils/FiveUtil.js";
68
+ import "../shared-utils/Utils/BaseUtil.js";
69
+ import "../shared-utils/Utils/WorkUtil.js";
70
+ import "../shared-utils/five/transformPosition.js";
71
+ import "../shared-utils/five/getFiveModel.js";
72
+ import "../shared-utils/url/absoluteUrl.js";
63
73
  import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
64
74
  import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
65
75
  import "../shared-utils/util.js";
66
76
  import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
77
+ import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
78
+ import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
79
+ import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
80
+ import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
81
+ import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
82
+ import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
83
+ import "../shared-utils/Object3DHelper/Controller/MoveController.js";
84
+ import "../shared-utils/Object3DHelper/Base/BaseController.js";
85
+ import "../shared-utils/threex/domevents/index.js";
86
+ import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
87
+ import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
88
+ import "../Sculpt/utils/three/rayOnLine.js";
89
+ import "../Object3DHelperPlugin/FiveControllerWrapper.js";
90
+ import "../shared-utils/Object3DHelper/index.js";
91
+ import "../shared-utils/Object3DHelper/Controller/RotateController.js";
92
+ import "../shared-utils/math/rad2Deg.js";
93
+ import "../shared-utils/math/deg2Rad.js";
94
+ import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
95
+ import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
96
+ import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
67
97
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
98
+ import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
99
+ import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
100
+ import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
68
101
  import "../shared-utils/five/fiveModelLoad.js";
102
+ import "../shared-utils/five/FiveDomEvents.js";
103
+ import "../shared-utils/five/calculateThreeMouse.js";
104
+ import "../shared-utils/three/THREERaycaster.js";
105
+ import "../shared-utils/three/PointSelector/index.js";
106
+ import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
107
+ import "../shared-utils/three/Magnifier.js";
108
+ import "../shared-utils/three/PointSelector/utils/PointHelper.js";
109
+ import "../shared-utils/three/Assets/index.js";
110
+ import "../shared-utils/three/PointSelector/utils/html.js";
111
+ import "../shared-utils/five/initialCSS3DRender.js";
112
+ import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
113
+ import "../Sculpt/Meshes/Line.js";
114
+ import "../Sculpt/typings/style.js";
115
+ import "../shared-utils/five/FiveLine.js";
116
+ import "../shared-utils/tag.js";
117
+ import "../shared-utils/five/vector3ToScreen.js";
118
+ import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
119
+ import "../shared-utils/isTouchDevice.js";
120
+ import "../shared-utils/five/getPosition.js";
121
+ import "../shared-utils/five/getRaycasterByNdcPosition.js";
122
+ import "./Assets/roomInfoIcon.js";
123
+ import "../CSS3DRenderPlugin/Controller.js";
69
124
  import "../shared-utils/animationFrame/index.js";
70
125
  const g = { userAction: !0 };
71
- class Me extends A {
126
+ class yt extends A {
72
127
  constructor(e, t) {
73
128
  super(e, t);
74
129
  /**
@@ -99,8 +154,8 @@ class Me extends A {
99
154
  * @todo 销毁贴图时,最好还是直接销毁贴图吧,this.compassMesh?.material.map 这种都是很深层的引用了。THREE 的建议我看也是自己去管理和销毁公共贴图。
100
155
  */
101
156
  r(this, "dispose", () => {
102
- var e, t, o, s;
103
- this.five.scene.remove(this.group), this.group.remove(...this.group.children), (t = (e = this.compassMesh) == null ? void 0 : e.material.map) == null || t.dispose(), (s = (o = this.entryDoorMesh) == null ? void 0 : o.material.map) == null || s.dispose(), this.five.off("dispose", this.dispose), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("panoWillArrive", this.onFivePanoWillArrive), this.five.off("cameraDirectionUpdate", this.onFiveCameraDirectionUpdate);
157
+ var e, t, o, i;
158
+ this.five.scene.remove(this.group), this.group.remove(...this.group.children), (t = (e = this.compassMesh) == null ? void 0 : e.material.map) == null || t.dispose(), (i = (o = this.entryDoorMesh) == null ? void 0 : o.material.map) == null || i.dispose(), this.five.off("dispose", this.dispose), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("panoWillArrive", this.onFivePanoWillArrive), this.five.off("cameraDirectionUpdate", this.onFiveCameraDirectionUpdate);
104
159
  });
105
160
  /**
106
161
  * 添加事件监听
@@ -145,12 +200,12 @@ class Me extends A {
145
200
  this.entryDoorMesh && (this.group.remove(this.entryDoorMesh), (e = this.entryDoorMesh.material.map) == null || e.dispose(), this.entryDoorMesh = null), this.roomInfoInstance && (this.roomInfoInstance.dispose(), this.roomInfoInstance = null), this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.dispose(), this.roomInfoWrapperInstance = null);
146
201
  });
147
202
  r(this, "onFivePanoWillArrive", (e) => {
148
- var t, o, s, i;
149
- e !== this.five.panoIndex && ((t = this.compassMeshTween) == null || t.dispose(), (o = this.compassMesh) == null || o.material.setValues({ opacity: 0 }), (s = this.logoMeshTween) == null || s.dispose(), (i = this.logoMesh) == null || i.material.setValues({ opacity: 0 }));
203
+ var t, o, i, s;
204
+ e !== this.five.panoIndex && ((t = this.compassMeshTween) == null || t.dispose(), (o = this.compassMesh) == null || o.material.setValues({ opacity: 0 }), (i = this.logoMeshTween) == null || i.dispose(), (s = this.logoMesh) == null || s.material.setValues({ opacity: 0 }));
150
205
  });
151
206
  r(this, "onFivePanoArrived", (e) => {
152
- var o, s, i, m, p, c, y, I;
153
- const t = (i = (s = (o = this.five.work) == null ? void 0 : o.observers) == null ? void 0 : s[e]) == null ? void 0 : i.standingPosition;
207
+ var o, i, s, m, p, c, y, I;
208
+ const t = (s = (i = (o = this.five.work) == null ? void 0 : o.observers) == null ? void 0 : i[e]) == null ? void 0 : s.standingPosition;
154
209
  if (this.compassMesh && t && (this.compassMesh.position.copy(t.clone().setY(t.y + 0.01)), this.compassMesh.material.opacity === 0 && ((m = this.compassMeshTween) == null || m.dispose(), this.compassMeshTween = D(1e3).onUpdate(({ progress: v }) => {
155
210
  var l;
156
211
  (l = this.compassMesh) == null || l.material.setValues({ opacity: v }), this.five.needsRender = !0;
@@ -168,16 +223,16 @@ class Me extends A {
168
223
  this.roomInfoInstance && this.roomInfoWrapperInstance && t && (this.roomInfoWrapperInstance.css3DObject.position.copy(t.clone().setY(t.y + 0.01)), this.roomInfoInstance.setRoom(this.data.room_observers[e].room)), this.five.needsRender = !0;
169
224
  });
170
225
  r(this, "onFiveCameraDirectionUpdate", ({ longitude: e, latitude: t }) => {
171
- var o, s;
172
- this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.css3DObject.rotation.z = e, t > 0.66 && this.five.getCurrentState().mode === "Panorama" ? (o = this.roomInfoInstance) == null || o.show() : (s = this.roomInfoInstance) == null || s.hide());
226
+ var o, i;
227
+ this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.css3DObject.rotation.z = e, t > 0.66 && this.five.getCurrentState().mode === "Panorama" ? (o = this.roomInfoInstance) == null || o.show() : (i = this.roomInfoInstance) == null || i.hide());
173
228
  });
174
229
  // eslint-disable-next-line max-params
175
- r(this, "onFiveModeChange", (e, t, o, s, i) => {
230
+ r(this, "onFiveModeChange", (e, t, o, i, s) => {
176
231
  e !== t && this.setState(
177
232
  {
178
233
  visible: e === _.Mode.Panorama
179
234
  },
180
- { userAction: i }
235
+ { userAction: s }
181
236
  );
182
237
  });
183
238
  this.five.scene.add(this.group), this.five.once("dispose", this.dispose), this.setState({
@@ -241,11 +296,11 @@ class Me extends A {
241
296
  ), Promise.resolve();
242
297
  }
243
298
  setState(e, t = { userAction: !0 }) {
244
- var s, i;
299
+ var i, s;
245
300
  const o = JSON.parse(JSON.stringify(this.state));
246
301
  this.state = {
247
- visible: (s = e.visible) != null ? s : o.visible,
248
- enabled: (i = e.enabled) != null ? i : o.enabled,
302
+ visible: (i = e.visible) != null ? i : o.visible,
303
+ enabled: (s = e.enabled) != null ? s : o.enabled,
249
304
  config: f(f({}, o.config), e.config || {})
250
305
  }, this.hooks.emit("stateChange", {
251
306
  state: this.state,
@@ -255,8 +310,8 @@ class Me extends A {
255
310
  }
256
311
  load(e, t, o = !0) {
257
312
  return d(this, null, function* () {
258
- const s = yield this.formatData(e);
259
- JSON.stringify(this.data) !== JSON.stringify(s) && (this.hooks.emit("dataChange", s, this.data), this.data = f({}, s), this.init(), t && this.setState(t, { userAction: o }), this.hooks.emit("dataLoaded", this.data));
313
+ const i = yield this.formatData(e);
314
+ JSON.stringify(this.data) !== JSON.stringify(i) && (this.hooks.emit("dataChange", i, this.data), this.data = f({}, i), this.init(), t && this.setState(t, { userAction: o }), this.hooks.emit("dataLoaded", this.data));
260
315
  });
261
316
  }
262
317
  formatData(e) {
@@ -268,22 +323,22 @@ class Me extends A {
268
323
  */
269
324
  init() {
270
325
  return d(this, null, function* () {
271
- var o, s, i, m;
272
- const e = (s = (o = this.data) == null ? void 0 : o.north_rad) != null ? s : null;
326
+ var o, i, s, m;
327
+ const e = (i = (o = this.data) == null ? void 0 : o.north_rad) != null ? i : null;
273
328
  this._clearCompassIfNeed(), e !== null && (this.compassMesh = yield this.loadCompassMesh(), this.compassMesh && (this.compassMesh.rotateX(-Math.PI / 2), this.compassMesh.rotateZ(e - Math.PI / 2), this.group.add(this.compassMesh))), this._clearLogoIfNeed(), this.logoMesh = yield this.loadLogoMesh(), this.logoMesh && (this.logoMesh.rotateX(-Math.PI / 2), this.group.add(this.logoMesh));
274
- const t = (m = (i = this.data) == null ? void 0 : i.entrance) != null ? m : null;
329
+ const t = (m = (s = this.data) == null ? void 0 : s.entrance) != null ? m : null;
275
330
  this._clearEntryDoorIfNeed(), t !== null && (this.entryDoorMesh = yield this.loadEntryDoorMesh(), this.roomInfoWrapperInstance = this.loadRoomInfo(), this.roomInfoInstance = U(), this.entryDoorMesh.rotateX(-Math.PI / 2), this.roomInfoWrapperInstance && this.roomInfoInstance.appendTo(this.roomInfoWrapperInstance.container), this.group.add(this.entryDoorMesh)), this.onFivePanoArrived(this.five.panoIndex || 0), this.five.needsRender = !0;
276
331
  });
277
332
  }
278
333
  loadCompassMesh() {
279
334
  return d(this, null, function* () {
280
- const e = this.state.config.compassImageUrl, t = yield M(e), o = new a.CircleGeometry(0.7, 32), s = new a.MeshBasicMaterial({
335
+ const e = this.state.config.compassImageUrl, t = yield M(e), o = new a.CircleGeometry(0.7, 32), i = new a.MeshBasicMaterial({
281
336
  map: t,
282
337
  transparent: !0,
283
338
  opacity: 0,
284
339
  depthTest: !1
285
- }), i = new a.Mesh(o, s);
286
- return i.name = "pano-compass-mesh", i;
340
+ }), s = new a.Mesh(o, i);
341
+ return s.name = "pano-compass-mesh", s;
287
342
  });
288
343
  }
289
344
  loadLogoMesh() {
@@ -292,24 +347,24 @@ class Me extends A {
292
347
  return;
293
348
  const e = this.state.config.logoURL, t = yield M(e);
294
349
  t.minFilter = a.NearestFilter, t.magFilter = a.NearestFilter;
295
- const o = new a.PlaneBufferGeometry(0.4, 0.4), s = new a.MeshBasicMaterial({
350
+ const o = new a.PlaneBufferGeometry(0.4, 0.4), i = new a.MeshBasicMaterial({
296
351
  map: t,
297
352
  opacity: 0,
298
353
  transparent: !0,
299
354
  depthTest: !1
300
- }), i = new a.Mesh(o, s);
301
- return i.name = "pano-compass-logo-mesh", i;
355
+ }), s = new a.Mesh(o, i);
356
+ return s.name = "pano-compass-logo-mesh", s;
302
357
  });
303
358
  }
304
359
  loadEntryDoorMesh() {
305
360
  return d(this, null, function* () {
306
- const e = this.state.config.entryDoorImageUrl, t = yield M(e), o = new a.PlaneGeometry(0.2, 0.16), s = new a.MeshBasicMaterial({
361
+ const e = this.state.config.entryDoorImageUrl, t = yield M(e), o = new a.PlaneGeometry(0.2, 0.16), i = new a.MeshBasicMaterial({
307
362
  map: t,
308
363
  transparent: !0,
309
364
  opacity: 0.8,
310
365
  depthTest: !1
311
- }), i = new a.Mesh(o, s);
312
- return i.name = "pano-compass-entry-door", i;
366
+ }), s = new a.Mesh(o, i);
367
+ return s.name = "pano-compass-entry-door", s;
313
368
  });
314
369
  }
315
370
  loadRoomInfo() {
@@ -323,5 +378,5 @@ class Me extends A {
323
378
  }
324
379
  }
325
380
  export {
326
- Me as PanoCompassController
381
+ yt as PanoCompassController
327
382
  };