@realsee/dnalogel 3.48.7 → 3.49.1

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 (140) hide show
  1. package/CHANGELOG.md +12 -3
  2. package/dist/Sculpt/Meshes/Line.d.ts +2 -1
  3. package/dist/Sculpt/Meshes/Prism.d.ts +1 -0
  4. package/dist/index.cjs.js +3008 -87
  5. package/dist/index.js +39484 -20079
  6. package/dist/index.umd.js +3001 -80
  7. package/dist/shared-utils/Object3DHelper/Controller/RotateController.d.ts +0 -1
  8. package/dist/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +1 -1
  9. package/dist/shared-utils/three/PointSelector/index.d.ts +2 -1
  10. package/dist/shared-utils/three/generatePolygonGeometry.d.ts +1 -1
  11. package/dist/shared-utils/three/index.d.ts +1 -1
  12. package/libs/AreaMakerPlugin/Controller.js +7 -4
  13. package/libs/AreaMakerPlugin/index.js +7 -4
  14. package/libs/AreaMakerPlugin/utils/Item.js +7 -4
  15. package/libs/CSS3DRenderPlugin/Controller.js +12 -9
  16. package/libs/CSS3DRenderPlugin/index.js +9 -6
  17. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +21 -18
  18. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +6 -3
  19. package/libs/CruisePlugin/BaseController.js +12 -9
  20. package/libs/CruisePlugin/Move.js +7 -4
  21. package/libs/CruisePlugin/Work.js +7 -4
  22. package/libs/CruisePlugin/index.js +11 -8
  23. package/libs/CurrentPanoImagePlugin/Controller.js +6 -3
  24. package/libs/CurrentPanoImagePlugin/index.js +7 -4
  25. package/libs/GuideLinePlugin/Controller.js +9 -6
  26. package/libs/GuideLinePlugin/GuideLineItem.js +7 -4
  27. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +4 -3
  28. package/libs/GuideLinePlugin/GuideLineModeItem.js +7 -4
  29. package/libs/GuideLinePlugin/index.js +11 -8
  30. package/libs/ModelMakerPlugin/Controller.js +7 -4
  31. package/libs/ModelMakerPlugin/index.js +7 -4
  32. package/libs/ModelMakerPlugin/item/baseItem.js +2 -2
  33. package/libs/ModelMakerPlugin/item/boxItem.js +2 -2
  34. package/libs/ModelMakerPlugin/item/polygonItem.js +2 -2
  35. package/libs/ModelMakerPlugin/item/prismItem.js +2 -2
  36. package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +1 -1
  37. package/libs/ModelTVVideoPlugin/Plugin.js +7 -4
  38. package/libs/ModelTVVideoPlugin/index.js +6 -3
  39. package/libs/Object3DHelperPlugin/Controller.js +6 -3
  40. package/libs/Object3DHelperPlugin/index.js +9 -6
  41. package/libs/PanoCompassPlugin/Controller.js +6 -3
  42. package/libs/PanoCompassPlugin/index.js +7 -4
  43. package/libs/PanoDoorLabelPlugin/BaseController.js +16 -13
  44. package/libs/PanoDoorLabelPlugin/Controller.js +58 -55
  45. package/libs/PanoDoorLabelPlugin/index.js +7 -4
  46. package/libs/PanoMeasurePlugin/Components/Controller0.js +6 -3
  47. package/libs/PanoMeasurePlugin/Components/Controller1.js +6 -3
  48. package/libs/PanoMeasurePlugin/Controller/EditController.js +6 -3
  49. package/libs/PanoMeasurePlugin/Controller/WatchController.js +6 -3
  50. package/libs/PanoMeasurePlugin/Controller/index.js +6 -3
  51. package/libs/PanoMeasurePlugin/Model/area.js +6 -3
  52. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +4 -1
  53. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +6 -3
  54. package/libs/PanoMeasurePlugin/index.js +17 -14
  55. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +16 -13
  56. package/libs/PanoSpatialTagPlugin/Plugin.js +7 -4
  57. package/libs/PanoSpatialTagPlugin/index.js +4 -1
  58. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +24 -21
  59. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +6 -3
  60. package/libs/PanoTagPlugin/Components/Tag/index.js +6 -3
  61. package/libs/PanoTagPlugin/Components/TagContainer.js +6 -3
  62. package/libs/PanoTagPlugin/Components/TagItem.js +6 -3
  63. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +11 -5
  64. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +14 -11
  65. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +12 -9
  66. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +10 -7
  67. package/libs/PanoTagPlugin/controller/TagRender.js +7 -4
  68. package/libs/PanoTagPlugin/controller/TagUtil.js +7 -4
  69. package/libs/PanoTagPlugin/controller/index.js +10 -7
  70. package/libs/PanoTagPlugin/index.js +16 -13
  71. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +25 -22
  72. package/libs/PanoVideoPlugin/Controller.js +9 -6
  73. package/libs/PanoVideoPlugin/VideoMeshController.js +6 -3
  74. package/libs/PanoVideoPlugin/index.js +9 -6
  75. package/libs/PipelinePlugin/Controller.js +13 -10
  76. package/libs/PipelinePlugin/index.js +7 -4
  77. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +6 -3
  78. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +16 -13
  79. package/libs/PipelinePlugin/utils/Objects/Pipe.js +20 -17
  80. package/libs/Sculpt/Meshes/Box.js +7 -6
  81. package/libs/Sculpt/Meshes/Cylinder.js +4 -3
  82. package/libs/Sculpt/Meshes/Line.d.ts +2 -1
  83. package/libs/Sculpt/Meshes/Line.js +11 -10
  84. package/libs/Sculpt/Meshes/LineWithDots.js +1 -1
  85. package/libs/Sculpt/Meshes/Point.js +11 -10
  86. package/libs/Sculpt/Meshes/PolygonWithEdge.js +1 -1
  87. package/libs/Sculpt/Meshes/Polyline.js +31 -31
  88. package/libs/Sculpt/Meshes/Prism.d.ts +1 -0
  89. package/libs/Sculpt/Meshes/Prism.js +48 -38
  90. package/libs/Sculpt/Meshes/Rectangle.js +5 -4
  91. package/libs/Sculpt/Objects/Line/Editor.js +4 -3
  92. package/libs/Sculpt/index.js +4 -3
  93. package/libs/Sculpt/utils/Modules/Global.js +1 -1
  94. package/libs/Sculpt/utils/three/ColoredMesh.js +5 -4
  95. package/libs/base/BasePlugin.js +5 -4
  96. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +6 -3
  97. package/libs/floorplan/MapviewFloorplanPlugin/index.js +7 -4
  98. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +6 -3
  99. package/libs/floorplan/ModelFloorplanPlugin/index.js +7 -4
  100. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +6 -3
  101. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +7 -4
  102. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +6 -3
  103. package/libs/floorplan/TopviewFloorplanPlugin/index.js +7 -4
  104. package/libs/floorplan/index.js +2 -1
  105. package/libs/index.js +131 -128
  106. package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +57 -57
  107. package/libs/shared-utils/Object3DHelper/Controller/RotateController.d.ts +0 -1
  108. package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +91 -97
  109. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +1 -1
  110. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +34 -31
  111. package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +1 -1
  112. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -1
  113. package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -1
  114. package/libs/shared-utils/five/FiveDomEvents.js +1 -1
  115. package/libs/shared-utils/five/FiveLine.js +6 -18
  116. package/libs/shared-utils/five/index.js +4 -3
  117. package/libs/shared-utils/five/lookObject.js +18 -17
  118. package/libs/shared-utils/index.js +1 -1
  119. package/libs/shared-utils/logger.js +1 -1
  120. package/libs/shared-utils/three/PointSelector/index.d.ts +2 -1
  121. package/libs/shared-utils/three/PointSelector/index.js +24 -22
  122. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +1 -1
  123. package/libs/shared-utils/three/boundingBox.js +1 -1
  124. package/libs/shared-utils/three/generatePolygonGeometry.d.ts +1 -1
  125. package/libs/shared-utils/three/generatePolygonGeometry.js +8 -10
  126. package/libs/shared-utils/three/index.d.ts +1 -1
  127. package/libs/shared-utils/three/index.js +2 -1
  128. package/libs/vendor/three/build/three.module.js +19336 -0
  129. package/libs/vendor/three/examples/jsm/lines/LineGeometry.js +28 -0
  130. package/libs/vendor/three/examples/jsm/lines/LineSegmentsGeometry.js +69 -0
  131. package/package.json +1 -1
  132. /package/dist/shared-utils/three/{objects → core}/LineSegments.d.ts +0 -0
  133. /package/dist/shared-utils/three/{THREERaycaster.d.ts → core/Raycaster.d.ts} +0 -0
  134. /package/dist/shared-utils/three/{THREESphere.d.ts → core/Sphere.d.ts} +0 -0
  135. /package/libs/shared-utils/three/{objects → core}/LineSegments.d.ts +0 -0
  136. /package/libs/shared-utils/three/{objects → core}/LineSegments.js +0 -0
  137. /package/libs/shared-utils/three/{THREERaycaster.d.ts → core/Raycaster.d.ts} +0 -0
  138. /package/libs/shared-utils/three/{THREERaycaster.js → core/Raycaster.js} +0 -0
  139. /package/libs/shared-utils/three/{THREESphere.d.ts → core/Sphere.d.ts} +0 -0
  140. /package/libs/shared-utils/three/{THREESphere.js → core/Sphere.js} +0 -0
@@ -7,6 +7,9 @@ import "../shared-utils/Subscribe.js";
7
7
  import "hammerjs";
8
8
  import "three/examples/jsm/renderers/CSS3DRenderer";
9
9
  import "@realsee/five/line";
10
+ import "../vendor/three/examples/jsm/lines/LineGeometry.js";
11
+ import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
12
+ import "../vendor/three/build/three.module.js";
10
13
  import "../shared-utils/tag.js";
11
14
  import "../shared-utils/positionToVector3.js";
12
15
  import "../shared-utils/five/vector3ToScreen.js";
@@ -16,7 +19,7 @@ import "../shared-utils/Utils/BaseUtil.js";
16
19
  import "../shared-utils/Utils/WorkUtil.js";
17
20
  import "../shared-utils/five/transformPosition.js";
18
21
  import "../shared-utils/three/temp.js";
19
- import "../shared-utils/three/THREESphere.js";
22
+ import "../shared-utils/three/core/Sphere.js";
20
23
  import "animejs";
21
24
  import "../shared-utils/url/absoluteUrl.js";
22
25
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
@@ -43,8 +46,8 @@ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
43
46
  import "../shared-utils/five/fiveModelLoad.js";
44
47
  import "../shared-utils/animationFrame/BetterTween.js";
45
48
  import "../shared-utils/animationFrame/index.js";
46
- const W = (o, r) => new t(o, r);
49
+ const Z = (o, r) => new t(o, r);
47
50
  export {
48
- W as PanoCompassPlugin,
49
- W as default
51
+ Z as PanoCompassPlugin,
52
+ Z as default
50
53
  };
@@ -1,16 +1,16 @@
1
- var p = Object.defineProperty, m = Object.defineProperties;
1
+ var l = Object.defineProperty, m = Object.defineProperties;
2
2
  var d = Object.getOwnPropertyDescriptors;
3
3
  var h = Object.getOwnPropertySymbols;
4
4
  var u = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
5
- var o = (i, e, t) => e in i ? p(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, s = (i, e) => {
5
+ var a = (i, e, t) => e in i ? l(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, s = (i, e) => {
6
6
  for (var t in e || (e = {}))
7
- u.call(e, t) && o(i, t, e[t]);
7
+ u.call(e, t) && a(i, t, e[t]);
8
8
  if (h)
9
9
  for (var t of h(e))
10
- b.call(e, t) && o(i, t, e[t]);
10
+ b.call(e, t) && a(i, t, e[t]);
11
11
  return i;
12
12
  }, r = (i, e) => m(i, d(e));
13
- var a = (i, e, t) => (o(i, typeof e != "symbol" ? e + "" : e, t), t);
13
+ var o = (i, e, t) => (a(i, typeof e != "symbol" ? e + "" : e, t), t);
14
14
  import { Five as v } from "@realsee/five";
15
15
  import { Controller as c } from "../base/BasePlugin.js";
16
16
  import "../shared-utils/Subscribe.js";
@@ -18,6 +18,9 @@ import "three";
18
18
  import "hammerjs";
19
19
  import "three/examples/jsm/renderers/CSS3DRenderer";
20
20
  import "@realsee/five/line";
21
+ import "../vendor/three/examples/jsm/lines/LineGeometry.js";
22
+ import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
23
+ import "../vendor/three/build/three.module.js";
21
24
  import "../shared-utils/tag.js";
22
25
  import "../shared-utils/positionToVector3.js";
23
26
  import "../shared-utils/five/vector3ToScreen.js";
@@ -27,16 +30,16 @@ import "../shared-utils/Utils/BaseUtil.js";
27
30
  import "../shared-utils/Utils/WorkUtil.js";
28
31
  import "../shared-utils/five/transformPosition.js";
29
32
  import "../shared-utils/three/temp.js";
30
- import "../shared-utils/three/THREESphere.js";
33
+ import "../shared-utils/three/core/Sphere.js";
31
34
  import "animejs";
32
35
  import "../shared-utils/url/absoluteUrl.js";
33
36
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
34
- class H extends c {
37
+ class K extends c {
35
38
  constructor(t) {
36
39
  super(t);
37
- a(this, "state");
38
- a(this, "container");
39
- a(this, "enabled");
40
+ o(this, "state");
41
+ o(this, "container");
42
+ o(this, "enabled");
40
43
  this.five = t, this.five.once("dispose", this.dispose), this.enabled = !0, this.state = this.initState();
41
44
  }
42
45
  /**
@@ -86,8 +89,8 @@ class H extends c {
86
89
  setState(t, n) {
87
90
  if (!this.enabled)
88
91
  return;
89
- const l = s({}, this.state);
90
- this.state = s(s(s({}, this.state), t), n), this.stateChangedCallback(l, n);
92
+ const p = s({}, this.state);
93
+ this.state = s(s(s({}, this.state), t), n), this.stateChangedCallback(p, n);
91
94
  }
92
95
  get visible() {
93
96
  return this.five.state.mode === v.Mode.Panorama;
@@ -100,5 +103,5 @@ class H extends c {
100
103
  }
101
104
  }
102
105
  export {
103
- H as BasePanoPluginController
106
+ K as BasePanoPluginController
104
107
  };
@@ -2,15 +2,15 @@ var $ = Object.defineProperty, B = Object.defineProperties;
2
2
  var U = Object.getOwnPropertyDescriptors;
3
3
  var C = Object.getOwnPropertySymbols;
4
4
  var G = Object.prototype.hasOwnProperty, N = Object.prototype.propertyIsEnumerable;
5
- var T = (p, a, e) => a in p ? $(p, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[a] = e, H = (p, a) => {
6
- for (var e in a || (a = {}))
7
- G.call(a, e) && T(p, e, a[e]);
5
+ var T = (p, a, i) => a in p ? $(p, a, { enumerable: !0, configurable: !0, writable: !0, value: i }) : p[a] = i, H = (p, a) => {
6
+ for (var i in a || (a = {}))
7
+ G.call(a, i) && T(p, i, a[i]);
8
8
  if (C)
9
- for (var e of C(a))
10
- N.call(a, e) && T(p, e, a[e]);
9
+ for (var i of C(a))
10
+ N.call(a, i) && T(p, i, a[i]);
11
11
  return p;
12
12
  }, W = (p, a) => B(p, U(a));
13
- var r = (p, a, e) => (T(p, typeof a != "symbol" ? a + "" : a, e), e);
13
+ var r = (p, a, i) => (T(p, typeof a != "symbol" ? a + "" : a, i), i);
14
14
  import { Raycaster as Q, Vector3 as V, Quaternion as j, Euler as z } from "three";
15
15
  import { BasePanoPluginController as q } from "./BaseController.js";
16
16
  import X from "./DoorLabelItem.js";
@@ -21,6 +21,9 @@ import "../shared-utils/Subscribe.js";
21
21
  import "hammerjs";
22
22
  import "three/examples/jsm/renderers/CSS3DRenderer";
23
23
  import "@realsee/five/line";
24
+ import "../vendor/three/examples/jsm/lines/LineGeometry.js";
25
+ import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
26
+ import "../vendor/three/build/three.module.js";
24
27
  import "../shared-utils/tag.js";
25
28
  import "../shared-utils/positionToVector3.js";
26
29
  import "../shared-utils/five/vector3ToScreen.js";
@@ -30,16 +33,16 @@ import "../shared-utils/Utils/BaseUtil.js";
30
33
  import "../shared-utils/Utils/WorkUtil.js";
31
34
  import "../shared-utils/five/transformPosition.js";
32
35
  import "../shared-utils/three/temp.js";
33
- import "../shared-utils/three/THREESphere.js";
36
+ import "../shared-utils/three/core/Sphere.js";
34
37
  import "animejs";
35
38
  import "../shared-utils/url/absoluteUrl.js";
36
39
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
37
40
  import "../vendor/svelte/internal/index.js";
38
41
  import "../vendor/classnames/index.js";
39
- const ee = { userAction: !0 };
40
- class Me extends q {
41
- constructor(e) {
42
- super(e);
42
+ const ii = { userAction: !0 };
43
+ class Ti extends q {
44
+ constructor(i) {
45
+ super(i);
43
46
  r(this, "MinVisibledistance", 1.8);
44
47
  r(this, "MaxVisibledistance", 5);
45
48
  r(this, "OffsetHeight", -1.3);
@@ -55,19 +58,19 @@ class Me extends q {
55
58
  /** 数据 */
56
59
  r(this, "doorLabels");
57
60
  r(this, "roomObservers");
58
- r(this, "loadData", (e, n) => {
61
+ r(this, "loadData", (i, n) => {
59
62
  n && (this.MaxVisibledistance = n.MaxVisibledistance, this.MinVisibledistance = n.MinVisibledistance, this.OffsetHeight = n.OffsetHeight), this.doorLabelItems && this.doorLabelItems.length > 0 && this.doorLabelItems.forEach((d) => {
60
63
  d.$destroy();
61
- }), this.labelItems = [], this.doorLabels = [], this.doorLabelItems = [], this.floorplanServerData = e, typeof this.five.ready == "function" ? this.five.ready().then(() => this.initData()) : this.five.once("panoArrived", () => {
64
+ }), this.labelItems = [], this.doorLabels = [], this.doorLabelItems = [], this.floorplanServerData = i, typeof this.five.ready == "function" ? this.five.ready().then(() => this.initData()) : this.five.once("panoArrived", () => {
62
65
  this.initData();
63
66
  });
64
67
  });
65
68
  r(this, "initRoomObservers", () => {
66
69
  var l, h;
67
- const e = this.floorplanServerData.computed_data.floor_datas || [], d = (((h = (l = this.five) == null ? void 0 : l.work) == null ? void 0 : h.observers) || []).map((o) => {
68
- const s = o.panoIndex, f = o.floorIndex, i = e == null ? void 0 : e.find((t) => t.floor_index === f);
69
- if (i) {
70
- const t = i.rooms.find((c) => c.observer_indexs.includes(s));
70
+ const i = this.floorplanServerData.computed_data.floor_datas || [], d = (((h = (l = this.five) == null ? void 0 : l.work) == null ? void 0 : h.observers) || []).map((o) => {
71
+ const s = o.panoIndex, f = o.floorIndex, e = i == null ? void 0 : i.find((t) => t.floor_index === f);
72
+ if (e) {
73
+ const t = e.rooms.find((c) => c.observer_indexs.includes(s));
71
74
  if (t)
72
75
  return { panoIndex: s, floorIndex: f, name: t.name };
73
76
  }
@@ -75,31 +78,31 @@ class Me extends q {
75
78
  this.roomObservers = d;
76
79
  });
77
80
  r(this, "hideAllLabels", () => {
78
- this.labelItems.forEach((e) => {
79
- e.visible = !1, e.inSight = !1;
81
+ this.labelItems.forEach((i) => {
82
+ i.visible = !1, i.inSight = !1;
80
83
  }), this.render();
81
84
  });
82
85
  r(this, "fixDoorVisibleAndPosition", () => {
83
86
  this.initRoomObservers();
84
- const { panoIndex: e } = this.five;
85
- if (!this.visible || this.five.model.empty || e === null || !this.roomObservers.find((o) => o.panoIndex === e))
87
+ const { panoIndex: i } = this.five;
88
+ if (!this.visible || this.five.model.empty || i === null || !this.roomObservers.find((o) => o.panoIndex === i))
86
89
  return;
87
- const n = this.roomObservers.find((o) => o.panoIndex === e), l = this.five.work.observers.find((o) => o.panoIndex === e).position.clone(), h = (() => {
88
- if (this.visibleLabelMap.has(e))
89
- return this.visibleLabelMap.get(e);
90
+ const n = this.roomObservers.find((o) => o.panoIndex === i), l = this.five.work.observers.find((o) => o.panoIndex === i).position.clone(), h = (() => {
91
+ if (this.visibleLabelMap.has(i))
92
+ return this.visibleLabelMap.get(i);
90
93
  {
91
94
  const o = [];
92
95
  return this.doorLabels.forEach((s, f) => {
93
96
  if (s.roomName === n.name)
94
97
  return;
95
- const i = s.position.clone(), t = i.distanceTo(l);
98
+ const e = s.position.clone(), t = e.distanceTo(l);
96
99
  if (t < this.MinVisibledistance || t > this.MaxVisibledistance)
97
100
  return;
98
- const c = new Q(), v = i.clone().sub(l).normalize();
101
+ const c = new Q(), v = e.clone().sub(l).normalize();
99
102
  c.set(l, v);
100
103
  const [b] = this.five.model.intersectRaycaster(c);
101
104
  b && b.distance + 0.1 < t || o.push(f);
102
- }), this.visibleLabelMap.set(e, o), o;
105
+ }), this.visibleLabelMap.set(i, o), o;
103
106
  }
104
107
  })();
105
108
  this.labelItems.forEach((o, s) => {
@@ -107,9 +110,9 @@ class Me extends q {
107
110
  }), this.fixDoorPosition();
108
111
  });
109
112
  r(this, "fixDoorPosition", () => {
110
- var i, t, c, v, b, y, g, w, L, E, _, S;
111
- const { panoIndex: e, camera: n } = this.five;
112
- if (e === null)
113
+ var e, t, c, v, b, y, g, w, L, E, _, S;
114
+ const { panoIndex: i, camera: n } = this.five;
115
+ if (i === null)
113
116
  return;
114
117
  if (this.five.currentMode !== "Panorama")
115
118
  return this.hideAllLabels();
@@ -130,7 +133,7 @@ class Me extends q {
130
133
  const R = {
131
134
  left: l * M / 100,
132
135
  top: h * k / 100,
133
- width: (c = (t = (i = I.children) == null ? void 0 : i[0]) == null ? void 0 : t.clientWidth) != null ? c : 0,
136
+ width: (c = (t = (e = I.children) == null ? void 0 : e[0]) == null ? void 0 : t.clientWidth) != null ? c : 0,
134
137
  height: (y = (b = (v = I.children) == null ? void 0 : v[0]) == null ? void 0 : b.clientHeight) != null ? y : 0
135
138
  }, F = {
136
139
  left: l * O / 100,
@@ -143,21 +146,21 @@ class Me extends q {
143
146
  }
144
147
  this.labelItems = f, this.render();
145
148
  });
146
- r(this, "onClick", (e, n) => {
149
+ r(this, "onClick", (i, n) => {
147
150
  if (!this.roomObservers)
148
151
  return;
149
152
  const { work: d } = this.five;
150
153
  let l, h, o = 1 / 0;
151
154
  for (const s of d.observers)
152
- if (this.roomObservers.find((i) => i.panoIndex === s.panoIndex && i.name === e)) {
153
- const i = s.standingPosition, t = n.distanceTo(i);
154
- t < o && (l = s.panoIndex, h = i.clone().sub(n).normalize(), o = t);
155
+ if (this.roomObservers.find((e) => e.panoIndex === s.panoIndex && e.name === i)) {
156
+ const e = s.standingPosition, t = n.distanceTo(e);
157
+ t < o && (l = s.panoIndex, h = e.clone().sub(n).normalize(), o = t);
155
158
  }
156
159
  if (h !== null && l !== null) {
157
160
  const s = {};
158
161
  if (o > 0) {
159
- const i = new V(0, 0, -1), t = h.clone(), c = new j();
160
- c.setFromUnitVectors(i, t);
162
+ const e = new V(0, 0, -1), t = h.clone(), c = new j();
163
+ c.setFromUnitVectors(e, t);
161
164
  const v = new z();
162
165
  v.setFromQuaternion(c, "YXZ"), s.longitude = v.y;
163
166
  }
@@ -167,12 +170,12 @@ class Me extends q {
167
170
  r(this, "initData", () => {
168
171
  var l;
169
172
  this.doorLabels = [];
170
- const e = this.five.panoIndex, n = this.floorplanServerData.computed_data.observers[e].floor_index, d = n !== void 0 && ((l = this.floorplanServerData.computed_data.floor_datas[n]) == null ? void 0 : l.rooms);
173
+ const i = this.five.panoIndex, n = this.floorplanServerData.computed_data.observers[i].floor_index, d = n !== void 0 && ((l = this.floorplanServerData.computed_data.floor_datas[n]) == null ? void 0 : l.rooms);
171
174
  this.rooms = d, this.rooms && this.rooms.length > 0 && this.rooms.forEach((h) => {
172
175
  var f;
173
- const o = (f = this.floorplanServerData.computed_data.doors) == null ? void 0 : f.filter((i) => !!(i && i.name === h.name)), s = this.five.work.observers.filter((i, t) => !!h.observer_indexs.find((c) => c === t));
174
- o && o.forEach((i) => {
175
- const t = i.position;
176
+ const o = (f = this.floorplanServerData.computed_data.doors) == null ? void 0 : f.filter((e) => !!(e && e.name === h.name)), s = this.five.work.observers.filter((e, t) => !!h.observer_indexs.find((c) => c === t));
177
+ o && o.forEach((e) => {
178
+ const t = e.position;
176
179
  let c = 1 / 0, v;
177
180
  s.forEach((y) => {
178
181
  const g = y.standingPosition, w = {
@@ -183,11 +186,11 @@ class Me extends q {
183
186
  L < c && (c = L, v = w);
184
187
  }), v && (t.y = v.y + 0.01);
185
188
  const b = new V(t.x, t.y, t.z);
186
- b.add(new V(-0.2, 1.8, 0).applyEuler(new z(0, i.rad, 0))), this.doorLabels.push({
189
+ b.add(new V(-0.2, 1.8, 0).applyEuler(new z(0, e.rad, 0))), this.doorLabels.push({
187
190
  roomName: h.name,
188
- name: i.name,
191
+ name: e.name,
189
192
  position: b,
190
- toward: K(i.rad)
193
+ toward: K(e.rad)
191
194
  });
192
195
  });
193
196
  }), this.labelItems = this.doorLabels.map((h) => W(H({}, h), {
@@ -200,33 +203,33 @@ class Me extends q {
200
203
  })), this.five.on("wantsToMoveToPano", this.hideAllLabels), this.five.on("modelLoaded", this.fixDoorVisibleAndPosition), this.five.on("panoArrived", this.fixDoorVisibleAndPosition), this.five.on("initAnimationEnded", this.fixDoorPosition), this.five.on("cameraUpdate", this.fixDoorPosition), this.five.on("mouseWheel", this.fixDoorPosition), this.five.on("pinchGesture", this.fixDoorPosition), this.fixDoorVisibleAndPosition();
201
204
  });
202
205
  }
203
- stateChangedCallback(e, n) {
206
+ stateChangedCallback(i, n) {
204
207
  if (this.hooks.hasListener("stateChange")) {
205
208
  const d = {
206
209
  state: this.state,
207
- prevState: e,
208
- userAction: n ? n.userAction : ee.userAction
210
+ prevState: i,
211
+ userAction: n ? n.userAction : ii.userAction
209
212
  };
210
213
  this.hooks.emit("stateChange", d);
211
214
  }
212
215
  }
213
216
  render() {
214
217
  if (!this.enabled) {
215
- this.doorLabelItems && this.doorLabelItems.length > 0 && this.doorLabelItems.forEach((e) => {
216
- e == null || e.$destroy();
218
+ this.doorLabelItems && this.doorLabelItems.length > 0 && this.doorLabelItems.forEach((i) => {
219
+ i == null || i.$destroy();
217
220
  }), this.doorLabels = void 0;
218
221
  return;
219
222
  }
220
- this.doorLabelItems && this.doorLabelItems.forEach((e) => {
221
- e.$destroy();
222
- }), this.doorLabelItems = [], this.labelItems.forEach((e) => {
223
+ this.doorLabelItems && this.doorLabelItems.forEach((i) => {
224
+ i.$destroy();
225
+ }), this.doorLabelItems = [], this.labelItems.forEach((i) => {
223
226
  this.doorLabelItems.push(
224
227
  new X({
225
228
  target: this.container,
226
229
  props: {
227
- props: e,
230
+ props: i,
228
231
  onClick: () => {
229
- this.onClick(e.name, e.position);
232
+ this.onClick(i.name, i.position);
230
233
  }
231
234
  }
232
235
  })
@@ -241,5 +244,5 @@ class Me extends q {
241
244
  }
242
245
  }
243
246
  export {
244
- Me as PanoDoorLabelPluginController
247
+ Ti as PanoDoorLabelPluginController
245
248
  };
@@ -7,6 +7,9 @@ import "../shared-utils/Subscribe.js";
7
7
  import "hammerjs";
8
8
  import "three/examples/jsm/renderers/CSS3DRenderer";
9
9
  import "@realsee/five/line";
10
+ import "../vendor/three/examples/jsm/lines/LineGeometry.js";
11
+ import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
12
+ import "../vendor/three/build/three.module.js";
10
13
  import "../shared-utils/tag.js";
11
14
  import "../shared-utils/positionToVector3.js";
12
15
  import "../shared-utils/five/vector3ToScreen.js";
@@ -16,7 +19,7 @@ import "../shared-utils/Utils/BaseUtil.js";
16
19
  import "../shared-utils/Utils/WorkUtil.js";
17
20
  import "../shared-utils/five/transformPosition.js";
18
21
  import "../shared-utils/three/temp.js";
19
- import "../shared-utils/three/THREESphere.js";
22
+ import "../shared-utils/three/core/Sphere.js";
20
23
  import "animejs";
21
24
  import "../shared-utils/url/absoluteUrl.js";
22
25
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
@@ -24,8 +27,8 @@ import "./DoorLabelItem.js";
24
27
  import "../vendor/svelte/internal/index.js";
25
28
  import "../vendor/classnames/index.js";
26
29
  import "./utils.js";
27
- const y = (o) => new r(o);
30
+ const B = (o) => new r(o);
28
31
  export {
29
- y as PanoDoorLabelPlugin,
30
- y as default
32
+ B as PanoDoorLabelPlugin,
33
+ B as default
31
34
  };
@@ -32,6 +32,9 @@ import "../utils/dom/areaDom.js";
32
32
  import "../../shared-utils/three/geometryUtil.js";
33
33
  import "hammerjs";
34
34
  import "three/examples/jsm/renderers/CSS3DRenderer";
35
+ import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
36
+ import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
37
+ import "../../vendor/three/build/three.module.js";
35
38
  import "../../shared-utils/tag.js";
36
39
  import "../../shared-utils/positionToVector3.js";
37
40
  import "../../shared-utils/five/vector3ToScreen.js";
@@ -42,7 +45,7 @@ import "../../shared-utils/Subscribe.js";
42
45
  import "../../shared-utils/Utils/WorkUtil.js";
43
46
  import "../../shared-utils/five/transformPosition.js";
44
47
  import "../../shared-utils/three/temp.js";
45
- import "../../shared-utils/three/THREESphere.js";
48
+ import "../../shared-utils/three/core/Sphere.js";
46
49
  import "animejs";
47
50
  import "../../shared-utils/isNil.js";
48
51
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
@@ -286,7 +289,7 @@ function re(n, o, i) {
286
289
  u
287
290
  ];
288
291
  }
289
- class qt extends j {
292
+ class Ot extends j {
290
293
  constructor(o) {
291
294
  super(), x(
292
295
  this,
@@ -304,5 +307,5 @@ class qt extends j {
304
307
  }
305
308
  }
306
309
  export {
307
- qt as default
310
+ Ot as default
308
311
  };
@@ -36,6 +36,9 @@ import "../utils/dom/areaDom.js";
36
36
  import "../../shared-utils/three/geometryUtil.js";
37
37
  import "hammerjs";
38
38
  import "three/examples/jsm/renderers/CSS3DRenderer";
39
+ import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
40
+ import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
41
+ import "../../vendor/three/build/three.module.js";
39
42
  import "../../shared-utils/tag.js";
40
43
  import "../../shared-utils/positionToVector3.js";
41
44
  import "../../shared-utils/five/vector3ToScreen.js";
@@ -46,7 +49,7 @@ import "../../shared-utils/Subscribe.js";
46
49
  import "../../shared-utils/Utils/WorkUtil.js";
47
50
  import "../../shared-utils/five/transformPosition.js";
48
51
  import "../../shared-utils/three/temp.js";
49
- import "../../shared-utils/three/THREESphere.js";
52
+ import "../../shared-utils/three/core/Sphere.js";
50
53
  import "animejs";
51
54
  import "../../shared-utils/isNil.js";
52
55
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
@@ -436,7 +439,7 @@ function de(o, t, i) {
436
439
  x
437
440
  ];
438
441
  }
439
- class Jt extends ee {
442
+ class Qt extends ee {
440
443
  constructor(t) {
441
444
  super(), te(
442
445
  this,
@@ -454,5 +457,5 @@ class Jt extends ee {
454
457
  }
455
458
  }
456
459
  export {
457
- Jt as default
460
+ Qt as default
458
461
  };
@@ -45,6 +45,9 @@ import "../utils/dom/areaDom.js";
45
45
  import "../../shared-utils/three/geometryUtil.js";
46
46
  import "hammerjs";
47
47
  import "three/examples/jsm/renderers/CSS3DRenderer";
48
+ import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
49
+ import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
50
+ import "../../vendor/three/build/three.module.js";
48
51
  import "../../shared-utils/tag.js";
49
52
  import "../../shared-utils/positionToVector3.js";
50
53
  import "../../shared-utils/five/vector3ToScreen.js";
@@ -54,7 +57,7 @@ import "../../shared-utils/Subscribe.js";
54
57
  import "../../shared-utils/Utils/WorkUtil.js";
55
58
  import "../../shared-utils/five/transformPosition.js";
56
59
  import "../../shared-utils/three/temp.js";
57
- import "../../shared-utils/three/THREESphere.js";
60
+ import "../../shared-utils/three/core/Sphere.js";
58
61
  import "animejs";
59
62
  import "../../shared-utils/isNil.js";
60
63
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
@@ -87,7 +90,7 @@ import "../Modules/DeleteDom/_Assets/delete.svg.js";
87
90
  import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
88
91
  import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
89
92
  const b = () => !1;
90
- class gt extends z {
93
+ class Pt extends z {
91
94
  constructor(e) {
92
95
  super(e);
93
96
  s(this, "type", "edit");
@@ -367,5 +370,5 @@ class gt extends z {
367
370
  }
368
371
  }
369
372
  export {
370
- gt as default
373
+ Pt as default
371
374
  };
@@ -32,6 +32,9 @@ import "../Model/polyline.js";
32
32
  import "../utils/dom/areaDom.js";
33
33
  import "../../shared-utils/three/geometryUtil.js";
34
34
  import "three/examples/jsm/renderers/CSS3DRenderer";
35
+ import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
36
+ import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
37
+ import "../../vendor/three/build/three.module.js";
35
38
  import "../../shared-utils/tag.js";
36
39
  import "../../shared-utils/positionToVector3.js";
37
40
  import "../../shared-utils/five/vector3ToScreen.js";
@@ -41,7 +44,7 @@ import "../../shared-utils/Subscribe.js";
41
44
  import "../../shared-utils/Utils/WorkUtil.js";
42
45
  import "../../shared-utils/five/transformPosition.js";
43
46
  import "../../shared-utils/three/temp.js";
44
- import "../../shared-utils/three/THREESphere.js";
47
+ import "../../shared-utils/three/core/Sphere.js";
45
48
  import "animejs";
46
49
  import "../../shared-utils/isNil.js";
47
50
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
@@ -52,7 +55,7 @@ import "earcut";
52
55
  import "../../shared-utils/three/getNormal.js";
53
56
  import "../utils/isIntersecting.js";
54
57
  const E = () => !1;
55
- class xt extends U {
58
+ class Ot extends U {
56
59
  constructor(t) {
57
60
  super(t);
58
61
  s(this, "type", "watch");
@@ -225,5 +228,5 @@ class xt extends U {
225
228
  }
226
229
  }
227
230
  export {
228
- xt as default
231
+ Ot as default
229
232
  };
@@ -25,8 +25,9 @@ import { safeObj as U } from "../../shared-utils/safeObj.js";
25
25
  import { Magnifier as V } from "../../shared-utils/three/Magnifier.js";
26
26
  import "three/examples/jsm/renderers/CSS3DRenderer";
27
27
  import "@realsee/five/line";
28
+ import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
28
29
  import "../../shared-utils/tag.js";
29
- import "../../shared-utils/three/THREESphere.js";
30
+ import "../../shared-utils/three/core/Sphere.js";
30
31
  import "animejs";
31
32
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
32
33
  import { isTouchDevice as K } from "../../shared-utils/isTouchDevice.js";
@@ -67,6 +68,8 @@ import "../../CSS3DRenderPlugin/utils/even.js";
67
68
  import "../../shared-utils/Subscribe.js";
68
69
  import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
69
70
  import "../../shared-utils/three/getObjectVisible.js";
71
+ import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
72
+ import "../../vendor/three/build/three.module.js";
70
73
  import "../../shared-utils/positionToVector3.js";
71
74
  import "../../shared-utils/five/vector3ToScreen.js";
72
75
  import "../../shared-utils/five/getFiveModel.js";
@@ -123,7 +126,7 @@ import "../../vendor/svelte/easing/index.js";
123
126
  import "../../vendor/object-assign-deep/objectAssignDeep.js";
124
127
  import "../Components/Tip.js";
125
128
  import "../../shared-utils/url/absoluteUrl.js";
126
- class ze extends H {
129
+ class Xe extends H {
127
130
  constructor(t, e) {
128
131
  var l, u, d, f, g, y, C, M, w, P, b, v;
129
132
  super(t);
@@ -332,5 +335,5 @@ class ze extends H {
332
335
  }
333
336
  }
334
337
  export {
335
- ze as default
338
+ Xe as default
336
339
  };
@@ -26,6 +26,9 @@ import "../utils/isIntersecting.js";
26
26
  import "../../shared-utils/three/geometryUtil.js";
27
27
  import "hammerjs";
28
28
  import "three/examples/jsm/renderers/CSS3DRenderer";
29
+ import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
30
+ import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
31
+ import "../../vendor/three/build/three.module.js";
29
32
  import "../../shared-utils/tag.js";
30
33
  import "../../shared-utils/positionToVector3.js";
31
34
  import "../../shared-utils/five/vector3ToScreen.js";
@@ -36,11 +39,11 @@ import "../../shared-utils/Subscribe.js";
36
39
  import "../../shared-utils/Utils/WorkUtil.js";
37
40
  import "../../shared-utils/five/transformPosition.js";
38
41
  import "../../shared-utils/three/temp.js";
39
- import "../../shared-utils/three/THREESphere.js";
42
+ import "../../shared-utils/three/core/Sphere.js";
40
43
  import "animejs";
41
44
  import "../../shared-utils/isNil.js";
42
45
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
43
- class st {
46
+ class rt {
44
47
  constructor(t, e) {
45
48
  i(this, "id", f());
46
49
  i(this, "selected", !1);
@@ -139,5 +142,5 @@ class st {
139
142
  }
140
143
  }
141
144
  export {
142
- st as default
145
+ rt as default
143
146
  };
@@ -2,12 +2,15 @@ import "three";
2
2
  import { Magnifier as o } from "../../shared-utils/three/Magnifier.js";
3
3
  import "three/examples/jsm/renderers/CSS3DRenderer";
4
4
  import "@realsee/five/line";
5
+ import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
5
6
  import "../../shared-utils/tag.js";
6
- import "../../shared-utils/three/THREESphere.js";
7
+ import "../../shared-utils/three/core/Sphere.js";
7
8
  import "animejs";
8
9
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
9
10
  import "hammerjs";
10
11
  import "../../shared-utils/Subscribe.js";
12
+ import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
13
+ import "../../vendor/three/build/three.module.js";
11
14
  import "../../shared-utils/positionToVector3.js";
12
15
  import "../../shared-utils/five/vector3ToScreen.js";
13
16
  import "../../shared-utils/five/getFiveModel.js";
@@ -42,6 +42,9 @@ import "../../utils/dom/areaDom.js";
42
42
  import "../../../shared-utils/three/geometryUtil.js";
43
43
  import "hammerjs";
44
44
  import "three/examples/jsm/renderers/CSS3DRenderer";
45
+ import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
46
+ import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
47
+ import "../../../vendor/three/build/three.module.js";
45
48
  import "../../../shared-utils/tag.js";
46
49
  import "../../../shared-utils/positionToVector3.js";
47
50
  import "../../../shared-utils/five/vector3ToScreen.js";
@@ -52,7 +55,7 @@ import "../../../shared-utils/Subscribe.js";
52
55
  import "../../../shared-utils/Utils/WorkUtil.js";
53
56
  import "../../../shared-utils/five/transformPosition.js";
54
57
  import "../../../shared-utils/three/temp.js";
55
- import "../../../shared-utils/three/THREESphere.js";
58
+ import "../../../shared-utils/three/core/Sphere.js";
56
59
  import "animejs";
57
60
  import "../../../shared-utils/isNil.js";
58
61
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
@@ -92,7 +95,7 @@ import "../../Components/Common/Switcher1.js";
92
95
  import "../../Components/Common/CircleButton.js";
93
96
  import "../../../vendor/svelte/transition/index.js";
94
97
  import "../../../vendor/svelte/easing/index.js";
95
- class co {
98
+ class uo {
96
99
  constructor(o, t) {
97
100
  i(this, "revoke");
98
101
  i(this, "container");
@@ -146,5 +149,5 @@ class co {
146
149
  }
147
150
  }
148
151
  export {
149
- co as UIController
152
+ uo as UIController
150
153
  };