@realsee/dnalogel 3.45.0 → 3.46.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 (100) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/Sculpt/Meshes/Line.d.ts +6 -1
  3. package/dist/Sculpt/utils/removeAllTag.d.ts +2 -0
  4. package/dist/index.cjs.js +53 -53
  5. package/dist/index.js +29600 -29557
  6. package/dist/index.umd.js +49 -49
  7. package/dist/shared-utils/tag.d.ts +6 -3
  8. package/libs/AreaMakerPlugin/Controller.js +151 -78
  9. package/libs/AreaMakerPlugin/index.js +77 -4
  10. package/libs/AreaMakerPlugin/utils/Item.js +191 -111
  11. package/libs/CSS3DRenderPlugin/Controller.js +90 -29
  12. package/libs/CSS3DRenderPlugin/index.js +76 -15
  13. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +133 -58
  14. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +182 -116
  15. package/libs/CruisePlugin/BaseController.js +122 -49
  16. package/libs/CruisePlugin/Move.js +74 -21
  17. package/libs/CruisePlugin/Work.js +99 -46
  18. package/libs/CruisePlugin/index.js +80 -27
  19. package/libs/CurrentPanoImagePlugin/Controller.js +177 -104
  20. package/libs/CurrentPanoImagePlugin/index.js +77 -4
  21. package/libs/GuideLinePlugin/Controller.js +79 -26
  22. package/libs/GuideLinePlugin/GuideLineItem.js +83 -30
  23. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
  24. package/libs/GuideLinePlugin/GuideLineModeItem.js +82 -29
  25. package/libs/GuideLinePlugin/index.js +80 -27
  26. package/libs/ModelMakerPlugin/Controller.js +140 -82
  27. package/libs/ModelMakerPlugin/index.js +76 -18
  28. package/libs/ModelTVVideoPlugin/Plugin.js +118 -57
  29. package/libs/ModelTVVideoPlugin/index.js +69 -8
  30. package/libs/Object3DHelperPlugin/Controller.js +67 -43
  31. package/libs/Object3DHelperPlugin/index.js +36 -13
  32. package/libs/PanoCompassPlugin/Controller.js +98 -42
  33. package/libs/PanoCompassPlugin/index.js +72 -16
  34. package/libs/PanoDoorLabelPlugin/BaseController.js +99 -26
  35. package/libs/PanoDoorLabelPlugin/Controller.js +188 -115
  36. package/libs/PanoDoorLabelPlugin/index.js +77 -4
  37. package/libs/PanoMeasurePlugin/Components/Controller0.js +141 -88
  38. package/libs/PanoMeasurePlugin/Components/Controller1.js +179 -126
  39. package/libs/PanoMeasurePlugin/Controller/EditController.js +125 -72
  40. package/libs/PanoMeasurePlugin/Controller/WatchController.js +168 -92
  41. package/libs/PanoMeasurePlugin/Controller/index.js +110 -64
  42. package/libs/PanoMeasurePlugin/Model/area.js +115 -38
  43. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +79 -0
  44. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +98 -45
  45. package/libs/PanoMeasurePlugin/index.js +77 -31
  46. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +99 -20
  47. package/libs/PanoSpatialTagPlugin/Plugin.js +211 -150
  48. package/libs/PanoSpatialTagPlugin/index.js +67 -6
  49. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +149 -68
  50. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +296 -216
  51. package/libs/PanoTagPlugin/Components/Tag/index.js +258 -187
  52. package/libs/PanoTagPlugin/Components/TagContainer.js +158 -87
  53. package/libs/PanoTagPlugin/Components/TagItem.js +145 -74
  54. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +133 -62
  55. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +110 -39
  56. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +106 -35
  57. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +114 -43
  58. package/libs/PanoTagPlugin/controller/TagRender.js +133 -80
  59. package/libs/PanoTagPlugin/controller/TagUtil.js +137 -84
  60. package/libs/PanoTagPlugin/controller/index.js +114 -61
  61. package/libs/PanoTagPlugin/index.js +90 -37
  62. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +122 -41
  63. package/libs/PanoVideoPlugin/Controller.js +138 -65
  64. package/libs/PanoVideoPlugin/VideoMeshController.js +150 -69
  65. package/libs/PanoVideoPlugin/index.js +83 -10
  66. package/libs/PipelinePlugin/Controller.js +200 -128
  67. package/libs/PipelinePlugin/index.js +77 -5
  68. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +103 -22
  69. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +96 -15
  70. package/libs/PipelinePlugin/utils/Objects/Pipe.js +137 -56
  71. package/libs/Sculpt/Meshes/Box.js +6 -5
  72. package/libs/Sculpt/Meshes/Cylinder.js +7 -6
  73. package/libs/Sculpt/Meshes/Line.d.ts +6 -1
  74. package/libs/Sculpt/Meshes/Line.js +80 -57
  75. package/libs/Sculpt/Meshes/Point.js +6 -5
  76. package/libs/Sculpt/Meshes/Polyline.js +5 -4
  77. package/libs/Sculpt/Meshes/Rectangle.js +3 -2
  78. package/libs/Sculpt/Objects/Base/index.js +20 -17
  79. package/libs/Sculpt/Objects/Line/Editor.js +11 -10
  80. package/libs/Sculpt/utils/removeAllTag.d.ts +2 -0
  81. package/libs/Sculpt/utils/removeAllTag.js +10 -0
  82. package/libs/Sculpt/utils/three/ColoredMesh.js +14 -13
  83. package/libs/base/BasePlugin.js +14 -13
  84. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +129 -59
  85. package/libs/floorplan/MapviewFloorplanPlugin/index.js +76 -6
  86. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +130 -59
  87. package/libs/floorplan/ModelFloorplanPlugin/index.js +76 -5
  88. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +159 -86
  89. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +77 -4
  90. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +152 -81
  91. package/libs/floorplan/TopviewFloorplanPlugin/index.js +76 -5
  92. package/libs/floorplan/index.js +1 -0
  93. package/libs/index.js +193 -192
  94. package/libs/shared-utils/five/index.js +3 -2
  95. package/libs/shared-utils/five/lookObject.js +3 -2
  96. package/libs/shared-utils/logger.js +1 -1
  97. package/libs/shared-utils/tag.d.ts +6 -3
  98. package/libs/shared-utils/tag.js +38 -24
  99. package/libs/shared-utils/three/index.js +1 -0
  100. package/package.json +1 -1
@@ -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 = (d, a, i) => a in d ? $(d, a, { enumerable: !0, configurable: !0, writable: !0, value: i }) : d[a] = i, H = (d, a) => {
6
+ for (var i in a || (a = {}))
7
+ G.call(a, i) && T(d, i, a[i]);
8
8
  if (C)
9
- for (var e of C(a))
10
- N.call(a, e) && T(p, e, a[e]);
11
- return p;
12
- }, W = (p, a) => B(p, U(a));
13
- var r = (p, a, e) => (T(p, typeof a != "symbol" ? a + "" : a, e), e);
9
+ for (var i of C(a))
10
+ N.call(a, i) && T(d, i, a[i]);
11
+ return d;
12
+ }, W = (d, a) => B(d, U(a));
13
+ var n = (d, a, i) => (T(d, 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,103 +21,176 @@ 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 "../Sculpt/utils/Modules/Global.js";
25
+ import "../Sculpt/utils/Modules/Cursor.js";
26
+ import "../Object3DHelperPlugin/Controller.js";
24
27
  import "../shared-utils/three/THREESphere.js";
28
+ import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
29
+ import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
30
+ import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
31
+ import "../shared-utils/three/IObject3D.js";
32
+ import "../shared-utils/three/boundingBox.js";
33
+ import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
34
+ import "../shared-utils/Object3DHelper/utils/direction.js";
35
+ import "../shared-utils/Object3DHelper/Constants/color.js";
36
+ import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
37
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
38
+ import "../shared-utils/positionToVector3.js";
39
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
40
+ import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
41
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
42
+ import "../CSS3DRenderPlugin/utils/even.js";
43
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
44
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
45
+ import "../shared-utils/three/centerPoint.js";
46
+ import "../shared-utils/three/getObjectVisible.js";
25
47
  import "animejs";
48
+ import "../shared-utils/isNil.js";
49
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
26
50
  import "../shared-utils/Utils/FiveUtil.js";
27
51
  import "../shared-utils/Utils/BaseUtil.js";
28
52
  import "../shared-utils/Utils/WorkUtil.js";
29
53
  import "../shared-utils/five/transformPosition.js";
30
54
  import "../shared-utils/five/getFiveModel.js";
31
55
  import "../shared-utils/url/absoluteUrl.js";
32
- import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
56
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
57
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
58
+ import "../shared-utils/util.js";
59
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
60
+ import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
61
+ import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
62
+ import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
63
+ import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
64
+ import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
65
+ import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
66
+ import "../shared-utils/Object3DHelper/Controller/MoveController.js";
67
+ import "../shared-utils/Object3DHelper/Base/BaseController.js";
68
+ import "../shared-utils/threex/domevents/index.js";
69
+ import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
70
+ import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
71
+ import "../Sculpt/utils/three/rayOnLine.js";
72
+ import "../Object3DHelperPlugin/FiveControllerWrapper.js";
73
+ import "../shared-utils/Object3DHelper/index.js";
74
+ import "../shared-utils/Object3DHelper/Controller/RotateController.js";
75
+ import "../shared-utils/math/rad2Deg.js";
76
+ import "../shared-utils/math/deg2Rad.js";
77
+ import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
78
+ import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
79
+ import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
80
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
81
+ import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
82
+ import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
83
+ import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
84
+ import "../shared-utils/five/fiveModelLoad.js";
85
+ import "../shared-utils/five/FiveDomEvents.js";
86
+ import "../shared-utils/five/calculateThreeMouse.js";
87
+ import "../shared-utils/three/THREERaycaster.js";
88
+ import "../shared-utils/three/PointSelector/index.js";
89
+ import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
90
+ import "../shared-utils/three/Magnifier.js";
91
+ import "../shared-utils/three/PointSelector/utils/PointHelper.js";
92
+ import "../shared-utils/three/Assets/index.js";
93
+ import "../shared-utils/three/PointSelector/utils/html.js";
94
+ import "../shared-utils/five/initialCSS3DRender.js";
95
+ import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
96
+ import "../Sculpt/Meshes/Line.js";
97
+ import "../Sculpt/typings/style.js";
98
+ import "../shared-utils/five/FiveLine.js";
99
+ import "../shared-utils/tag.js";
100
+ import "../shared-utils/five/vector3ToScreen.js";
101
+ import "../Sculpt/utils/removeAllTag.js";
102
+ import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
103
+ import "../shared-utils/isTouchDevice.js";
104
+ import "../shared-utils/five/getPosition.js";
105
+ import "../shared-utils/five/getRaycasterByNdcPosition.js";
33
106
  import "../vendor/svelte/internal/index.js";
34
107
  import "../vendor/classnames/index.js";
35
- const ee = { userAction: !0 };
36
- class we extends q {
37
- constructor(e) {
38
- super(e);
39
- r(this, "MinVisibledistance", 1.8);
40
- r(this, "MaxVisibledistance", 5);
41
- r(this, "OffsetHeight", -1.3);
108
+ const ii = { userAction: !0 };
109
+ class Bt extends q {
110
+ constructor(i) {
111
+ super(i);
112
+ n(this, "MinVisibledistance", 1.8);
113
+ n(this, "MaxVisibledistance", 5);
114
+ n(this, "OffsetHeight", -1.3);
42
115
  // 标签页面高度偏移值
43
- r(this, "rooms");
44
- r(this, "floorplanServerData");
116
+ n(this, "rooms");
117
+ n(this, "floorplanServerData");
45
118
  /** 标签项 */
46
- r(this, "doorLabelItems");
119
+ n(this, "doorLabelItems");
47
120
  /** 每个点位 visible 标签的缓存 */
48
- r(this, "visibleLabelMap", /* @__PURE__ */ new Map());
121
+ n(this, "visibleLabelMap", /* @__PURE__ */ new Map());
49
122
  /** 标签项Prop值 */
50
- r(this, "labelItems", []);
123
+ n(this, "labelItems", []);
51
124
  /** 数据 */
52
- r(this, "doorLabels");
53
- r(this, "roomObservers");
54
- r(this, "loadData", (e, n) => {
55
- n && (this.MaxVisibledistance = n.MaxVisibledistance, this.MinVisibledistance = n.MinVisibledistance, this.OffsetHeight = n.OffsetHeight), this.doorLabelItems && this.doorLabelItems.length > 0 && this.doorLabelItems.forEach((d) => {
56
- d.$destroy();
57
- }), this.labelItems = [], this.doorLabels = [], this.doorLabelItems = [], this.floorplanServerData = e, typeof this.five.ready == "function" ? this.five.ready().then(() => this.initData()) : this.five.once("panoArrived", () => {
125
+ n(this, "doorLabels");
126
+ n(this, "roomObservers");
127
+ n(this, "loadData", (i, r) => {
128
+ r && (this.MaxVisibledistance = r.MaxVisibledistance, this.MinVisibledistance = r.MinVisibledistance, this.OffsetHeight = r.OffsetHeight), this.doorLabelItems && this.doorLabelItems.length > 0 && this.doorLabelItems.forEach((p) => {
129
+ p.$destroy();
130
+ }), this.labelItems = [], this.doorLabels = [], this.doorLabelItems = [], this.floorplanServerData = i, typeof this.five.ready == "function" ? this.five.ready().then(() => this.initData()) : this.five.once("panoArrived", () => {
58
131
  this.initData();
59
132
  });
60
133
  });
61
- r(this, "initRoomObservers", () => {
62
- var l, h;
63
- 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) => {
64
- const s = o.panoIndex, f = o.floorIndex, i = e == null ? void 0 : e.find((t) => t.floor_index === f);
65
- if (i) {
66
- const t = i.rooms.find((c) => c.observer_indexs.includes(s));
67
- if (t)
68
- return { panoIndex: s, floorIndex: f, name: t.name };
134
+ n(this, "initRoomObservers", () => {
135
+ var l, m;
136
+ const i = this.floorplanServerData.computed_data.floor_datas || [], p = (((m = (l = this.five) == null ? void 0 : l.work) == null ? void 0 : m.observers) || []).map((e) => {
137
+ const s = e.panoIndex, c = e.floorIndex, t = i == null ? void 0 : i.find((o) => o.floor_index === c);
138
+ if (t) {
139
+ const o = t.rooms.find((h) => h.observer_indexs.includes(s));
140
+ if (o)
141
+ return { panoIndex: s, floorIndex: c, name: o.name };
69
142
  }
70
143
  }).filter(Boolean);
71
- this.roomObservers = d;
144
+ this.roomObservers = p;
72
145
  });
73
- r(this, "hideAllLabels", () => {
74
- this.labelItems.forEach((e) => {
75
- e.visible = !1, e.inSight = !1;
146
+ n(this, "hideAllLabels", () => {
147
+ this.labelItems.forEach((i) => {
148
+ i.visible = !1, i.inSight = !1;
76
149
  }), this.render();
77
150
  });
78
- r(this, "fixDoorVisibleAndPosition", () => {
151
+ n(this, "fixDoorVisibleAndPosition", () => {
79
152
  this.initRoomObservers();
80
- const { panoIndex: e } = this.five;
81
- if (!this.visible || this.five.model.empty || e === null || !this.roomObservers.find((o) => o.panoIndex === e))
153
+ const { panoIndex: i } = this.five;
154
+ if (!this.visible || this.five.model.empty || i === null || !this.roomObservers.find((e) => e.panoIndex === i))
82
155
  return;
83
- const n = this.roomObservers.find((o) => o.panoIndex === e), l = this.five.work.observers.find((o) => o.panoIndex === e).position.clone(), h = (() => {
84
- if (this.visibleLabelMap.has(e))
85
- return this.visibleLabelMap.get(e);
156
+ const r = this.roomObservers.find((e) => e.panoIndex === i), l = this.five.work.observers.find((e) => e.panoIndex === i).position.clone(), m = (() => {
157
+ if (this.visibleLabelMap.has(i))
158
+ return this.visibleLabelMap.get(i);
86
159
  {
87
- const o = [];
88
- return this.doorLabels.forEach((s, f) => {
89
- if (s.roomName === n.name)
160
+ const e = [];
161
+ return this.doorLabels.forEach((s, c) => {
162
+ if (s.roomName === r.name)
90
163
  return;
91
- const i = s.position.clone(), t = i.distanceTo(l);
92
- if (t < this.MinVisibledistance || t > this.MaxVisibledistance)
164
+ const t = s.position.clone(), o = t.distanceTo(l);
165
+ if (o < this.MinVisibledistance || o > this.MaxVisibledistance)
93
166
  return;
94
- const c = new Q(), v = i.clone().sub(l).normalize();
95
- c.set(l, v);
96
- const [b] = this.five.model.intersectRaycaster(c);
97
- b && b.distance + 0.1 < t || o.push(f);
98
- }), this.visibleLabelMap.set(e, o), o;
167
+ const h = new Q(), v = t.clone().sub(l).normalize();
168
+ h.set(l, v);
169
+ const [b] = this.five.model.intersectRaycaster(h);
170
+ b && b.distance + 0.1 < o || e.push(c);
171
+ }), this.visibleLabelMap.set(i, e), e;
99
172
  }
100
173
  })();
101
- this.labelItems.forEach((o, s) => {
102
- o.visible = h.includes(s);
174
+ this.labelItems.forEach((e, s) => {
175
+ e.visible = m.includes(s);
103
176
  }), this.fixDoorPosition();
104
177
  });
105
- r(this, "fixDoorPosition", () => {
106
- var i, t, c, v, b, y, g, w, L, E, _, S;
107
- const { panoIndex: e, camera: n } = this.five;
108
- if (e === null)
178
+ n(this, "fixDoorPosition", () => {
179
+ var t, o, h, v, b, y, g, w, L, E, _, S;
180
+ const { panoIndex: i, camera: r } = this.five;
181
+ if (i === null)
109
182
  return;
110
183
  if (this.five.currentMode !== "Panorama")
111
184
  return this.hideAllLabels();
112
- const d = this.five.getElement(), l = d.clientWidth, h = d.clientHeight, o = n.getWorldDirection(new V()), s = [], f = [...this.labelItems];
113
- if (f.forEach((m, u) => {
114
- if (m.visible) {
115
- 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;
116
- 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%)";
185
+ const p = this.five.getElement(), l = p.clientWidth, m = p.clientHeight, e = r.getWorldDirection(new V()), s = [], c = [...this.labelItems];
186
+ if (c.forEach((f, u) => {
187
+ if (f.visible) {
188
+ const x = r.position.distanceTo(f.position), M = f.position.clone().add(new V(0, this.OffsetHeight, 0)), A = M.clone().sub(r.position).normalize().angleTo(e), 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;
189
+ f.left = P, f.top = I, f.inSight = D && A < Math.PI / 2, f.cameraToward = Y(this.five), D ? s.push({ disFromCameraToLabel: x, left: P, top: I, index: u }) : f.transform = "translate(-50%, -50%)";
117
190
  } else
118
- m.inSight = !1;
191
+ f.inSight = !1;
119
192
  }), s.length > 1) {
120
- let m = 0;
193
+ let f = 0;
121
194
  s.sort((u, x) => x.disFromCameraToLabel - u.disFromCameraToLabel);
122
195
  for (let u = 1; u < s.length; u++) {
123
196
  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];
@@ -125,68 +198,68 @@ class we extends q {
125
198
  return;
126
199
  const R = {
127
200
  left: l * M / 100,
128
- top: h * k / 100,
129
- width: (c = (t = (i = I.children) == null ? void 0 : i[0]) == null ? void 0 : t.clientWidth) != null ? c : 0,
201
+ top: m * k / 100,
202
+ width: (h = (o = (t = I.children) == null ? void 0 : t[0]) == null ? void 0 : o.clientWidth) != null ? h : 0,
130
203
  height: (y = (b = (v = I.children) == null ? void 0 : v[0]) == null ? void 0 : b.clientHeight) != null ? y : 0
131
204
  }, F = {
132
205
  left: l * O / 100,
133
- top: h * P / 100,
206
+ top: m * P / 100,
134
207
  width: (L = (w = (g = D.children) == null ? void 0 : g[0]) == null ? void 0 : w.clientWidth) != null ? L : 0,
135
208
  height: (S = (_ = (E = D.children) == null ? void 0 : E[0]) == null ? void 0 : _.clientHeight) != null ? S : 0
136
209
  };
137
- Z(R, F) && (m++, f[x].transform = `translate(-50%, ${(m - 1) * 100 - 50}%)`, f[A].transform = `translate(-50%, ${m * 100 - 50}%)`);
210
+ Z(R, F) && (f++, c[x].transform = `translate(-50%, ${(f - 1) * 100 - 50}%)`, c[A].transform = `translate(-50%, ${f * 100 - 50}%)`);
138
211
  }
139
212
  }
140
- this.labelItems = f, this.render();
213
+ this.labelItems = c, this.render();
141
214
  });
142
- r(this, "onClick", (e, n) => {
215
+ n(this, "onClick", (i, r) => {
143
216
  if (!this.roomObservers)
144
217
  return;
145
- const { work: d } = this.five;
146
- let l, h, o = 1 / 0;
147
- for (const s of d.observers)
148
- if (this.roomObservers.find((i) => i.panoIndex === s.panoIndex && i.name === e)) {
149
- const i = s.standingPosition, t = n.distanceTo(i);
150
- t < o && (l = s.panoIndex, h = i.clone().sub(n).normalize(), o = t);
218
+ const { work: p } = this.five;
219
+ let l, m, e = 1 / 0;
220
+ for (const s of p.observers)
221
+ if (this.roomObservers.find((t) => t.panoIndex === s.panoIndex && t.name === i)) {
222
+ const t = s.standingPosition, o = r.distanceTo(t);
223
+ o < e && (l = s.panoIndex, m = t.clone().sub(r).normalize(), e = o);
151
224
  }
152
- if (h !== null && l !== null) {
225
+ if (m !== null && l !== null) {
153
226
  const s = {};
154
- if (o > 0) {
155
- const i = new V(0, 0, -1), t = h.clone(), c = new j();
156
- c.setFromUnitVectors(i, t);
227
+ if (e > 0) {
228
+ const t = new V(0, 0, -1), o = m.clone(), h = new j();
229
+ h.setFromUnitVectors(t, o);
157
230
  const v = new z();
158
- v.setFromQuaternion(c, "YXZ"), s.longitude = v.y;
231
+ v.setFromQuaternion(h, "YXZ"), s.longitude = v.y;
159
232
  }
160
233
  this.five.emit("wantsToMoveToPano", l, {}, !0) || this.five.moveToPano(l, { longitude: s.longitude });
161
234
  }
162
235
  });
163
- r(this, "initData", () => {
236
+ n(this, "initData", () => {
164
237
  var l;
165
238
  this.doorLabels = [];
166
- 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);
167
- this.rooms = d, this.rooms && this.rooms.length > 0 && this.rooms.forEach((h) => {
168
- var f;
169
- 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));
170
- o && o.forEach((i) => {
171
- const t = i.position;
172
- let c = 1 / 0, v;
239
+ const i = this.five.panoIndex, r = this.floorplanServerData.computed_data.observers[i].floor_index, p = r !== void 0 && ((l = this.floorplanServerData.computed_data.floor_datas[r]) == null ? void 0 : l.rooms);
240
+ this.rooms = p, this.rooms && this.rooms.length > 0 && this.rooms.forEach((m) => {
241
+ var c;
242
+ const e = (c = this.floorplanServerData.computed_data.doors) == null ? void 0 : c.filter((t) => !!(t && t.name === m.name)), s = this.five.work.observers.filter((t, o) => !!m.observer_indexs.find((h) => h === o));
243
+ e && e.forEach((t) => {
244
+ const o = t.position;
245
+ let h = 1 / 0, v;
173
246
  s.forEach((y) => {
174
247
  const g = y.standingPosition, w = {
175
248
  x: g.x,
176
249
  y: g.y,
177
250
  z: g.z
178
- }, L = J(t, w);
179
- L < c && (c = L, v = w);
180
- }), v && (t.y = v.y + 0.01);
181
- const b = new V(t.x, t.y, t.z);
182
- b.add(new V(-0.2, 1.8, 0).applyEuler(new z(0, i.rad, 0))), this.doorLabels.push({
183
- roomName: h.name,
184
- name: i.name,
251
+ }, L = J(o, w);
252
+ L < h && (h = L, v = w);
253
+ }), v && (o.y = v.y + 0.01);
254
+ const b = new V(o.x, o.y, o.z);
255
+ b.add(new V(-0.2, 1.8, 0).applyEuler(new z(0, t.rad, 0))), this.doorLabels.push({
256
+ roomName: m.name,
257
+ name: t.name,
185
258
  position: b,
186
- toward: K(i.rad)
259
+ toward: K(t.rad)
187
260
  });
188
261
  });
189
- }), this.labelItems = this.doorLabels.map((h) => W(H({}, h), {
262
+ }), this.labelItems = this.doorLabels.map((m) => W(H({}, m), {
190
263
  left: 0,
191
264
  top: 0,
192
265
  visible: !1,
@@ -196,33 +269,33 @@ class we extends q {
196
269
  })), 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();
197
270
  });
198
271
  }
199
- stateChangedCallback(e, n) {
272
+ stateChangedCallback(i, r) {
200
273
  if (this.hooks.hasListener("stateChange")) {
201
- const d = {
274
+ const p = {
202
275
  state: this.state,
203
- prevState: e,
204
- userAction: n ? n.userAction : ee.userAction
276
+ prevState: i,
277
+ userAction: r ? r.userAction : ii.userAction
205
278
  };
206
- this.hooks.emit("stateChange", d);
279
+ this.hooks.emit("stateChange", p);
207
280
  }
208
281
  }
209
282
  render() {
210
283
  if (!this.enabled) {
211
- this.doorLabelItems && this.doorLabelItems.length > 0 && this.doorLabelItems.forEach((e) => {
212
- e == null || e.$destroy();
284
+ this.doorLabelItems && this.doorLabelItems.length > 0 && this.doorLabelItems.forEach((i) => {
285
+ i == null || i.$destroy();
213
286
  }), this.doorLabels = void 0;
214
287
  return;
215
288
  }
216
- this.doorLabelItems && this.doorLabelItems.forEach((e) => {
217
- e.$destroy();
218
- }), this.doorLabelItems = [], this.labelItems.forEach((e) => {
289
+ this.doorLabelItems && this.doorLabelItems.forEach((i) => {
290
+ i.$destroy();
291
+ }), this.doorLabelItems = [], this.labelItems.forEach((i) => {
219
292
  this.doorLabelItems.push(
220
293
  new X({
221
294
  target: this.container,
222
295
  props: {
223
- props: e,
296
+ props: i,
224
297
  onClick: () => {
225
- this.onClick(e.name, e.position);
298
+ this.onClick(i.name, i.position);
226
299
  }
227
300
  }
228
301
  })
@@ -237,5 +310,5 @@ class we extends q {
237
310
  }
238
311
  }
239
312
  export {
240
- we as PanoDoorLabelPluginController
313
+ Bt as PanoDoorLabelPluginController
241
314
  };
@@ -7,21 +7,94 @@ 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 "../Sculpt/utils/Modules/Global.js";
11
+ import "../Sculpt/utils/Modules/Cursor.js";
12
+ import "../Object3DHelperPlugin/Controller.js";
10
13
  import "../shared-utils/three/THREESphere.js";
14
+ import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
15
+ import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
16
+ import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
17
+ import "../shared-utils/three/IObject3D.js";
18
+ import "../shared-utils/three/boundingBox.js";
19
+ import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
20
+ import "../shared-utils/Object3DHelper/utils/direction.js";
21
+ import "../shared-utils/Object3DHelper/Constants/color.js";
22
+ import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
23
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
24
+ import "../shared-utils/positionToVector3.js";
25
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
26
+ import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
27
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
28
+ import "../CSS3DRenderPlugin/utils/even.js";
29
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
30
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
31
+ import "../shared-utils/three/centerPoint.js";
32
+ import "../shared-utils/three/getObjectVisible.js";
11
33
  import "animejs";
34
+ import "../shared-utils/isNil.js";
35
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
12
36
  import "../shared-utils/Utils/FiveUtil.js";
13
37
  import "../shared-utils/Utils/BaseUtil.js";
14
38
  import "../shared-utils/Utils/WorkUtil.js";
15
39
  import "../shared-utils/five/transformPosition.js";
16
40
  import "../shared-utils/five/getFiveModel.js";
17
41
  import "../shared-utils/url/absoluteUrl.js";
18
- import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
42
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
43
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
44
+ import "../shared-utils/util.js";
45
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
46
+ import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
47
+ import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
48
+ import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
49
+ import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
50
+ import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
51
+ import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
52
+ import "../shared-utils/Object3DHelper/Controller/MoveController.js";
53
+ import "../shared-utils/Object3DHelper/Base/BaseController.js";
54
+ import "../shared-utils/threex/domevents/index.js";
55
+ import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
56
+ import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
57
+ import "../Sculpt/utils/three/rayOnLine.js";
58
+ import "../Object3DHelperPlugin/FiveControllerWrapper.js";
59
+ import "../shared-utils/Object3DHelper/index.js";
60
+ import "../shared-utils/Object3DHelper/Controller/RotateController.js";
61
+ import "../shared-utils/math/rad2Deg.js";
62
+ import "../shared-utils/math/deg2Rad.js";
63
+ import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
64
+ import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
65
+ import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
66
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
67
+ import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
68
+ import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
69
+ import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
70
+ import "../shared-utils/five/fiveModelLoad.js";
71
+ import "../shared-utils/five/FiveDomEvents.js";
72
+ import "../shared-utils/five/calculateThreeMouse.js";
73
+ import "../shared-utils/three/THREERaycaster.js";
74
+ import "../shared-utils/three/PointSelector/index.js";
75
+ import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
76
+ import "../shared-utils/three/Magnifier.js";
77
+ import "../shared-utils/three/PointSelector/utils/PointHelper.js";
78
+ import "../shared-utils/three/Assets/index.js";
79
+ import "../shared-utils/three/PointSelector/utils/html.js";
80
+ import "../shared-utils/five/initialCSS3DRender.js";
81
+ import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
82
+ import "../Sculpt/Meshes/Line.js";
83
+ import "../Sculpt/typings/style.js";
84
+ import "../shared-utils/five/FiveLine.js";
85
+ import "../shared-utils/tag.js";
86
+ import "../shared-utils/five/vector3ToScreen.js";
87
+ import "../Sculpt/utils/removeAllTag.js";
88
+ import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
89
+ import "../shared-utils/isTouchDevice.js";
90
+ import "../shared-utils/five/getPosition.js";
91
+ import "../shared-utils/five/getRaycasterByNdcPosition.js";
19
92
  import "./DoorLabelItem.js";
20
93
  import "../vendor/svelte/internal/index.js";
21
94
  import "../vendor/classnames/index.js";
22
95
  import "./utils.js";
23
- const j = (o) => new r(o);
96
+ const So = (o) => new r(o);
24
97
  export {
25
- j as PanoDoorLabelPlugin,
26
- j as default
98
+ So as PanoDoorLabelPlugin,
99
+ So as default
27
100
  };