@realsee/dnalogel 3.50.14 → 3.50.15-alpha.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 (110) hide show
  1. package/README.md +116 -0
  2. package/dist/Sculpt/Objects/Base/index.d.ts +1 -1
  3. package/dist/Sculpt/index.d.ts +4 -4
  4. package/dist/index.cjs.js +262 -262
  5. package/dist/index.js +4235 -4231
  6. package/dist/index.umd.js +263 -263
  7. package/dist/shared-utils/five/index.d.ts +2 -0
  8. package/dist/shared-utils/tag.d.ts +1 -1
  9. package/dist/shared-utils/three/index.d.ts +1 -0
  10. package/libs/AreaMakerPlugin/Controller.js +104 -74
  11. package/libs/AreaMakerPlugin/index.js +33 -3
  12. package/libs/AreaMakerPlugin/utils/Item.js +66 -36
  13. package/libs/CSS3DRenderPlugin/Controller.js +39 -19
  14. package/libs/CSS3DRenderPlugin/index.js +34 -14
  15. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +60 -35
  16. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +98 -78
  17. package/libs/CruisePlugin/BaseController.js +59 -29
  18. package/libs/CruisePlugin/Move.js +33 -14
  19. package/libs/CruisePlugin/Work.js +66 -47
  20. package/libs/CruisePlugin/index.js +38 -19
  21. package/libs/CurrentPanoImagePlugin/Controller.js +68 -38
  22. package/libs/CurrentPanoImagePlugin/index.js +34 -4
  23. package/libs/GuideLinePlugin/Controller.js +69 -50
  24. package/libs/GuideLinePlugin/GuideLineItem.js +34 -15
  25. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
  26. package/libs/GuideLinePlugin/GuideLineModeItem.js +34 -15
  27. package/libs/GuideLinePlugin/index.js +38 -19
  28. package/libs/ModelMakerPlugin/Controller.js +60 -42
  29. package/libs/ModelMakerPlugin/index.js +34 -16
  30. package/libs/ModelTVVideoPlugin/Plugin.js +48 -28
  31. package/libs/ModelTVVideoPlugin/index.js +24 -4
  32. package/libs/Object3DHelperPlugin/Controller.js +49 -30
  33. package/libs/Object3DHelperPlugin/index.js +36 -17
  34. package/libs/PanoCompassPlugin/Controller.js +33 -13
  35. package/libs/PanoCompassPlugin/index.js +34 -14
  36. package/libs/PanoDoorLabelPlugin/BaseController.js +55 -25
  37. package/libs/PanoDoorLabelPlugin/Controller.js +99 -69
  38. package/libs/PanoDoorLabelPlugin/index.js +34 -4
  39. package/libs/PanoMeasurePlugin/Components/Controller0.js +8 -8
  40. package/libs/PanoMeasurePlugin/Components/Controller1.js +8 -8
  41. package/libs/PanoMeasurePlugin/Controller/WatchController.js +75 -49
  42. package/libs/PanoMeasurePlugin/Controller/index.js +16 -16
  43. package/libs/PanoMeasurePlugin/Model/area.js +41 -15
  44. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +29 -0
  45. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +8 -8
  46. package/libs/PanoMeasurePlugin/index.js +3 -3
  47. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +43 -15
  48. package/libs/PanoRulerProPlugin/Controller.js +60 -30
  49. package/libs/PanoRulerProPlugin/RulerItems.js +85 -55
  50. package/libs/PanoRulerProPlugin/index.js +33 -3
  51. package/libs/PanoSpatialTagPlugin/Plugin.js +54 -34
  52. package/libs/PanoSpatialTagPlugin/index.js +22 -2
  53. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +79 -49
  54. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +235 -206
  55. package/libs/PanoTagPlugin/Components/Tag/index.js +152 -125
  56. package/libs/PanoTagPlugin/Components/TagContainer.js +97 -70
  57. package/libs/PanoTagPlugin/Components/TagItem.js +31 -4
  58. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +29 -2
  59. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +55 -28
  60. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +53 -26
  61. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +54 -27
  62. package/libs/PanoTagPlugin/controller/TagRender.js +48 -29
  63. package/libs/PanoTagPlugin/controller/TagUtil.js +33 -14
  64. package/libs/PanoTagPlugin/controller/index.js +49 -30
  65. package/libs/PanoTagPlugin/index.js +41 -22
  66. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +59 -29
  67. package/libs/PanoVideoPlugin/Controller.js +91 -61
  68. package/libs/PanoVideoPlugin/VideoMeshController.js +56 -26
  69. package/libs/PanoVideoPlugin/index.js +36 -6
  70. package/libs/PipelinePlugin/Controller.js +80 -51
  71. package/libs/PipelinePlugin/index.js +34 -5
  72. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +44 -14
  73. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +43 -13
  74. package/libs/PipelinePlugin/utils/Objects/Pipe.js +61 -31
  75. package/libs/Sculpt/Meshes/Box.js +3 -2
  76. package/libs/Sculpt/Meshes/Cylinder.js +3 -2
  77. package/libs/Sculpt/Meshes/Line.js +9 -8
  78. package/libs/Sculpt/Meshes/LineWithDots.js +8 -7
  79. package/libs/Sculpt/Meshes/Point.js +3 -2
  80. package/libs/Sculpt/Meshes/Polygon.js +3 -2
  81. package/libs/Sculpt/Meshes/Prism.js +9 -8
  82. package/libs/Sculpt/Meshes/Rectangle.js +3 -2
  83. package/libs/Sculpt/Objects/Base/index.d.ts +1 -1
  84. package/libs/Sculpt/Objects/Line/Editor.js +7 -6
  85. package/libs/Sculpt/index.d.ts +4 -4
  86. package/libs/Sculpt/index.js +3 -2
  87. package/libs/Sculpt/utils/three/ColoredMesh.js +6 -5
  88. package/libs/base/BasePlugin.js +4 -3
  89. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +89 -60
  90. package/libs/floorplan/MapviewFloorplanPlugin/index.js +34 -5
  91. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +79 -50
  92. package/libs/floorplan/ModelFloorplanPlugin/index.js +34 -5
  93. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +68 -38
  94. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +34 -4
  95. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +104 -75
  96. package/libs/floorplan/TopviewFloorplanPlugin/index.js +34 -5
  97. package/libs/floorplan/index.js +1 -0
  98. package/libs/index.js +28 -28
  99. package/libs/shared-utils/five/fiveModelLoad.js +1 -0
  100. package/libs/shared-utils/five/index.d.ts +2 -0
  101. package/libs/shared-utils/five/index.js +3 -2
  102. package/libs/shared-utils/five/lookObject.js +3 -2
  103. package/libs/shared-utils/index.js +42 -35
  104. package/libs/shared-utils/logger.js +1 -1
  105. package/libs/shared-utils/tag.d.ts +1 -1
  106. package/libs/shared-utils/tag.js +41 -41
  107. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +3 -2
  108. package/libs/shared-utils/three/index.d.ts +1 -0
  109. package/libs/shared-utils/three/index.js +1 -0
  110. package/package.json +1 -1
@@ -10,7 +10,7 @@ var T = (p, a, i) => a in p ? $(p, a, { enumerable: !0, configurable: !0, writab
10
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, i) => (T(p, typeof a != "symbol" ? a + "" : a, i), i);
13
+ var n = (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";
@@ -29,80 +29,110 @@ import "../shared-utils/five/transformPosition.js";
29
29
  import "../shared-utils/three/temp.js";
30
30
  import "../shared-utils/dom/resizeObserver.js";
31
31
  import "hammerjs";
32
+ import "../shared-utils/three/PointSelector/index.js";
33
+ import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
34
+ import "../shared-utils/three/Magnifier.js";
35
+ import "../shared-utils/three/PointSelector/utils/PointHelper.js";
36
+ import "../shared-utils/three/Assets/index.js";
37
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
32
38
  import "three/examples/jsm/renderers/CSS3DRenderer";
39
+ import "../CSS3DRenderPlugin/utils/even.js";
40
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
41
+ import "../shared-utils/three/centerPoint.js";
42
+ import "../shared-utils/three/getObjectVisible.js";
33
43
  import "@realsee/five/line";
34
44
  import "../vendor/three/examples/jsm/lines/LineGeometry.js";
35
45
  import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
36
46
  import "../vendor/three/build/three.module.js";
37
47
  import "../shared-utils/three/core/Sphere.js";
38
48
  import "animejs";
39
- import "../shared-utils/url/absoluteUrl.js";
49
+ import "../shared-utils/isNil.js";
40
50
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
51
+ import "../shared-utils/three/PointSelector/utils/html.js";
52
+ import "../shared-utils/five/initialCSS3DRender.js";
53
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
54
+ import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
55
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
56
+ import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
57
+ import "../Sculpt/Meshes/Line.js";
58
+ import "../Sculpt/typings/style.js";
59
+ import "../shared-utils/five/FiveLine.js";
60
+ import "../shared-utils/three/IObject3D.js";
61
+ import "../Sculpt/utils/removeAllTag.js";
62
+ import "../Sculpt/utils/Meshes/getLengthHTML.js";
63
+ import "../shared-utils/three/applyObjectMatrixWorld.js";
64
+ import "../shared-utils/util.js";
65
+ import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
66
+ import "../shared-utils/isTouchDevice.js";
67
+ import "../shared-utils/five/getPosition.js";
68
+ import "../shared-utils/five/getRaycasterByNdcPosition.js";
69
+ import "../shared-utils/three/PointSelector/utils/contents.js";
70
+ import "../shared-utils/url/absoluteUrl.js";
41
71
  import "../vendor/svelte/internal/index.js";
42
72
  import "../vendor/classnames/index.js";
43
73
  const ii = { userAction: !0 };
44
- class Ei extends q {
74
+ class at extends q {
45
75
  constructor(i) {
46
76
  super(i);
47
- r(this, "MinVisibledistance", 1.8);
48
- r(this, "MaxVisibledistance", 5);
49
- r(this, "OffsetHeight", -1.3);
77
+ n(this, "MinVisibledistance", 1.8);
78
+ n(this, "MaxVisibledistance", 5);
79
+ n(this, "OffsetHeight", -1.3);
50
80
  // 标签页面高度偏移值
51
- r(this, "rooms");
52
- r(this, "floorplanServerData");
81
+ n(this, "rooms");
82
+ n(this, "floorplanServerData");
53
83
  /** 标签项 */
54
- r(this, "doorLabelItems");
84
+ n(this, "doorLabelItems");
55
85
  /** 每个点位 visible 标签的缓存 */
56
- r(this, "visibleLabelMap", /* @__PURE__ */ new Map());
86
+ n(this, "visibleLabelMap", /* @__PURE__ */ new Map());
57
87
  /** 标签项Prop值 */
58
- r(this, "labelItems", []);
88
+ n(this, "labelItems", []);
59
89
  /** 数据 */
60
- r(this, "doorLabels");
61
- r(this, "roomObservers");
62
- r(this, "loadData", (i, n) => {
63
- n && (this.MaxVisibledistance = n.MaxVisibledistance, this.MinVisibledistance = n.MinVisibledistance, this.OffsetHeight = n.OffsetHeight), this.doorLabelItems && this.doorLabelItems.length > 0 && this.doorLabelItems.forEach((d) => {
64
- d.$destroy();
90
+ n(this, "doorLabels");
91
+ n(this, "roomObservers");
92
+ n(this, "loadData", (i, r) => {
93
+ r && (this.MaxVisibledistance = r.MaxVisibledistance, this.MinVisibledistance = r.MinVisibledistance, this.OffsetHeight = r.OffsetHeight), this.doorLabelItems && this.doorLabelItems.length > 0 && this.doorLabelItems.forEach((m) => {
94
+ m.$destroy();
65
95
  }), this.labelItems = [], this.doorLabels = [], this.doorLabelItems = [], this.floorplanServerData = i, typeof this.five.ready == "function" ? this.five.ready().then(() => this.initData()) : this.five.once("panoArrived", () => {
66
96
  this.initData();
67
97
  });
68
98
  });
69
- r(this, "initRoomObservers", () => {
99
+ n(this, "initRoomObservers", () => {
70
100
  var l, h;
71
- 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) => {
72
- const s = o.panoIndex, f = o.floorIndex, e = i == null ? void 0 : i.find((t) => t.floor_index === f);
73
- if (e) {
74
- const t = e.rooms.find((c) => c.observer_indexs.includes(s));
75
- if (t)
76
- return { panoIndex: s, floorIndex: f, name: t.name };
101
+ const i = this.floorplanServerData.computed_data.floor_datas || [], m = (((h = (l = this.five) == null ? void 0 : l.work) == null ? void 0 : h.observers) || []).map((o) => {
102
+ const s = o.panoIndex, f = o.floorIndex, t = i == null ? void 0 : i.find((e) => e.floor_index === f);
103
+ if (t) {
104
+ const e = t.rooms.find((c) => c.observer_indexs.includes(s));
105
+ if (e)
106
+ return { panoIndex: s, floorIndex: f, name: e.name };
77
107
  }
78
108
  }).filter(Boolean);
79
- this.roomObservers = d;
109
+ this.roomObservers = m;
80
110
  });
81
- r(this, "hideAllLabels", () => {
111
+ n(this, "hideAllLabels", () => {
82
112
  this.labelItems.forEach((i) => {
83
113
  i.visible = !1, i.inSight = !1;
84
114
  }), this.render();
85
115
  });
86
- r(this, "fixDoorVisibleAndPosition", () => {
116
+ n(this, "fixDoorVisibleAndPosition", () => {
87
117
  this.initRoomObservers();
88
118
  const { panoIndex: i } = this.five;
89
119
  if (!this.visible || this.five.model.empty || i === null || !this.roomObservers.find((o) => o.panoIndex === i))
90
120
  return;
91
- const n = this.roomObservers.find((o) => o.panoIndex === i), l = this.five.work.observers.find((o) => o.panoIndex === i).position.clone(), h = (() => {
121
+ const r = this.roomObservers.find((o) => o.panoIndex === i), l = this.five.work.observers.find((o) => o.panoIndex === i).position.clone(), h = (() => {
92
122
  if (this.visibleLabelMap.has(i))
93
123
  return this.visibleLabelMap.get(i);
94
124
  {
95
125
  const o = [];
96
126
  return this.doorLabels.forEach((s, f) => {
97
- if (s.roomName === n.name)
127
+ if (s.roomName === r.name)
98
128
  return;
99
- const e = s.position.clone(), t = e.distanceTo(l);
100
- if (t < this.MinVisibledistance || t > this.MaxVisibledistance)
129
+ const t = s.position.clone(), e = t.distanceTo(l);
130
+ if (e < this.MinVisibledistance || e > this.MaxVisibledistance)
101
131
  return;
102
- const c = new Q(), v = e.clone().sub(l).normalize();
132
+ const c = new Q(), v = t.clone().sub(l).normalize();
103
133
  c.set(l, v);
104
134
  const [b] = this.five.model.intersectRaycaster(c);
105
- b && b.distance + 0.1 < t || o.push(f);
135
+ b && b.distance + 0.1 < e || o.push(f);
106
136
  }), this.visibleLabelMap.set(i, o), o;
107
137
  }
108
138
  })();
@@ -110,22 +140,22 @@ class Ei extends q {
110
140
  o.visible = h.includes(s);
111
141
  }), this.fixDoorPosition();
112
142
  });
113
- r(this, "fixDoorPosition", () => {
114
- var e, t, c, v, b, y, g, w, L, E, _, S;
115
- const { panoIndex: i, camera: n } = this.five;
143
+ n(this, "fixDoorPosition", () => {
144
+ var t, e, c, v, b, y, g, w, L, E, _, S;
145
+ const { panoIndex: i, camera: r } = this.five;
116
146
  if (i === null)
117
147
  return;
118
148
  if (this.five.currentMode !== "Panorama")
119
149
  return this.hideAllLabels();
120
- const d = this.five.getElement(), l = d.clientWidth, h = d.clientHeight, o = n.getWorldDirection(new V()), s = [], f = [...this.labelItems];
121
- if (f.forEach((m, u) => {
122
- if (m.visible) {
123
- const x = n.position.distanceTo(m.position), M = m.position.clone().add(new V(0, this.OffsetHeight, 0)), A = M.clone().sub(n.position).normalize().angleTo(o), O = M.clone().project(n), P = (O.x + 1) / 2.2 * 100, I = (-O.y + 1) / 2.2 * 100, D = P >= 0 && P <= 100 && I >= 0 && I <= 100 && x > this.MinVisibledistance && x <= this.MaxVisibledistance;
124
- m.left = P, m.top = I, m.inSight = D && A < Math.PI / 2, m.cameraToward = Y(this.five), D ? s.push({ disFromCameraToLabel: x, left: P, top: I, index: u }) : m.transform = "translate(-50%, -50%)";
150
+ const m = this.five.getElement(), l = m.clientWidth, h = m.clientHeight, o = r.getWorldDirection(new V()), s = [], f = [...this.labelItems];
151
+ if (f.forEach((d, u) => {
152
+ if (d.visible) {
153
+ const x = r.position.distanceTo(d.position), M = d.position.clone().add(new V(0, this.OffsetHeight, 0)), A = M.clone().sub(r.position).normalize().angleTo(o), O = M.clone().project(r), P = (O.x + 1) / 2.2 * 100, I = (-O.y + 1) / 2.2 * 100, D = P >= 0 && P <= 100 && I >= 0 && I <= 100 && x > this.MinVisibledistance && x <= this.MaxVisibledistance;
154
+ d.left = P, d.top = I, d.inSight = D && A < Math.PI / 2, d.cameraToward = Y(this.five), D ? s.push({ disFromCameraToLabel: x, left: P, top: I, index: u }) : d.transform = "translate(-50%, -50%)";
125
155
  } else
126
- m.inSight = !1;
156
+ d.inSight = !1;
127
157
  }), s.length > 1) {
128
- let m = 0;
158
+ let d = 0;
129
159
  s.sort((u, x) => x.disFromCameraToLabel - u.disFromCameraToLabel);
130
160
  for (let u = 1; u < s.length; u++) {
131
161
  const { index: x, left: M, top: k } = s[u - 1], { index: A, left: O, top: P } = s[u], I = this.container.children[x], D = this.container.children[A];
@@ -134,7 +164,7 @@ class Ei extends q {
134
164
  const R = {
135
165
  left: l * M / 100,
136
166
  top: h * k / 100,
137
- width: (c = (t = (e = I.children) == null ? void 0 : e[0]) == null ? void 0 : t.clientWidth) != null ? c : 0,
167
+ width: (c = (e = (t = I.children) == null ? void 0 : t[0]) == null ? void 0 : e.clientWidth) != null ? c : 0,
138
168
  height: (y = (b = (v = I.children) == null ? void 0 : v[0]) == null ? void 0 : b.clientHeight) != null ? y : 0
139
169
  }, F = {
140
170
  left: l * O / 100,
@@ -142,56 +172,56 @@ class Ei extends q {
142
172
  width: (L = (w = (g = D.children) == null ? void 0 : g[0]) == null ? void 0 : w.clientWidth) != null ? L : 0,
143
173
  height: (S = (_ = (E = D.children) == null ? void 0 : E[0]) == null ? void 0 : _.clientHeight) != null ? S : 0
144
174
  };
145
- Z(R, F) && (m++, f[x].transform = `translate(-50%, ${(m - 1) * 100 - 50}%)`, f[A].transform = `translate(-50%, ${m * 100 - 50}%)`);
175
+ Z(R, F) && (d++, f[x].transform = `translate(-50%, ${(d - 1) * 100 - 50}%)`, f[A].transform = `translate(-50%, ${d * 100 - 50}%)`);
146
176
  }
147
177
  }
148
178
  this.labelItems = f, this.render();
149
179
  });
150
- r(this, "onClick", (i, n) => {
180
+ n(this, "onClick", (i, r) => {
151
181
  if (!this.roomObservers)
152
182
  return;
153
- const { work: d } = this.five;
183
+ const { work: m } = this.five;
154
184
  let l, h, o = 1 / 0;
155
- for (const s of d.observers)
156
- if (this.roomObservers.find((e) => e.panoIndex === s.panoIndex && e.name === i)) {
157
- const e = s.standingPosition, t = n.distanceTo(e);
158
- t < o && (l = s.panoIndex, h = e.clone().sub(n).normalize(), o = t);
185
+ for (const s of m.observers)
186
+ if (this.roomObservers.find((t) => t.panoIndex === s.panoIndex && t.name === i)) {
187
+ const t = s.standingPosition, e = r.distanceTo(t);
188
+ e < o && (l = s.panoIndex, h = t.clone().sub(r).normalize(), o = e);
159
189
  }
160
190
  if (h !== null && l !== null) {
161
191
  const s = {};
162
192
  if (o > 0) {
163
- const e = new V(0, 0, -1), t = h.clone(), c = new j();
164
- c.setFromUnitVectors(e, t);
193
+ const t = new V(0, 0, -1), e = h.clone(), c = new j();
194
+ c.setFromUnitVectors(t, e);
165
195
  const v = new z();
166
196
  v.setFromQuaternion(c, "YXZ"), s.longitude = v.y;
167
197
  }
168
198
  this.five.emit("wantsToMoveToPano", l, {}, !0) || this.five.moveToPano(l, { longitude: s.longitude });
169
199
  }
170
200
  });
171
- r(this, "initData", () => {
201
+ n(this, "initData", () => {
172
202
  var l;
173
203
  this.doorLabels = [];
174
- 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);
175
- this.rooms = d, this.rooms && this.rooms.length > 0 && this.rooms.forEach((h) => {
204
+ const i = this.five.panoIndex, r = this.floorplanServerData.computed_data.observers[i].floor_index, m = r !== void 0 && ((l = this.floorplanServerData.computed_data.floor_datas[r]) == null ? void 0 : l.rooms);
205
+ this.rooms = m, this.rooms && this.rooms.length > 0 && this.rooms.forEach((h) => {
176
206
  var f;
177
- 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));
178
- o && o.forEach((e) => {
179
- const t = e.position;
207
+ const o = (f = this.floorplanServerData.computed_data.doors) == null ? void 0 : f.filter((t) => !!(t && t.name === h.name)), s = this.five.work.observers.filter((t, e) => !!h.observer_indexs.find((c) => c === e));
208
+ o && o.forEach((t) => {
209
+ const e = t.position;
180
210
  let c = 1 / 0, v;
181
211
  s.forEach((y) => {
182
212
  const g = y.standingPosition, w = {
183
213
  x: g.x,
184
214
  y: g.y,
185
215
  z: g.z
186
- }, L = J(t, w);
216
+ }, L = J(e, w);
187
217
  L < c && (c = L, v = w);
188
- }), v && (t.y = v.y + 0.01);
189
- const b = new V(t.x, t.y, t.z);
190
- b.add(new V(-0.2, 1.8, 0).applyEuler(new z(0, e.rad, 0))), this.doorLabels.push({
218
+ }), v && (e.y = v.y + 0.01);
219
+ const b = new V(e.x, e.y, e.z);
220
+ b.add(new V(-0.2, 1.8, 0).applyEuler(new z(0, t.rad, 0))), this.doorLabels.push({
191
221
  roomName: h.name,
192
- name: e.name,
222
+ name: t.name,
193
223
  position: b,
194
- toward: K(e.rad)
224
+ toward: K(t.rad)
195
225
  });
196
226
  });
197
227
  }), this.labelItems = this.doorLabels.map((h) => W(H({}, h), {
@@ -204,14 +234,14 @@ class Ei extends q {
204
234
  })), 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();
205
235
  });
206
236
  }
207
- stateChangedCallback(i, n) {
237
+ stateChangedCallback(i, r) {
208
238
  if (this.hooks.hasListener("stateChange")) {
209
- const d = {
239
+ const m = {
210
240
  state: this.state,
211
241
  prevState: i,
212
- userAction: n ? n.userAction : ii.userAction
242
+ userAction: r ? r.userAction : ii.userAction
213
243
  };
214
- this.hooks.emit("stateChange", d);
244
+ this.hooks.emit("stateChange", m);
215
245
  }
216
246
  }
217
247
  render() {
@@ -245,5 +275,5 @@ class Ei extends q {
245
275
  }
246
276
  }
247
277
  export {
248
- Ei as PanoDoorLabelPluginController
278
+ at as PanoDoorLabelPluginController
249
279
  };
@@ -15,21 +15,51 @@ import "../shared-utils/five/transformPosition.js";
15
15
  import "../shared-utils/three/temp.js";
16
16
  import "../shared-utils/dom/resizeObserver.js";
17
17
  import "hammerjs";
18
+ import "../shared-utils/three/PointSelector/index.js";
19
+ import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
20
+ import "../shared-utils/three/Magnifier.js";
21
+ import "../shared-utils/three/PointSelector/utils/PointHelper.js";
22
+ import "../shared-utils/three/Assets/index.js";
23
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
18
24
  import "three/examples/jsm/renderers/CSS3DRenderer";
25
+ import "../CSS3DRenderPlugin/utils/even.js";
26
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
27
+ import "../shared-utils/three/centerPoint.js";
28
+ import "../shared-utils/three/getObjectVisible.js";
19
29
  import "@realsee/five/line";
20
30
  import "../vendor/three/examples/jsm/lines/LineGeometry.js";
21
31
  import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
22
32
  import "../vendor/three/build/three.module.js";
23
33
  import "../shared-utils/three/core/Sphere.js";
24
34
  import "animejs";
25
- import "../shared-utils/url/absoluteUrl.js";
35
+ import "../shared-utils/isNil.js";
26
36
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
37
+ import "../shared-utils/three/PointSelector/utils/html.js";
38
+ import "../shared-utils/five/initialCSS3DRender.js";
39
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
40
+ import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
41
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
42
+ import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
43
+ import "../Sculpt/Meshes/Line.js";
44
+ import "../Sculpt/typings/style.js";
45
+ import "../shared-utils/five/FiveLine.js";
46
+ import "../shared-utils/three/IObject3D.js";
47
+ import "../Sculpt/utils/removeAllTag.js";
48
+ import "../Sculpt/utils/Meshes/getLengthHTML.js";
49
+ import "../shared-utils/three/applyObjectMatrixWorld.js";
50
+ import "../shared-utils/util.js";
51
+ import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
52
+ import "../shared-utils/isTouchDevice.js";
53
+ import "../shared-utils/five/getPosition.js";
54
+ import "../shared-utils/five/getRaycasterByNdcPosition.js";
55
+ import "../shared-utils/three/PointSelector/utils/contents.js";
56
+ import "../shared-utils/url/absoluteUrl.js";
27
57
  import "./DoorLabelItem.js";
28
58
  import "../vendor/svelte/internal/index.js";
29
59
  import "../vendor/classnames/index.js";
30
60
  import "./utils.js";
31
- const E = (o) => new r(o);
61
+ const lo = (o) => new r(o);
32
62
  export {
33
- E as PanoDoorLabelPlugin,
34
- E as default
63
+ lo as PanoDoorLabelPlugin,
64
+ lo as default
35
65
  };
@@ -42,23 +42,23 @@ import "../../shared-utils/five/transformPosition.js";
42
42
  import "../../shared-utils/three/temp.js";
43
43
  import "../../shared-utils/dom/resizeObserver.js";
44
44
  import "hammerjs";
45
- import "three/examples/jsm/renderers/CSS3DRenderer";
46
- import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
47
- import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
48
- import "../../vendor/three/build/three.module.js";
49
- import "../../shared-utils/three/core/Sphere.js";
50
- import "animejs";
51
- import "../../shared-utils/isNil.js";
52
- import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
53
45
  import "../../shared-utils/three/PointSelector/index.js";
54
46
  import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
55
47
  import "../../shared-utils/three/Magnifier.js";
56
48
  import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
57
49
  import "../../shared-utils/three/Assets/index.js";
58
50
  import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
51
+ import "three/examples/jsm/renderers/CSS3DRenderer";
59
52
  import "../../CSS3DRenderPlugin/utils/even.js";
60
53
  import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
61
54
  import "../../shared-utils/three/getObjectVisible.js";
55
+ import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
56
+ import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
57
+ import "../../vendor/three/build/three.module.js";
58
+ import "../../shared-utils/three/core/Sphere.js";
59
+ import "animejs";
60
+ import "../../shared-utils/isNil.js";
61
+ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
62
62
  import "../../shared-utils/three/PointSelector/utils/html.js";
63
63
  import "../../shared-utils/five/initialCSS3DRender.js";
64
64
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
@@ -46,23 +46,23 @@ import "../../shared-utils/five/transformPosition.js";
46
46
  import "../../shared-utils/three/temp.js";
47
47
  import "../../shared-utils/dom/resizeObserver.js";
48
48
  import "hammerjs";
49
- import "three/examples/jsm/renderers/CSS3DRenderer";
50
- import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
51
- import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
52
- import "../../vendor/three/build/three.module.js";
53
- import "../../shared-utils/three/core/Sphere.js";
54
- import "animejs";
55
- import "../../shared-utils/isNil.js";
56
- import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
57
49
  import "../../shared-utils/three/PointSelector/index.js";
58
50
  import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
59
51
  import "../../shared-utils/three/Magnifier.js";
60
52
  import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
61
53
  import "../../shared-utils/three/Assets/index.js";
62
54
  import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
55
+ import "three/examples/jsm/renderers/CSS3DRenderer";
63
56
  import "../../CSS3DRenderPlugin/utils/even.js";
64
57
  import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
65
58
  import "../../shared-utils/three/getObjectVisible.js";
59
+ import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
60
+ import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
61
+ import "../../vendor/three/build/three.module.js";
62
+ import "../../shared-utils/three/core/Sphere.js";
63
+ import "animejs";
64
+ import "../../shared-utils/isNil.js";
65
+ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
66
66
  import "../../shared-utils/three/PointSelector/utils/html.js";
67
67
  import "../../shared-utils/five/initialCSS3DRender.js";
68
68
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";