@realsee/dnalogel 3.77.6 → 3.77.7

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 (113) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/Sculpt/Meshes/Line.d.ts +4 -0
  3. package/dist/index.cjs.js +71 -71
  4. package/dist/index.js +3344 -3325
  5. package/dist/index.umd.js +64 -64
  6. package/dist/shared-utils/five/getFiveFromParentChain.d.ts +7 -0
  7. package/libs/AreaMakerPlugin/Controller.js +3 -2
  8. package/libs/AreaMakerPlugin/index.js +3 -2
  9. package/libs/AreaMakerPlugin/utils/Item.js +3 -2
  10. package/libs/CSS3DRenderPlugin/Controller.js +3 -2
  11. package/libs/CSS3DRenderPlugin/index.js +6 -5
  12. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +39 -38
  13. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +10 -9
  14. package/libs/CruisePlugin/BaseController.js +5 -4
  15. package/libs/CruisePlugin/Move.js +3 -2
  16. package/libs/CruisePlugin/Work.js +3 -2
  17. package/libs/CruisePlugin/index.js +7 -6
  18. package/libs/CurrentPanoImagePlugin/Controller.js +15 -14
  19. package/libs/CurrentPanoImagePlugin/index.js +4 -3
  20. package/libs/GuideLinePlugin/Controller.js +5 -4
  21. package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
  22. package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
  23. package/libs/GuideLinePlugin/index.js +7 -6
  24. package/libs/MeasurePlugin/Controller.js +11 -10
  25. package/libs/MeasurePlugin/index.js +5 -4
  26. package/libs/MeasurePlugin/utils/MeasureMesh.js +3 -2
  27. package/libs/ModelChassisCompassPlugin/Plugin.js +4 -3
  28. package/libs/ModelChassisCompassPlugin/index.js +1 -0
  29. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +6 -5
  30. package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
  31. package/libs/ModelMakerPlugin/Controller.js +3 -2
  32. package/libs/ModelMakerPlugin/index.js +3 -2
  33. package/libs/ModelMakerPlugin/item/baseItem.js +3 -2
  34. package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
  35. package/libs/ModelMakerPlugin/item/polygonItem.js +3 -2
  36. package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
  37. package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
  38. package/libs/ModelTVVideoPlugin/index.js +3 -2
  39. package/libs/ModelViewPlugin/Plugin.js +20 -19
  40. package/libs/ModelViewPlugin/index.js +1 -0
  41. package/libs/Object3DHelperPlugin/Controller.js +3 -2
  42. package/libs/Object3DHelperPlugin/index.js +6 -5
  43. package/libs/PanoCompassPlugin/Controller.js +3 -2
  44. package/libs/PanoCompassPlugin/index.js +4 -3
  45. package/libs/PanoDoorLabelPlugin/Controller.js +24 -23
  46. package/libs/PanoDoorLabelPlugin/index.js +4 -3
  47. package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
  48. package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
  49. package/libs/PanoMeasurePlugin/Controller/EditController.js +3 -2
  50. package/libs/PanoMeasurePlugin/Controller/WatchController.js +3 -2
  51. package/libs/PanoMeasurePlugin/Controller/index.js +3 -2
  52. package/libs/PanoMeasurePlugin/Model/area.js +3 -2
  53. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -0
  54. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +16 -15
  55. package/libs/PanoMeasurePlugin/index.js +14 -13
  56. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -2
  57. package/libs/PanoRulerProPlugin/Controller.js +3 -2
  58. package/libs/PanoRulerProPlugin/RulerItems.js +42 -41
  59. package/libs/PanoRulerProPlugin/index.js +4 -3
  60. package/libs/PanoSpatialTagPlugin/Plugin.js +34 -33
  61. package/libs/PanoSpatialTagPlugin/index.js +1 -0
  62. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +3 -2
  63. package/libs/PanoTagPlugin/Components/Common/TagPopover/PopoverContent.js +3 -2
  64. package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopoverToolBar.js +3 -2
  65. package/libs/PanoTagPlugin/Components/Common/TagPopover/index.js +3 -2
  66. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -2
  67. package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
  68. package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
  69. package/libs/PanoTagPlugin/Components/TagItem.js +3 -2
  70. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +3 -2
  71. package/libs/PanoTagPlugin/controller/Tag/BoxTag.js +3 -2
  72. package/libs/PanoTagPlugin/controller/Tag/MaskTag.js +1 -0
  73. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +3 -2
  74. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +3 -2
  75. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
  76. package/libs/PanoTagPlugin/controller/Tag/PolygonTag.js +3 -2
  77. package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
  78. package/libs/PanoTagPlugin/controller/TagUtil.js +3 -2
  79. package/libs/PanoTagPlugin/controller/index.js +30 -29
  80. package/libs/PanoTagPlugin/index.js +12 -11
  81. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
  82. package/libs/PanoTagPlugin/utils/tag/format.js +3 -2
  83. package/libs/PanoVideoPlugin/Controller.js +9 -8
  84. package/libs/PanoVideoPlugin/VideoMeshController.js +3 -2
  85. package/libs/PanoVideoPlugin/index.js +6 -5
  86. package/libs/PipelinePlugin/Controller.js +3 -2
  87. package/libs/PipelinePlugin/index.js +4 -3
  88. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +3 -2
  89. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -2
  90. package/libs/PipelinePlugin/utils/Objects/Pipe.js +1 -0
  91. package/libs/Sculpt/Meshes/Line.d.ts +4 -0
  92. package/libs/Sculpt/Meshes/Line.js +85 -76
  93. package/libs/Sculpt/Meshes/Point.js +28 -28
  94. package/libs/Sculpt/Meshes/Polygon.js +43 -43
  95. package/libs/Sculpt/index.js +1 -1
  96. package/libs/Sculpt/utils/Modules/Cursor.js +7 -7
  97. package/libs/base/BasePlugin.js +1 -1
  98. package/libs/floorplan/FloorplanGuidePlugin/Controller.js +3 -2
  99. package/libs/floorplan/FloorplanGuidePlugin/index.js +4 -3
  100. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +3 -2
  101. package/libs/floorplan/MapviewFloorplanPlugin/index.js +4 -3
  102. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +3 -2
  103. package/libs/floorplan/ModelFloorplanPlugin/index.js +4 -3
  104. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -2
  105. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -3
  106. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +3 -2
  107. package/libs/floorplan/TopviewFloorplanPlugin/index.js +4 -3
  108. package/libs/index.js +159 -158
  109. package/libs/shared-utils/five/getFiveFromParentChain.d.ts +7 -0
  110. package/libs/shared-utils/five/getFiveFromParentChain.js +15 -0
  111. package/libs/shared-utils/logger.js +1 -1
  112. package/libs/shared-utils/three/PointSelector/utils/PointHelper2.js +1 -0
  113. package/package.json +1 -1
@@ -75,6 +75,7 @@ import "../shared-utils/three/IObject3D.js";
75
75
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
76
76
  import "../shared-utils/three/applyObjectMatrixWorld.js";
77
77
  import "../shared-utils/util.js";
78
+ import "../shared-utils/five/getFiveFromParentChain.js";
78
79
  import "../shared-utils/three/core/LineGeometry.js";
79
80
  import "../shared-utils/three/core/LineMaterial.js";
80
81
  import "../shared-utils/three/core/Line2.js";
@@ -93,7 +94,7 @@ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
93
94
  import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
94
95
  import "@realsee/five";
95
96
  const ot = { userAction: !0 };
96
- class wi extends Y {
97
+ class Ai extends Y {
97
98
  constructor(t) {
98
99
  super(t);
99
100
  p(this, "state", { enabled: !0, visible: !0 });
@@ -127,7 +128,7 @@ class wi extends Y {
127
128
  const t = this.floorplanServerData.computed_data.floor_datas || [], r = (((n = (e = this.five) == null ? void 0 : e.work) == null ? void 0 : n.observers) || []).map((s) => {
128
129
  const o = s.panoIndex, v = s.floorIndex, c = t == null ? void 0 : t.find((h) => h.floor_index === v);
129
130
  if (c) {
130
- const h = c.rooms.find((m) => m.observer_indexs.includes(o));
131
+ const h = c.rooms.find((f) => f.observer_indexs.includes(o));
131
132
  if (h)
132
133
  return { panoIndex: o, floorIndex: v, name: h.name };
133
134
  }
@@ -155,9 +156,9 @@ class wi extends Y {
155
156
  const c = o.position.clone(), h = c.distanceTo(e);
156
157
  if (h < this.MinVisibledistance || h > this.MaxVisibledistance)
157
158
  return;
158
- const m = new q(), d = c.clone().sub(e).normalize();
159
- m.set(e, d);
160
- const [b] = this.five.model.intersectRaycaster(m);
159
+ const f = new q(), d = c.clone().sub(e).normalize();
160
+ f.set(e, d);
161
+ const [b] = this.five.model.intersectRaycaster(f);
161
162
  b && b.distance + 0.1 < h || s.push(v);
162
163
  }), this.visibleLabelMap.set(t, s), s;
163
164
  }
@@ -167,7 +168,7 @@ class wi extends Y {
167
168
  }), this.fixDoorPosition();
168
169
  });
169
170
  p(this, "fixDoorPosition", () => {
170
- var v, c, h, m, d, b, x, _, k, H, W, $;
171
+ var v, c, h, f, d, b, x, _, k, H, W, $;
171
172
  if (!this.state.enabled || !this.state.visible)
172
173
  return;
173
174
  const { panoIndex: t, camera: i } = this.five;
@@ -176,17 +177,17 @@ class wi extends Y {
176
177
  if (this.five.currentMode !== "Panorama")
177
178
  return this.hideAllLabels();
178
179
  const r = this.five.getElement(), e = r.clientWidth, n = r.clientHeight, s = i.getWorldDirection(new A()), o = [];
179
- if (this.labelItems.forEach((f, u) => {
180
+ if (this.labelItems.forEach((m, u) => {
180
181
  var I;
181
- if (f.visible) {
182
- const g = i.position.distanceTo(f.position), M = f.position.clone().add(new A(0, this.OffsetHeight, 0)), w = M.clone().sub(i.position).normalize().angleTo(s), V = M.clone().project(i), P = (V.x + 1) / 2.2 * 100, T = (-V.y + 1) / 2.2 * 100, z = P >= 0 && P <= 100 && T >= 0 && T <= 100 && g > this.MinVisibledistance && g <= this.MaxVisibledistance;
183
- f.left = P, f.top = T, f.inSight = z && w < Math.PI / 2, f.cameraToward = J(this.five), z ? o.push({ disFromCameraToLabel: g, left: P, top: T, index: u }) : f.transform = "translate(-50%, -50%)";
182
+ if (m.visible) {
183
+ const g = i.position.distanceTo(m.position), M = m.position.clone().add(new A(0, this.OffsetHeight, 0)), w = M.clone().sub(i.position).normalize().angleTo(s), V = M.clone().project(i), P = (V.x + 1) / 2.2 * 100, T = (-V.y + 1) / 2.2 * 100, z = P >= 0 && P <= 100 && T >= 0 && T <= 100 && g > this.MinVisibledistance && g <= this.MaxVisibledistance;
184
+ m.left = P, m.top = T, m.inSight = z && w < Math.PI / 2, m.cameraToward = J(this.five), z ? o.push({ disFromCameraToLabel: g, left: P, top: T, index: u }) : m.transform = "translate(-50%, -50%)";
184
185
  } else
185
- f.inSight = !1;
186
- const y = f, { svelteApp: D } = y, C = B(y, ["svelteApp"]);
187
- (I = f.svelteApp) == null || I.$set({ props: C });
186
+ m.inSight = !1;
187
+ const y = m, { svelteApp: D } = y, C = B(y, ["svelteApp"]);
188
+ (I = m.svelteApp) == null || I.$set({ props: C });
188
189
  }), o.length > 1) {
189
- let f = 0;
190
+ let m = 0;
190
191
  o.sort((u, D) => D.disFromCameraToLabel - u.disFromCameraToLabel);
191
192
  for (let u = 1; u < o.length; u++) {
192
193
  const { index: D, left: C, top: y } = o[u - 1], { index: I, left: g, top: M } = o[u], S = this.container.children[D], w = this.container.children[I];
@@ -196,14 +197,14 @@ class wi extends Y {
196
197
  left: e * C / 100,
197
198
  top: n * y / 100,
198
199
  width: (h = (c = (v = S.children) == null ? void 0 : v[0]) == null ? void 0 : c.clientWidth) != null ? h : 0,
199
- height: (b = (d = (m = S.children) == null ? void 0 : m[0]) == null ? void 0 : d.clientHeight) != null ? b : 0
200
+ height: (b = (d = (f = S.children) == null ? void 0 : f[0]) == null ? void 0 : d.clientHeight) != null ? b : 0
200
201
  }, P = {
201
202
  left: e * g / 100,
202
203
  top: n * M / 100,
203
204
  width: (k = (_ = (x = w.children) == null ? void 0 : x[0]) == null ? void 0 : _.clientWidth) != null ? k : 0,
204
205
  height: ($ = (W = (H = w.children) == null ? void 0 : H[0]) == null ? void 0 : W.clientHeight) != null ? $ : 0
205
206
  };
206
- K(V, P) && (f++, this.labelItems[D].transform = `translate(-50%, ${(f - 1) * 100 - 50}%)`, this.labelItems[I].transform = `translate(-50%, ${f * 100 - 50}%)`);
207
+ K(V, P) && (m++, this.labelItems[D].transform = `translate(-50%, ${(m - 1) * 100 - 50}%)`, this.labelItems[I].transform = `translate(-50%, ${m * 100 - 50}%)`);
207
208
  }
208
209
  }
209
210
  });
@@ -220,10 +221,10 @@ class wi extends Y {
220
221
  if (n !== void 0 && e !== void 0) {
221
222
  const o = {};
222
223
  if (s > 0) {
223
- const c = new A(0, 0, -1), h = n.clone(), m = new X();
224
- m.setFromUnitVectors(c, h);
224
+ const c = new A(0, 0, -1), h = n.clone(), f = new X();
225
+ f.setFromUnitVectors(c, h);
225
226
  const d = new G();
226
- d.setFromQuaternion(m, "YXZ"), o.longitude = d.y;
227
+ d.setFromQuaternion(f, "YXZ"), o.longitude = d.y;
227
228
  }
228
229
  this.five.emit("wantsToMoveToPano", e, {}, !0) || this.five.moveToPano(e, { longitude: o.longitude });
229
230
  }
@@ -236,13 +237,13 @@ class wi extends Y {
236
237
  }), this.labelItems = [];
237
238
  const t = this.five.panoIndex, i = this.floorplanServerData.computed_data.observers[t].floor_index, r = this.floorplanServerData.computed_data.floor_datas[i];
238
239
  (e = this.floorplanServerData.computed_data.doors) == null || e.forEach((n) => {
239
- const s = this.five.work.observers.filter((m, d) => {
240
+ const s = this.five.work.observers.filter((f, d) => {
240
241
  var b;
241
242
  return !!((b = r == null ? void 0 : r.rooms) != null && b.find((x) => x.observer_indexs.includes(d)));
242
243
  }), o = n.position;
243
244
  let v = 1 / 0, c;
244
- s.forEach((m) => {
245
- const d = m.standingPosition, b = {
245
+ s.forEach((f) => {
246
+ const d = f.standingPosition, b = {
246
247
  x: d.x,
247
248
  y: d.y,
248
249
  z: d.z
@@ -318,5 +319,5 @@ class wi extends Y {
318
319
  }
319
320
  }
320
321
  export {
321
- wi as PanoDoorLabelPluginController
322
+ Ai as PanoDoorLabelPluginController
322
323
  };
@@ -51,6 +51,7 @@ import "../Sculpt/typings/style.js";
51
51
  import "../shared-utils/three/IObject3D.js";
52
52
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
53
53
  import "../shared-utils/three/applyObjectMatrixWorld.js";
54
+ import "../shared-utils/five/getFiveFromParentChain.js";
54
55
  import "../shared-utils/three/core/LineGeometry.js";
55
56
  import "../shared-utils/three/core/LineMaterial.js";
56
57
  import "../shared-utils/three/core/Line2.js";
@@ -71,8 +72,8 @@ import "./DoorLabelItem.js";
71
72
  import "../vendor/svelte/internal/index.js";
72
73
  import "../vendor/classnames/index.js";
73
74
  import "./utils.js";
74
- const Co = (o) => new r(o);
75
+ const ho = (o) => new r(o);
75
76
  export {
76
- Co as PanoDoorLabelPlugin,
77
- Co as default
77
+ ho as PanoDoorLabelPlugin,
78
+ ho as default
78
79
  };
@@ -76,6 +76,7 @@ import "../../Sculpt/Meshes/Line.js";
76
76
  import "../../Sculpt/typings/style.js";
77
77
  import "../../Sculpt/utils/Meshes/getLengthHTML.js";
78
78
  import "../../shared-utils/three/applyObjectMatrixWorld.js";
79
+ import "../../shared-utils/five/getFiveFromParentChain.js";
79
80
  import "../../shared-utils/three/core/LineGeometry.js";
80
81
  import "../../shared-utils/three/core/LineMaterial.js";
81
82
  import "../../shared-utils/three/core/Line2.js";
@@ -303,7 +304,7 @@ function re(n, o, i) {
303
304
  u
304
305
  ];
305
306
  }
306
- class Nt extends j {
307
+ class Qt extends j {
307
308
  constructor(o) {
308
309
  super(), x(
309
310
  this,
@@ -321,5 +322,5 @@ class Nt extends j {
321
322
  }
322
323
  }
323
324
  export {
324
- Nt as default
325
+ Qt as default
325
326
  };
@@ -80,6 +80,7 @@ import "../../Sculpt/Meshes/Line.js";
80
80
  import "../../Sculpt/typings/style.js";
81
81
  import "../../Sculpt/utils/Meshes/getLengthHTML.js";
82
82
  import "../../shared-utils/three/applyObjectMatrixWorld.js";
83
+ import "../../shared-utils/five/getFiveFromParentChain.js";
83
84
  import "../../shared-utils/three/core/LineGeometry.js";
84
85
  import "../../shared-utils/three/core/LineMaterial.js";
85
86
  import "../../shared-utils/three/core/Line2.js";
@@ -453,7 +454,7 @@ function de(o, t, i) {
453
454
  x
454
455
  ];
455
456
  }
456
- class no extends ee {
457
+ class so extends ee {
457
458
  constructor(t) {
458
459
  super(), te(
459
460
  this,
@@ -471,5 +472,5 @@ class no extends ee {
471
472
  }
472
473
  }
473
474
  export {
474
- no as default
475
+ so as default
475
476
  };
@@ -84,6 +84,7 @@ import "../../Sculpt/typings/style.js";
84
84
  import "../../Sculpt/utils/Meshes/getLengthHTML.js";
85
85
  import "../../shared-utils/three/applyObjectMatrixWorld.js";
86
86
  import "../../shared-utils/util.js";
87
+ import "../../shared-utils/five/getFiveFromParentChain.js";
87
88
  import "../../shared-utils/three/core/LineGeometry.js";
88
89
  import "../../shared-utils/three/core/LineMaterial.js";
89
90
  import "../../shared-utils/three/core/Line2.js";
@@ -104,7 +105,7 @@ import "../Modules/DeleteDom/_Assets/delete.svg.js";
104
105
  import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
105
106
  import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
106
107
  const U = () => !1;
107
- class Ut extends z {
108
+ class Vt extends z {
108
109
  constructor(e) {
109
110
  super(e);
110
111
  o(this, "type", "edit");
@@ -384,5 +385,5 @@ class Ut extends z {
384
385
  }
385
386
  }
386
387
  export {
387
- Ut as default
388
+ Vt as default
388
389
  };
@@ -77,6 +77,7 @@ import "../../Sculpt/typings/style.js";
77
77
  import "../../shared-utils/three/IObject3D.js";
78
78
  import "../../Sculpt/utils/Meshes/getLengthHTML.js";
79
79
  import "../../shared-utils/three/applyObjectMatrixWorld.js";
80
+ import "../../shared-utils/five/getFiveFromParentChain.js";
80
81
  import "../../shared-utils/three/core/LineGeometry.js";
81
82
  import "../../shared-utils/three/core/LineMaterial.js";
82
83
  import "../../shared-utils/three/core/Line2.js";
@@ -96,7 +97,7 @@ import "../../shared-utils/three/earcut3D.js";
96
97
  import "../../shared-utils/three/getNormal.js";
97
98
  import "../utils/isIntersecting.js";
98
99
  const D = () => !1;
99
- class He extends U {
100
+ class ke extends U {
100
101
  constructor(t) {
101
102
  super(t);
102
103
  o(this, "type", "watch");
@@ -269,5 +270,5 @@ class He extends U {
269
270
  }
270
271
  }
271
272
  export {
272
- He as default
273
+ ke as default
273
274
  };
@@ -99,6 +99,7 @@ import "../../Sculpt/typings/style.js";
99
99
  import "../../Sculpt/utils/Meshes/getLengthHTML.js";
100
100
  import "../../shared-utils/three/applyObjectMatrixWorld.js";
101
101
  import "../../shared-utils/util.js";
102
+ import "../../shared-utils/five/getFiveFromParentChain.js";
102
103
  import "../../shared-utils/three/core/LineGeometry.js";
103
104
  import "../../shared-utils/three/core/LineMaterial.js";
104
105
  import "../../shared-utils/three/core/Line2.js";
@@ -141,7 +142,7 @@ import "../../vendor/svelte/easing/index.js";
141
142
  import "../../vendor/object-assign-deep/objectAssignDeep.js";
142
143
  import "../Components/Tip.js";
143
144
  import "../../shared-utils/url/defaultUrls.js";
144
- class ui extends J {
145
+ class di extends J {
145
146
  constructor(t, e) {
146
147
  var l, m, h, a, g, y, C, M, w, P, v, b;
147
148
  super(t);
@@ -358,5 +359,5 @@ class ui extends J {
358
359
  }
359
360
  }
360
361
  export {
361
- ui as default
362
+ di as default
362
363
  };
@@ -71,6 +71,7 @@ import "../../Sculpt/Meshes/Line.js";
71
71
  import "../../Sculpt/typings/style.js";
72
72
  import "../../Sculpt/utils/Meshes/getLengthHTML.js";
73
73
  import "../../shared-utils/three/applyObjectMatrixWorld.js";
74
+ import "../../shared-utils/five/getFiveFromParentChain.js";
74
75
  import "../../shared-utils/three/core/LineGeometry.js";
75
76
  import "../../shared-utils/three/core/LineMaterial.js";
76
77
  import "../../shared-utils/three/core/Line2.js";
@@ -84,7 +85,7 @@ import "../../shared-utils/five/getPosition.js";
84
85
  import "../../shared-utils/five/getRaycasterByNdcPosition.js";
85
86
  import "../../shared-utils/three/PointSelector/utils/contents.js";
86
87
  import "../../Sculpt/utils/three/rayOnLine.js";
87
- class Kt {
88
+ class Qt {
88
89
  constructor(t, o) {
89
90
  i(this, "id", f());
90
91
  i(this, "selected", !1);
@@ -183,5 +184,5 @@ class Kt {
183
184
  }
184
185
  }
185
186
  export {
186
- Kt as default
187
+ Qt as default
187
188
  };
@@ -47,6 +47,7 @@ import "../../shared-utils/three/IObject3D.js";
47
47
  import "../../Sculpt/utils/Meshes/getLengthHTML.js";
48
48
  import "../../shared-utils/three/applyObjectMatrixWorld.js";
49
49
  import "../../shared-utils/util.js";
50
+ import "../../shared-utils/five/getFiveFromParentChain.js";
50
51
  import "../../shared-utils/three/core/LineGeometry.js";
51
52
  import "../../shared-utils/three/core/LineMaterial.js";
52
53
  import "../../shared-utils/three/core/Line2.js";
@@ -1,6 +1,6 @@
1
1
  var h = Object.defineProperty;
2
- var c = (r, i, t) => i in r ? h(r, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[i] = t;
3
- var o = (r, i, t) => (c(r, typeof i != "symbol" ? i + "" : i, t), t);
2
+ var c = (e, i, t) => i in e ? h(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t;
3
+ var o = (e, i, t) => (c(e, typeof i != "symbol" ? i + "" : i, t), t);
4
4
  import d from "./HTML.js";
5
5
  import u from "./mobileHTML.js";
6
6
  import { controllerBackgroundStyle as y, operatingSpaceStyle as f, uiWrapperStyle as v, textStyle as w, exitItemStyle as C, exitIconStyle as E } from "./style.js";
@@ -86,6 +86,7 @@ import "../../../Sculpt/Meshes/Line.js";
86
86
  import "../../../Sculpt/typings/style.js";
87
87
  import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
88
88
  import "../../../shared-utils/three/applyObjectMatrixWorld.js";
89
+ import "../../../shared-utils/five/getFiveFromParentChain.js";
89
90
  import "../../../shared-utils/three/core/LineGeometry.js";
90
91
  import "../../../shared-utils/three/core/LineMaterial.js";
91
92
  import "../../../shared-utils/three/core/Line2.js";
@@ -109,7 +110,7 @@ import "../../Components/Common/Switcher1.js";
109
110
  import "../../Components/Common/CircleButton.js";
110
111
  import "../../../vendor/svelte/transition/index.js";
111
112
  import "../../../vendor/svelte/easing/index.js";
112
- class Li {
113
+ class Ii {
113
114
  constructor(i, t) {
114
115
  o(this, "revoke");
115
116
  o(this, "container");
@@ -126,30 +127,30 @@ class Li {
126
127
  if (!t || !i)
127
128
  throw new Error("cannot find dom");
128
129
  this.mode === "pc" && (Object.assign(t.style, C), Object.assign(i == null ? void 0 : i.style, E));
129
- const e = () => {
130
+ const r = () => {
130
131
  t.style.opacity = "1";
131
132
  }, s = () => {
132
133
  t.style.opacity = "0.85";
133
- }, n = () => {
134
+ }, m = () => {
134
135
  this.measureController.disable();
135
136
  };
136
- return t.addEventListener("click", n), t.addEventListener("mouseenter", e), t.addEventListener("mouseleave", s), () => {
137
- t.removeEventListener("click", n), t.removeEventListener("mouseenter", e), t.removeEventListener("mouseleave", s);
137
+ return t.addEventListener("click", m), t.addEventListener("mouseenter", r), t.addEventListener("mouseleave", s), () => {
138
+ t.removeEventListener("click", m), t.removeEventListener("mouseenter", r), t.removeEventListener("mouseleave", s);
138
139
  };
139
140
  });
140
- var s, n;
141
+ var s, m;
141
142
  this._params = t, this.measureController = i, this.mode = (s = t.mode) != null ? s : "pc", this.wrapper = t.container, this.container = document.createElement("div"), this.wrapper.appendChild(this.container);
142
- const e = (n = t.useNewUI) != null ? n : !1;
143
- if (this.useNewUI = e, e && (this.container.style.position = "absolute", this.container.style.top = "0", this.container.style.left = "0", this.container.style.width = "100%", this.container.style.height = "100%", t.pointSelectorMode === "cursor" ? this.svelteDom = new b({
143
+ const r = (m = t.useNewUI) != null ? m : !1;
144
+ if (this.useNewUI = r, r && (this.container.style.position = "absolute", this.container.style.top = "0", this.container.style.left = "0", this.container.style.width = "100%", this.container.style.height = "100%", t.pointSelectorMode === "cursor" ? this.svelteDom = new b({
144
145
  target: this.container,
145
146
  props: { measureController: this.measureController, i18n: t.i18n, showExit: t.showExit }
146
147
  }) : t.pointSelectorMode === "fixed" && (this.svelteDom = new _({
147
148
  target: this.container,
148
149
  props: { measureController: this.measureController, i18n: t.i18n, showExit: t.showExit }
149
- }))), !e) {
150
+ }))), !r) {
150
151
  this.container.innerHTML = this.mode === "mobile" ? u : d, this.container.classList.add("fpm__ui-controller", this.mode), this.container.style.background = "rgba(0, 0, 0, 0.15)";
151
- const l = this.container.querySelectorAll(".fpm__text"), m = this.container.querySelector(".fpm_ui-bg"), p = this.container.querySelector(".fpm_operating-space");
152
- Object.assign(m == null ? void 0 : m.style, y), Object.assign(p == null ? void 0 : p.style, f), Object.assign(this.container.style, v), l.forEach((a) => Object.assign(a.style, w));
152
+ const l = this.container.querySelectorAll(".fpm__text"), n = this.container.querySelector(".fpm_ui-bg"), p = this.container.querySelector(".fpm_operating-space");
153
+ Object.assign(n == null ? void 0 : n.style, y), Object.assign(p == null ? void 0 : p.style, f), Object.assign(this.container.style, v), l.forEach((a) => Object.assign(a.style, w));
153
154
  }
154
155
  }
155
156
  dispose() {
@@ -161,9 +162,9 @@ class Li {
161
162
  }
162
163
  hide() {
163
164
  var i, t;
164
- return this.container.style.display = "none", this.container.style.opacity = "0", this.container.style.transform = "translate(0, 10px)", this.useNewUI === !1 && this.mode === "pc" && ((i = this.revoke) == null || i.dispose()), (t = this.mainController) == null || t.dispose(), this.disposers.forEach((e) => e()), this.disposers = [], this;
165
+ return this.container.style.display = "none", this.container.style.opacity = "0", this.container.style.transform = "translate(0, 10px)", this.useNewUI === !1 && this.mode === "pc" && ((i = this.revoke) == null || i.dispose()), (t = this.mainController) == null || t.dispose(), this.disposers.forEach((r) => r()), this.disposers = [], this;
165
166
  }
166
167
  }
167
168
  export {
168
- Li as UIController
169
+ Ii as UIController
169
170
  };
@@ -1,7 +1,7 @@
1
1
  import t from "./Controller/index.js";
2
2
  import "../shared-utils/tag.js";
3
3
  import "three";
4
- import { Magnifier as kr } from "../shared-utils/three/Magnifier.js";
4
+ import { Magnifier as qr } from "../shared-utils/three/Magnifier.js";
5
5
  import "../shared-utils/three/PointSelector/index.js";
6
6
  import "../shared-utils/three/CSS3DRenderer/index.js";
7
7
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
@@ -13,10 +13,10 @@ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
13
13
  import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
14
14
  import "../vendor/earcut/src/earcut.js";
15
15
  import "../shared-utils/five/FivePuppet.js";
16
- import { Model as vr } from "./Model/index.js";
17
- import { default as Ar } from "./Model/point.js";
18
- import { default as Dr } from "./Model/line.js";
19
- import { Polyline as Fr } from "./Model/polyline.js";
16
+ import { Model as zr } from "./Model/index.js";
17
+ import { default as Br } from "./Model/point.js";
18
+ import { default as Er } from "./Model/line.js";
19
+ import { Polyline as Gr } from "./Model/polyline.js";
20
20
  import "./Controller/EditController.js";
21
21
  import "../shared-utils/throttle.js";
22
22
  import "./Controller/BaseController.js";
@@ -71,6 +71,7 @@ import "../Sculpt/typings/style.js";
71
71
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
72
72
  import "../shared-utils/three/applyObjectMatrixWorld.js";
73
73
  import "../shared-utils/util.js";
74
+ import "../shared-utils/five/getFiveFromParentChain.js";
74
75
  import "../shared-utils/three/core/LineGeometry.js";
75
76
  import "../shared-utils/three/core/LineMaterial.js";
76
77
  import "../shared-utils/three/core/Line2.js";
@@ -129,15 +130,15 @@ import "./Controller/ShortcutKeyController.js";
129
130
  import "../shared-utils/safeObj.js";
130
131
  import "../base/BasePlugin.js";
131
132
  import "../shared-utils/url/defaultUrls.js";
132
- const br = function(o, r) {
133
+ const hr = function(o, r) {
133
134
  return new t(o, r);
134
135
  };
135
136
  export {
136
- kr as Magnifier,
137
- br as PanoMeasurePlugin,
138
- Dr as PanoMeasurePluginLine,
139
- vr as PanoMeasurePluginModel,
140
- Ar as PanoMeasurePluginPoint,
141
- Fr as PanoMeasurePluginPolyline,
142
- br as default
137
+ qr as Magnifier,
138
+ hr as PanoMeasurePlugin,
139
+ Er as PanoMeasurePluginLine,
140
+ zr as PanoMeasurePluginModel,
141
+ Br as PanoMeasurePluginPoint,
142
+ Gr as PanoMeasurePluginPolyline,
143
+ hr as default
143
144
  };
@@ -63,6 +63,7 @@ import "../../../shared-utils/three/IObject3D.js";
63
63
  import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
64
64
  import "../../../shared-utils/three/applyObjectMatrixWorld.js";
65
65
  import "../../../shared-utils/util.js";
66
+ import "../../../shared-utils/five/getFiveFromParentChain.js";
66
67
  import "../../../shared-utils/three/core/LineGeometry.js";
67
68
  import "../../../shared-utils/three/core/LineMaterial.js";
68
69
  import "../../../shared-utils/three/core/Line2.js";
@@ -80,7 +81,7 @@ import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
80
81
  import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
81
82
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
82
83
  import "@realsee/five";
83
- class Ht extends y {
84
+ class Jt extends y {
84
85
  constructor(t) {
85
86
  t.containerStyle = s(n({}, t.containerStyle), {
86
87
  zIndex: "1"
@@ -111,5 +112,5 @@ class Ht extends y {
111
112
  }
112
113
  }
113
114
  export {
114
- Ht as AreaItem
115
+ Jt as AreaItem
115
116
  };
@@ -81,6 +81,7 @@ import "../Sculpt/typings/style.js";
81
81
  import "../shared-utils/three/IObject3D.js";
82
82
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
83
83
  import "../shared-utils/three/applyObjectMatrixWorld.js";
84
+ import "../shared-utils/five/getFiveFromParentChain.js";
84
85
  import "../shared-utils/three/core/LineGeometry.js";
85
86
  import "../shared-utils/three/core/LineMaterial.js";
86
87
  import "../shared-utils/three/core/Line2.js";
@@ -99,7 +100,7 @@ import "../shared-utils/equal.js";
99
100
  import "../shared-utils/isTruelyObject.js";
100
101
  import "../shared-utils/math/planimetry.js";
101
102
  import "./RulerItem.js";
102
- class Gt {
103
+ class Ht {
103
104
  constructor(t, i) {
104
105
  e(this, "five");
105
106
  e(this, "container", document.createElement("div"));
@@ -162,5 +163,5 @@ class Gt {
162
163
  }
163
164
  }
164
165
  export {
165
- Gt as default
166
+ Ht as default
166
167
  };