@realsee/dnalogel 3.46.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 (83) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/Sculpt/utils/removeAllTag.d.ts +2 -0
  3. package/dist/index.cjs.js +53 -53
  4. package/dist/index.js +2583 -2573
  5. package/dist/index.umd.js +46 -46
  6. package/libs/AreaMakerPlugin/Controller.js +3 -2
  7. package/libs/AreaMakerPlugin/index.js +3 -2
  8. package/libs/AreaMakerPlugin/utils/Item.js +3 -2
  9. package/libs/CSS3DRenderPlugin/Controller.js +3 -2
  10. package/libs/CSS3DRenderPlugin/index.js +6 -5
  11. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +3 -2
  12. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +3 -2
  13. package/libs/CruisePlugin/BaseController.js +5 -4
  14. package/libs/CruisePlugin/Move.js +3 -2
  15. package/libs/CruisePlugin/Work.js +3 -2
  16. package/libs/CruisePlugin/index.js +7 -6
  17. package/libs/CurrentPanoImagePlugin/Controller.js +3 -2
  18. package/libs/CurrentPanoImagePlugin/index.js +4 -3
  19. package/libs/GuideLinePlugin/Controller.js +5 -4
  20. package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
  21. package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
  22. package/libs/GuideLinePlugin/index.js +7 -6
  23. package/libs/ModelMakerPlugin/Controller.js +3 -2
  24. package/libs/ModelMakerPlugin/index.js +3 -2
  25. package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
  26. package/libs/ModelTVVideoPlugin/index.js +3 -2
  27. package/libs/Object3DHelperPlugin/Controller.js +19 -18
  28. package/libs/Object3DHelperPlugin/index.js +6 -5
  29. package/libs/PanoCompassPlugin/Controller.js +3 -2
  30. package/libs/PanoCompassPlugin/index.js +4 -3
  31. package/libs/PanoDoorLabelPlugin/BaseController.js +3 -2
  32. package/libs/PanoDoorLabelPlugin/Controller.js +21 -20
  33. package/libs/PanoDoorLabelPlugin/index.js +4 -3
  34. package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
  35. package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
  36. package/libs/PanoMeasurePlugin/Controller/EditController.js +3 -2
  37. package/libs/PanoMeasurePlugin/Controller/WatchController.js +3 -2
  38. package/libs/PanoMeasurePlugin/Controller/index.js +3 -2
  39. package/libs/PanoMeasurePlugin/Model/area.js +3 -2
  40. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -0
  41. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -2
  42. package/libs/PanoMeasurePlugin/index.js +14 -13
  43. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -2
  44. package/libs/PanoSpatialTagPlugin/Plugin.js +4 -3
  45. package/libs/PanoSpatialTagPlugin/index.js +1 -0
  46. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +34 -33
  47. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -2
  48. package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
  49. package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
  50. package/libs/PanoTagPlugin/Components/TagItem.js +3 -2
  51. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +62 -61
  52. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +3 -2
  53. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +3 -2
  54. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
  55. package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
  56. package/libs/PanoTagPlugin/controller/TagUtil.js +3 -2
  57. package/libs/PanoTagPlugin/controller/index.js +6 -5
  58. package/libs/PanoTagPlugin/index.js +12 -11
  59. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
  60. package/libs/PanoVideoPlugin/Controller.js +3 -2
  61. package/libs/PanoVideoPlugin/VideoMeshController.js +3 -2
  62. package/libs/PanoVideoPlugin/index.js +6 -5
  63. package/libs/PipelinePlugin/Controller.js +3 -2
  64. package/libs/PipelinePlugin/index.js +4 -3
  65. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +3 -2
  66. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -2
  67. package/libs/PipelinePlugin/utils/Objects/Pipe.js +1 -0
  68. package/libs/Sculpt/Meshes/Line.js +17 -14
  69. package/libs/Sculpt/Objects/Base/index.js +20 -17
  70. package/libs/Sculpt/utils/removeAllTag.d.ts +2 -0
  71. package/libs/Sculpt/utils/removeAllTag.js +10 -0
  72. package/libs/base/BasePlugin.js +1 -1
  73. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +3 -2
  74. package/libs/floorplan/MapviewFloorplanPlugin/index.js +4 -3
  75. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +3 -2
  76. package/libs/floorplan/ModelFloorplanPlugin/index.js +4 -3
  77. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -2
  78. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -3
  79. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +3 -2
  80. package/libs/floorplan/TopviewFloorplanPlugin/index.js +4 -3
  81. package/libs/index.js +126 -125
  82. package/libs/shared-utils/logger.js +1 -1
  83. package/package.json +1 -1
@@ -91,6 +91,7 @@ import "../../../Sculpt/typings/style.js";
91
91
  import "../../../shared-utils/five/FiveLine.js";
92
92
  import "../../../shared-utils/tag.js";
93
93
  import "../../../shared-utils/five/vector3ToScreen.js";
94
+ import "../../../Sculpt/utils/removeAllTag.js";
94
95
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
95
96
  import "../../../shared-utils/isTouchDevice.js";
96
97
  import "../../../shared-utils/five/getPosition.js";
@@ -99,7 +100,7 @@ function Q(t) {
99
100
  U(t, "svelte-7aiuwz", '@charset "UTF-8";.tag-point-click-helper.svelte-7aiuwz.svelte-7aiuwz{position:absolute;pointer-events:auto;cursor:pointer;width:calc(100% + 0.75rem);height:calc(100% + 0.75rem);left:50%;top:50%;transform:translate(-50%, -50%)}.tag-point-wrapper.svelte-7aiuwz.svelte-7aiuwz{pointer-events:none;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.tag-folded-point.svelte-7aiuwz.svelte-7aiuwz,.tag-unfolded-point.svelte-7aiuwz.svelte-7aiuwz{transition:all 0.5s}.tag-point-wrapper.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;border-radius:50%}.tag-point-wrapper.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.3125rem;height:0.3125rem;border-radius:50%;background-color:white}.tag-point-wrapper.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz:before{content:"";position:absolute;width:0.875rem;height:0.875rem;border-radius:50%;background-color:rgba(0, 0, 0, 0.2)}.tag-point-wrapper.folded.svelte-7aiuwz .tag-folded-point.svelte-7aiuwz{opacity:1;scale:1}.tag-point-wrapper.folded.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz{opacity:0;scale:1}.tag-point-wrapper.unfolded.svelte-7aiuwz .tag-folded-point.svelte-7aiuwz{opacity:0;scale:0.2}.tag-point-wrapper.unfolded.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz{opacity:1;scale:1}');
100
101
  }
101
102
  function V(t) {
102
- let o, n, d, l, c, s, w, e, p, a, g, v;
103
+ let o, n, d, l, c, s, w, i, p, a, g, v;
103
104
  return l = new H({
104
105
  props: {
105
106
  center: !0,
@@ -124,7 +125,7 @@ function V(t) {
124
125
  t[7]
125
126
  ), {
126
127
  c() {
127
- o = h("div"), n = h("div"), d = _(), S(l.$$.fragment), c = _(), s = h("div"), w = _(), e = h("div"), S(p.$$.fragment), z(n, "class", "tag-point-click-helper svelte-7aiuwz"), z(s, "class", "tag-unfolded-point svelte-7aiuwz"), y(
128
+ o = h("div"), n = h("div"), d = _(), S(l.$$.fragment), c = _(), s = h("div"), w = _(), i = h("div"), S(p.$$.fragment), z(n, "class", "tag-point-click-helper svelte-7aiuwz"), z(s, "class", "tag-unfolded-point svelte-7aiuwz"), y(
128
129
  s,
129
130
  "transition-delay",
130
131
  /*folded*/
@@ -132,8 +133,8 @@ function V(t) {
132
133
  /*foldDelay*/
133
134
  t[5]
134
135
  ) : 0) + "ms"
135
- ), z(e, "class", "tag-folded-point svelte-7aiuwz"), y(
136
- e,
136
+ ), z(i, "class", "tag-folded-point svelte-7aiuwz"), y(
137
+ i,
137
138
  "transition-delay",
138
139
  /*folded*/
139
140
  (t[3] ? (
@@ -152,68 +153,68 @@ function V(t) {
152
153
  t[3]
153
154
  );
154
155
  },
155
- m(i, m) {
156
- W(i, o, m), f(o, n), f(o, d), A(l, o, null), f(o, c), f(o, s), f(o, w), f(o, e), A(p, e, null), a = !0, g || (v = X(
156
+ m(e, m) {
157
+ W(e, o, m), f(o, n), f(o, d), A(l, o, null), f(o, c), f(o, s), f(o, w), f(o, i), A(p, i, null), a = !0, g || (v = X(
157
158
  n,
158
159
  "click",
159
160
  /*handlePointClick*/
160
161
  t[4]
161
162
  ), g = !0);
162
163
  },
163
- p(i, [m]) {
164
+ p(e, [m]) {
164
165
  m & /*folded*/
165
166
  8 && y(
166
167
  s,
167
168
  "transition-delay",
168
169
  /*folded*/
169
- (i[3] ? (
170
+ (e[3] ? (
170
171
  /*foldDelay*/
171
- i[5]
172
+ e[5]
172
173
  ) : 0) + "ms"
173
174
  );
174
175
  const r = {};
175
176
  m & /*url*/
176
177
  4 && (r.icon = /*url*/
177
- i[2]), m & /*width*/
178
+ e[2]), m & /*width*/
178
179
  2 && (r.width = /*width*/
179
- i[1]), p.$set(r), m & /*folded*/
180
+ e[1]), p.$set(r), m & /*folded*/
180
181
  8 && y(
181
- e,
182
+ i,
182
183
  "transition-delay",
183
184
  /*folded*/
184
- (i[3] ? (
185
+ (e[3] ? (
185
186
  /*foldDelay*/
186
- i[5]
187
+ e[5]
187
188
  ) : 0) + "ms"
188
189
  ), (!a || m & /*unfolded*/
189
190
  1) && b(
190
191
  o,
191
192
  "unfolded",
192
193
  /*unfolded*/
193
- i[0]
194
+ e[0]
194
195
  ), (!a || m & /*folded*/
195
196
  8) && b(
196
197
  o,
197
198
  "folded",
198
199
  /*folded*/
199
- i[3]
200
+ e[3]
200
201
  );
201
202
  },
202
- i(i) {
203
- a || (D(l.$$.fragment, i), D(p.$$.fragment, i), a = !0);
203
+ i(e) {
204
+ a || (D(l.$$.fragment, e), D(p.$$.fragment, e), a = !0);
204
205
  },
205
- o(i) {
206
- I(l.$$.fragment, i), I(p.$$.fragment, i), a = !1;
206
+ o(e) {
207
+ I(l.$$.fragment, e), I(p.$$.fragment, e), a = !1;
207
208
  },
208
- d(i) {
209
- i && B(o), R(l), R(p), g = !1, v();
209
+ d(e) {
210
+ e && B(o), R(l), R(p), g = !1, v();
210
211
  }
211
212
  };
212
213
  }
213
214
  function Y(t, o, n) {
214
215
  let d, l, c, s;
215
216
  const w = E("hooks");
216
- let { tag: e } = o, p, a = !1;
217
+ let { tag: i } = o, p, a = !1;
217
218
  const g = () => {
218
219
  p !== void 0 && clearTimeout(p), a = !0, p = setTimeout(
219
220
  () => {
@@ -222,25 +223,25 @@ function Y(t, o, n) {
222
223
  800
223
224
  );
224
225
  }, v = (r) => {
225
- a || (e.entryFromModel && N(e.five.state.mode) ? e.find({ targetMode: "Panorama" }).then(() => e.unfoldAndFoldOthers()) : w.emit("click", { event: r, target: "TagPoint", tag: e }));
226
- }, i = (() => e.contentType === "Text" && e.data.appearance === "plane" ? 500 : 800)();
226
+ a || (i.entryFromModel && N(i.five.state.mode) ? i.find({ targetMode: "Panorama" }).then(() => i.unfoldAndFoldOthers()) : w.emit("click", { event: r, target: "TagPoint", tag: i }));
227
+ }, e = (() => i.contentType === "Text" && i.data.appearance === "plane" ? 500 : 800)();
227
228
  function m(r) {
228
229
  G.call(this, t, r);
229
230
  }
230
231
  return t.$$set = (r) => {
231
- "tag" in r && n(6, e = r.tag);
232
+ "tag" in r && n(6, i = r.tag);
232
233
  }, t.$$.update = () => {
233
234
  var r, k, T, L;
234
235
  t.$$.dirty & /*tag*/
235
- 64 && n(0, d = (r = e.state) == null ? void 0 : r.unfolded), t.$$.dirty & /*unfolded*/
236
+ 64 && n(0, d = (r = i.state) == null ? void 0 : r.unfolded), t.$$.dirty & /*unfolded*/
236
237
  1 && n(3, l = !d), t.$$.dirty & /*tag*/
237
- 64 && n(2, c = (T = (k = e.style) == null ? void 0 : k.point) != null && T.url ? (L = e.style) == null ? void 0 : L.point : { url: K }), t.$$.dirty & /*tag*/
238
+ 64 && n(2, c = (T = (k = i.style) == null ? void 0 : k.point) != null && T.url ? (L = i.style) == null ? void 0 : L.point : { url: K }), t.$$.dirty & /*tag*/
238
239
  64 && n(1, s = (() => {
239
240
  var M, $, C, F;
240
- const P = ($ = (M = e.style) == null ? void 0 : M.point) == null ? void 0 : $.width;
241
+ const P = ($ = (M = i.style) == null ? void 0 : M.point) == null ? void 0 : $.width;
241
242
  if (typeof P == "number")
242
243
  return P;
243
- const u = (F = (C = e.style) == null ? void 0 : C.point) == null ? void 0 : F.size;
244
+ const u = (F = (C = i.style) == null ? void 0 : C.point) == null ? void 0 : F.size;
244
245
  if (typeof u == "number")
245
246
  return u;
246
247
  if (u === "S")
@@ -258,16 +259,16 @@ function Y(t, o, n) {
258
259
  c,
259
260
  l,
260
261
  v,
261
- i,
262
262
  e,
263
+ i,
263
264
  m
264
265
  ];
265
266
  }
266
- class Xe extends j {
267
+ class Bi extends j {
267
268
  constructor(o) {
268
269
  super(), q(this, o, Y, V, O, { tag: 6 }, Q);
269
270
  }
270
271
  }
271
272
  export {
272
- Xe as default
273
+ Bi as default
273
274
  };
@@ -85,6 +85,7 @@ import "../../../Sculpt/typings/style.js";
85
85
  import "../../../shared-utils/five/FiveLine.js";
86
86
  import "../../../shared-utils/tag.js";
87
87
  import "../../../shared-utils/five/vector3ToScreen.js";
88
+ import "../../../Sculpt/utils/removeAllTag.js";
88
89
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
89
90
  import "../../../shared-utils/isTouchDevice.js";
90
91
  import "../../../shared-utils/five/getPosition.js";
@@ -489,11 +490,11 @@ function ze(i, e, t) {
489
490
  U
490
491
  ];
491
492
  }
492
- class oi extends te {
493
+ class ni extends te {
493
494
  constructor(e) {
494
495
  super(), ie(this, e, ze, ue, re, { tag: 0 }, he);
495
496
  }
496
497
  }
497
498
  export {
498
- oi as default
499
+ ni as default
499
500
  };
@@ -145,6 +145,7 @@ import "../../../Sculpt/typings/style.js";
145
145
  import "../../../shared-utils/five/FiveLine.js";
146
146
  import "../../../shared-utils/tag.js";
147
147
  import "../../../shared-utils/five/vector3ToScreen.js";
148
+ import "../../../Sculpt/utils/removeAllTag.js";
148
149
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
149
150
  import "../../../shared-utils/isTouchDevice.js";
150
151
  import "../../../shared-utils/five/getPosition.js";
@@ -821,7 +822,7 @@ function TA(i, A, t) {
821
822
  y
822
823
  ];
823
824
  }
824
- class ro extends tA {
825
+ class no extends tA {
825
826
  constructor(A) {
826
827
  super(), iA(
827
828
  this,
@@ -843,5 +844,5 @@ class ro extends tA {
843
844
  }
844
845
  }
845
846
  export {
846
- ro as default
847
+ no as default
847
848
  };
@@ -138,6 +138,7 @@ import "../../Sculpt/typings/style.js";
138
138
  import "../../shared-utils/five/FiveLine.js";
139
139
  import "../../shared-utils/tag.js";
140
140
  import "../../shared-utils/five/vector3ToScreen.js";
141
+ import "../../Sculpt/utils/removeAllTag.js";
141
142
  import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
142
143
  import "../../shared-utils/isTouchDevice.js";
143
144
  import "../../shared-utils/five/getPosition.js";
@@ -380,7 +381,7 @@ function O(a, t, o) {
380
381
  m
381
382
  ];
382
383
  }
383
- class Mr extends v {
384
+ class Sr extends v {
384
385
  constructor(t) {
385
386
  super(), w(
386
387
  this,
@@ -403,5 +404,5 @@ class Mr extends v {
403
404
  }
404
405
  }
405
406
  export {
406
- Mr as default
407
+ Sr as default
407
408
  };
@@ -140,6 +140,7 @@ import "../../Sculpt/typings/style.js";
140
140
  import "../../shared-utils/five/FiveLine.js";
141
141
  import "../../shared-utils/tag.js";
142
142
  import "../../shared-utils/five/vector3ToScreen.js";
143
+ import "../../Sculpt/utils/removeAllTag.js";
143
144
  import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
144
145
  import "../../shared-utils/isTouchDevice.js";
145
146
  import "../../shared-utils/five/getPosition.js";
@@ -529,7 +530,7 @@ function at(o, t, i) {
529
530
  H
530
531
  ];
531
532
  }
532
- class Eo extends J {
533
+ class Go extends J {
533
534
  constructor(t) {
534
535
  super(), K(
535
536
  this,
@@ -550,5 +551,5 @@ class Eo extends J {
550
551
  }
551
552
  }
552
553
  export {
553
- Eo as default
554
+ Go as default
554
555
  };
@@ -21,20 +21,20 @@ var B = (u, i) => {
21
21
  };
22
22
  var f = (u, i, e) => (M(u, typeof i != "symbol" ? i + "" : i, e), e);
23
23
  var U = (u, i, e) => new Promise((t, r) => {
24
- var n = (s) => {
24
+ var n = (o) => {
25
25
  try {
26
- o(e.next(s));
26
+ s(e.next(o));
27
27
  } catch (a) {
28
28
  r(a);
29
29
  }
30
- }, l = (s) => {
30
+ }, l = (o) => {
31
31
  try {
32
- o(e.throw(s));
32
+ s(e.throw(o));
33
33
  } catch (a) {
34
34
  r(a);
35
35
  }
36
- }, o = (s) => s.done ? t(s.value) : Promise.resolve(s.value).then(n, l);
37
- o((e = e.apply(u, i)).next());
36
+ }, s = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(n, l);
37
+ s((e = e.apply(u, i)).next());
38
38
  });
39
39
  import { Subscribe as K } from "../../../shared-utils/Subscribe.js";
40
40
  import { calculateTagConfig as w } from "../../utils/tag/calculateTagConfig.js";
@@ -52,8 +52,8 @@ import { blink as ie, reblink as te } from "../../../shared-utils/three/blink.js
52
52
  import { vectorToCoordinates as ne } from "../../../shared-utils/vectorToCoordinate.js";
53
53
  import { transformPosition as O } from "../../../shared-utils/five/transformPosition.js";
54
54
  import { isNil as R, notNil as E } from "../../../shared-utils/isNil.js";
55
- import { lookPoint as se } from "../../../shared-utils/five/lookPoint.js";
56
- import { uuid as oe } from "../../../shared-utils/uuid.js";
55
+ import { lookPoint as oe } from "../../../shared-utils/five/lookPoint.js";
56
+ import { uuid as se } from "../../../shared-utils/uuid.js";
57
57
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
58
58
  import { objectAssignDeepExports as b } from "../../../vendor/object-assign-deep/objectAssignDeep.js";
59
59
  import { getTagPosition as L, getTagCenterPosition as $ } from "../../utils/tagPosition.js";
@@ -139,6 +139,7 @@ import "../../../Sculpt/typings/style.js";
139
139
  import "../../../shared-utils/five/FiveLine.js";
140
140
  import "../../../shared-utils/tag.js";
141
141
  import "../../../shared-utils/five/vector3ToScreen.js";
142
+ import "../../../Sculpt/utils/removeAllTag.js";
142
143
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
143
144
  import "../../../shared-utils/isTouchDevice.js";
144
145
  import "../../../shared-utils/five/getPosition.js";
@@ -146,7 +147,7 @@ import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
146
147
  import "../../../shared-utils/formatRad.js";
147
148
  const k = new S.Raycaster();
148
149
  k.params.Points.threshold = 0.1;
149
- class ct {
150
+ class ht {
150
151
  constructor(i, e) {
151
152
  f(this, "plugin");
152
153
  f(this, "id");
@@ -176,17 +177,17 @@ class ct {
176
177
  f(this, "computedConfig");
177
178
  f(this, "cache");
178
179
  f(this, "entryFromModel");
179
- var s, a, c, g;
180
+ var o, a, c, g;
180
181
  this.plugin = i;
181
182
  const t = Y(e);
182
183
  e.stickType = t;
183
- const r = JSON.parse(JSON.stringify(e.data)), n = (s = e.initialConfig) != null ? s : e.config ? JSON.parse(JSON.stringify(e.config)) : {};
184
+ const r = JSON.parse(JSON.stringify(e.data)), n = (o = e.initialConfig) != null ? o : e.config ? JSON.parse(JSON.stringify(e.config)) : {};
184
185
  e.initialConfig = n;
185
- const l = w(e, i.config), o = this.getConfig(e);
186
- e.config = o, this.id = (a = e.id) != null ? a : oe(), this.enabled = (c = e.enabled) != null ? c : !0, this.contentType = e.contentType, this.data = (g = o.initialData) != null && g.important ? b(e.data, r, o.initialData) : b(e.data, o.initialData, r), this.state = p({
186
+ const l = w(e, i.config), s = this.getConfig(e);
187
+ e.config = s, this.id = (a = e.id) != null ? a : se(), this.enabled = (c = e.enabled) != null ? c : !0, this.contentType = e.contentType, this.data = (g = s.initialData) != null && g.important ? b(e.data, r, s.initialData) : b(e.data, s.initialData, r), this.state = p({
187
188
  visible: void 0,
188
189
  unfolded: !this.can("fold")
189
- }, o.initialState), this.originPosition = e.position, e.originPosition = this.originPosition, this.position = (() => {
190
+ }, s.initialState), this.originPosition = e.position, e.originPosition = this.originPosition, this.position = (() => {
190
191
  const d = e.originPosition;
191
192
  if (!d)
192
193
  return;
@@ -243,14 +244,14 @@ class ct {
243
244
  const n = e == null ? void 0 : e.panoIndex;
244
245
  if (R(n))
245
246
  return;
246
- const l = this.workUtil.getObserverPosition(n), o = this.centerPosition.clone().sub(l).normalize();
247
+ const l = this.workUtil.getObserverPosition(n), s = this.centerPosition.clone().sub(l).normalize();
247
248
  this.five.setState(p({
248
249
  mode: "Panorama",
249
250
  workCode: this.workUtil.workCode,
250
251
  panoIndex: n
251
- }, ne(o))), yield this.five.ready();
252
+ }, ne(s))), yield this.five.ready();
252
253
  } else
253
- t === "Mapview" && (yield se(this.five, this.centerPosition, i == null ? void 0 : i.pointConfig));
254
+ t === "Mapview" && (yield oe(this.five, this.centerPosition, i == null ? void 0 : i.pointConfig));
254
255
  });
255
256
  }
256
257
  /**
@@ -258,8 +259,8 @@ class ct {
258
259
  */
259
260
  blink(i) {
260
261
  return U(this, null, function* () {
261
- var o, s;
262
- const e = (o = this.enabled) != null ? o : !0, t = (s = this.state) == null ? void 0 : s.visible, r = e && t;
262
+ var s, o;
263
+ const e = (s = this.enabled) != null ? s : !0, t = (o = this.state) == null ? void 0 : o.visible, r = e && t;
263
264
  r === !1 && (this.state.visible = !0, this.enabled = !0, this.applyVisible(), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.plugin.render(), yield de(0), this.dom && (this.dom.style.visibility = "hidden"), this.contentDom && (this.contentDom.style.visibility = "hidden"));
264
265
  const n = (() => {
265
266
  var c;
@@ -356,13 +357,13 @@ class ct {
356
357
  this.zIndex = Math.round((1e4 - (i != null ? i : 0)) * 100);
357
358
  }
358
359
  getConfig(i, e) {
359
- var l, o, s;
360
- const t = w(i != null ? i : this, this.plugin.config, { useCache: e == null ? void 0 : e.useCache }), r = (l = e == null ? void 0 : e.fiveMode) != null ? l : this.five.getCurrentState().mode, n = (o = t.configWithFiveMode) == null ? void 0 : o[r];
361
- return (s = n != null ? n : t) != null ? s : {};
360
+ var l, s, o;
361
+ const t = w(i != null ? i : this, this.plugin.config, { useCache: e == null ? void 0 : e.useCache }), r = (l = e == null ? void 0 : e.fiveMode) != null ? l : this.five.getCurrentState().mode, n = (s = t.configWithFiveMode) == null ? void 0 : s[r];
362
+ return (o = n != null ? n : t) != null ? o : {};
362
363
  }
363
364
  getDistance(i, e = 3) {
364
- const t = p(p({}, this.five.getCurrentState()), i), { panoIndex: r, mode: n } = t, l = n === "Panorama" ? this.workUtil.getObserverPosition(r) : this.five.camera.position, o = this.centerPosition;
365
- return !l || !o ? -1 : l.distanceTo(o);
365
+ const t = p(p({}, this.five.getCurrentState()), i), { panoIndex: r, mode: n } = t, l = n === "Panorama" ? this.workUtil.getObserverPosition(r) : this.five.camera.position, s = this.centerPosition;
366
+ return !l || !s ? -1 : l.distanceTo(s);
366
367
  }
367
368
  getVisible(i) {
368
369
  if (!this.enabled || !this.plugin.state.enabled || !this.fiveUtil.model)
@@ -426,52 +427,52 @@ class ct {
426
427
  const e = p(p({}, this.five.getCurrentState()), i), { panoIndex: t, mode: r } = e, n = [];
427
428
  return (() => {
428
429
  var a, g, d;
429
- const s = (a = this.getConfig().visibleConfig) != null ? a : {};
430
- if (typeof s == "function")
430
+ const o = (a = this.getConfig().visibleConfig) != null ? a : {};
431
+ if (typeof o == "function")
431
432
  return {
432
- value: s(this.five, { tag: this, distance: this.getDistance(e, void 0) }),
433
+ value: o(this.five, { tag: this, distance: this.getDistance(e, void 0) }),
433
434
  checkedList: n,
434
435
  reason: "config function result"
435
436
  };
436
437
  {
437
- if (s.keep === "hidden")
438
+ if (o.keep === "hidden")
438
439
  return { value: !1, checkedList: n, reason: "config.keep is hidden" };
439
- if (s.keep === "visible")
440
+ if (o.keep === "visible")
440
441
  return { value: !0, checkedList: n, reason: "config.keep is visible" };
441
- const m = this.computeVisibleByFiveMode(s, r);
442
+ const m = this.computeVisibleByFiveMode(o, r);
442
443
  if ((m == null ? void 0 : m.value) === !1)
443
444
  return m;
444
- if (s.followModelVisibility === !0 && ["poincare", "aerophoto", "sand"].includes(this.workUtil.fromType) && (r === "Floorplan" || r === "Mapview")) {
445
+ if (o.followModelVisibility === !0 && ["poincare", "aerophoto", "sand"].includes(this.workUtil.fromType) && (r === "Floorplan" || r === "Mapview")) {
445
446
  const c = this.computeVisibleByFloorIndex(), { value: h } = c, v = B(c, ["value"]);
446
447
  if (h === !1)
447
448
  return p({ value: !1, checkedList: n, reason: "followModelVisibility check failed" }, v);
448
449
  }
449
- if (T(r) && s.visiblePanoIndex !== void 0 && s.visiblePanoIndex !== "all" && t !== void 0) {
450
- if (n.push("visiblePanoIndex"), Array.isArray(s.visiblePanoIndex) && !s.visiblePanoIndex.includes(t))
450
+ if (T(r) && o.visiblePanoIndex !== void 0 && o.visiblePanoIndex !== "all" && t !== void 0) {
451
+ if (n.push("visiblePanoIndex"), Array.isArray(o.visiblePanoIndex) && !o.visiblePanoIndex.includes(t))
451
452
  return {
452
453
  value: !1,
453
454
  checkedList: n,
454
- reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${s.visiblePanoIndex}`
455
+ reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${o.visiblePanoIndex}`
455
456
  };
456
- if (s.visiblePanoIndex === "current" && t !== ((g = this.fiveState) == null ? void 0 : g.panoIndex))
457
+ if (o.visiblePanoIndex === "current" && t !== ((g = this.fiveState) == null ? void 0 : g.panoIndex))
457
458
  return {
458
459
  value: !1,
459
460
  checkedList: n,
460
461
  reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(d = this.fiveState) == null ? void 0 : d.panoIndex}`
461
462
  };
462
463
  }
463
- if (s.visibleDistance !== void 0 && (n.push("visibleDistance"), s.visibleDistance !== "unLimited")) {
464
+ if (o.visibleDistance !== void 0 && (n.push("visibleDistance"), o.visibleDistance !== "unLimited")) {
464
465
  const h = this.getDistance(e, 1);
465
- if (C(h, s.visibleDistance) === !1)
466
+ if (C(h, o.visibleDistance) === !1)
466
467
  return {
467
468
  value: !1,
468
469
  checkedList: n,
469
470
  panoIndex: t,
470
- visibleDistance: s.visibleDistance,
471
- reason: `distance is not in visibleDistance. distance: ${h}, visibleDistance: ${s.visibleDistance.min} - ${s.visibleDistance.max}`
471
+ visibleDistance: o.visibleDistance,
472
+ reason: `distance is not in visibleDistance. distance: ${h}, visibleDistance: ${o.visibleDistance.min} - ${o.visibleDistance.max}`
472
473
  };
473
474
  }
474
- if (s.intersectRaycaster !== !1 && (typeof s.intersectRaycaster != "object" || s.intersectRaycaster.enabled !== !1)) {
475
+ if (o.intersectRaycaster !== !1 && (typeof o.intersectRaycaster != "object" || o.intersectRaycaster.enabled !== !1)) {
475
476
  if (n.push("intersectRaycaster"), t === void 0)
476
477
  return {
477
478
  value: !1,
@@ -495,9 +496,9 @@ class ct {
495
496
  */
496
497
  computeVisibleByFiveMode(i, e) {
497
498
  const t = () => {
498
- var l, o;
499
+ var l, s;
499
500
  let n = typeof i.visibleFiveMode == "function" ? i.visibleFiveMode(this) : i.visibleFiveMode;
500
- if (n || (n = (o = (l = this.fiveState) == null ? void 0 : l.mode) != null ? o : this.workUtil.observers.length ? "Panorama" : "ModelLike"), Array.isArray(n))
501
+ if (n || (n = (s = (l = this.fiveState) == null ? void 0 : l.mode) != null ? s : this.workUtil.observers.length ? "Panorama" : "ModelLike"), Array.isArray(n))
501
502
  return n.includes(e);
502
503
  if (n === "ModelLike")
503
504
  return P(e);
@@ -527,8 +528,8 @@ class ct {
527
528
  }
528
529
  /** 通过射线检测标签可用性 */
529
530
  computeVisibleByIntersect(i) {
530
- var s, a, c, g;
531
- const e = z(z((s = this.getConfig().visibleConfig) != null ? s : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, r = T(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(t) : this.five.camera.position;
531
+ var o, a, c, g;
532
+ const e = z(z((o = this.getConfig().visibleConfig) != null ? o : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, r = T(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(t) : this.five.camera.position;
532
533
  if (r === void 0)
533
534
  return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
534
535
  const n = ae(
@@ -538,7 +539,7 @@ class ct {
538
539
  return d === "center" ? $(this) : d === "corner" ? L(this) : Array.isArray(d) ? d : [];
539
540
  })()
540
541
  );
541
- let l = 0, o = 0;
542
+ let l = 0, s = 0;
542
543
  for (const d of n) {
543
544
  const m = new S.Vector3().subVectors(d, r).normalize();
544
545
  let h;
@@ -554,12 +555,12 @@ class ct {
554
555
  }).filter(E), [Q] = k.intersectObjects(q, !0);
555
556
  return Q;
556
557
  })(), J = r.distanceTo(d), W = (a = e.distanceAccuracy) != null ? a : 0.01;
557
- h = Math.min(h != null ? h : 1 / 0, (c = x == null ? void 0 : x.distance) != null ? c : 1 / 0), h + W >= J ? l++ : o++;
558
+ h = Math.min(h != null ? h : 1 / 0, (c = x == null ? void 0 : x.distance) != null ? c : 1 / 0), h + W >= J ? l++ : s++;
558
559
  const H = (g = e.needPassed) != null ? g : 1;
559
560
  if (l >= H)
560
561
  return { value: !0 };
561
562
  }
562
- return o === 0 ? { value: !0 } : {
563
+ return s === 0 ? { value: !0 } : {
563
564
  value: !1,
564
565
  reason: {
565
566
  type: "intersectRaycaster check failed",
@@ -570,12 +571,12 @@ class ct {
570
571
  };
571
572
  }
572
573
  computeVisibleByFloorIndex() {
573
- var r, n, l, o, s, a, c;
574
+ var r, n, l, s, o, a, c;
574
575
  let i = 0;
575
576
  const e = (r = this.fiveState) == null ? void 0 : r.panoIndex;
576
577
  e !== void 0 ? i = (n = this.workUtil.getObserver(e)) == null ? void 0 : n.floorIndex : i = le(
577
578
  this.workUtil.work,
578
- (c = (a = (o = (l = this.model) == null ? void 0 : l.object) == null ? void 0 : o.position) != null ? a : (s = this.mediaPlane) == null ? void 0 : s.position) != null ? c : $(this)
579
+ (c = (a = (s = (l = this.model) == null ? void 0 : l.object) == null ? void 0 : s.position) != null ? a : (o = this.mediaPlane) == null ? void 0 : o.position) != null ? c : $(this)
579
580
  );
580
581
  const t = this.fiveUtil.model.shownFloor;
581
582
  return {
@@ -620,19 +621,19 @@ class ct {
620
621
  return !1;
621
622
  }
622
623
  if (i.autoUnfold.strategy === "MinimumDistance") {
623
- const n = this.plugin.filterPointTag.filter((o) => o.currentVisible).filter((o) => {
624
- const s = this.computeTagProject();
625
- if (!s)
624
+ const n = this.plugin.filterPointTag.filter((s) => s.currentVisible).filter((s) => {
625
+ const o = this.computeTagProject();
626
+ if (!o)
626
627
  return !1;
627
- const { x: a, y: c, z: g } = s;
628
+ const { x: a, y: c, z: g } = o;
628
629
  return !(Math.abs(g) > 1 || Math.abs(a) > 1 || Math.abs(c) > 1);
629
- }).map((o) => ({ tag: o, id: o.id, tagConfig: o.getConfig().unfoldedConfig })).filter(({ tagConfig: o }) => {
630
- var s, a;
631
- return !(typeof o == "function" || o.keep || o.autoUnfold === !1 || ((s = o.autoUnfold) == null ? void 0 : s.enable) === !1 || ((a = o.autoUnfold) == null ? void 0 : a.strategy) !== "MinimumDistance");
632
- }).map((o) => I(p({}, o), { distance: o.tag.getDistance() })).filter(({ distance: o, tagConfig: s }) => {
633
- const a = s.autoUnfold.distance;
634
- return !(a && C(o, a) === !1);
635
- }).sort((o, s) => o.distance - s.distance).findIndex((o) => o.id === this.id);
630
+ }).map((s) => ({ tag: s, id: s.id, tagConfig: s.getConfig().unfoldedConfig })).filter(({ tagConfig: s }) => {
631
+ var o, a;
632
+ return !(typeof s == "function" || s.keep || s.autoUnfold === !1 || ((o = s.autoUnfold) == null ? void 0 : o.enable) === !1 || ((a = s.autoUnfold) == null ? void 0 : a.strategy) !== "MinimumDistance");
633
+ }).map((s) => I(p({}, s), { distance: s.tag.getDistance() })).filter(({ distance: s, tagConfig: o }) => {
634
+ const a = o.autoUnfold.distance;
635
+ return !(a && C(s, a) === !1);
636
+ }).sort((s, o) => s.distance - o.distance).findIndex((s) => s.id === this.id);
636
637
  if (n === -1 || n <= ((e = i.autoUnfold.maxNumber) != null ? e : 1) - 1 === !1)
637
638
  return !1;
638
639
  }
@@ -684,5 +685,5 @@ class ct {
684
685
  }
685
686
  }
686
687
  export {
687
- ct as BaseTag
688
+ ht as BaseTag
688
689
  };
@@ -122,6 +122,7 @@ import "../../../Sculpt/typings/style.js";
122
122
  import "../../../shared-utils/five/FiveLine.js";
123
123
  import "../../../shared-utils/tag.js";
124
124
  import "../../../shared-utils/five/vector3ToScreen.js";
125
+ import "../../../Sculpt/utils/removeAllTag.js";
125
126
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
126
127
  import "../../../shared-utils/isTouchDevice.js";
127
128
  import "../../../shared-utils/five/getPosition.js";
@@ -139,7 +140,7 @@ import "../../../shared-utils/five/getFloorIndex.js";
139
140
  import "../../../shared-utils/safeObj.js";
140
141
  import "../../utils/Cache.js";
141
142
  import "../../../CruisePlugin/utils/sleep.js";
142
- class Fi extends D {
143
+ class Si extends D {
143
144
  constructor(i, p) {
144
145
  super(i, p);
145
146
  l(this, "loading", !1);
@@ -192,5 +193,5 @@ class Fi extends D {
192
193
  }
193
194
  }
194
195
  export {
195
- Fi as ModelTag
196
+ Si as ModelTag
196
197
  };
@@ -100,6 +100,7 @@ import "../../../Sculpt/typings/style.js";
100
100
  import "../../../shared-utils/five/FiveLine.js";
101
101
  import "../../../shared-utils/tag.js";
102
102
  import "../../../shared-utils/five/vector3ToScreen.js";
103
+ import "../../../Sculpt/utils/removeAllTag.js";
103
104
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
104
105
  import "../../../shared-utils/isTouchDevice.js";
105
106
  import "../../../shared-utils/five/getPosition.js";
@@ -119,7 +120,7 @@ import "../../../shared-utils/safeObj.js";
119
120
  import "../../utils/Cache.js";
120
121
  import "../../../CruisePlugin/utils/sleep.js";
121
122
  const P = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map();
122
- class ji extends f {
123
+ class wi extends f {
123
124
  constructor(i, t) {
124
125
  super(i, t), this.state.unfolded = !0;
125
126
  }
@@ -176,5 +177,5 @@ class ji extends f {
176
177
  }
177
178
  }
178
179
  export {
179
- ji as PlaneTag
180
+ wi as PlaneTag
180
181
  };
@@ -93,6 +93,7 @@ import "../../../Sculpt/typings/style.js";
93
93
  import "../../../shared-utils/five/FiveLine.js";
94
94
  import "../../../shared-utils/tag.js";
95
95
  import "../../../shared-utils/five/vector3ToScreen.js";
96
+ import "../../../Sculpt/utils/removeAllTag.js";
96
97
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
97
98
  import "../../../shared-utils/isTouchDevice.js";
98
99
  import "../../../shared-utils/five/getPosition.js";
@@ -112,7 +113,7 @@ import "../../../shared-utils/safeObj.js";
112
113
  import "../../utils/Cache.js";
113
114
  import "../../../CruisePlugin/utils/sleep.js";
114
115
  const v = new d.Vector2();
115
- class Pi extends g {
116
+ class ki extends g {
116
117
  constructor(t, i) {
117
118
  super(t, i);
118
119
  p(this, "__Object__");
@@ -205,5 +206,5 @@ class Pi extends g {
205
206
  }
206
207
  }
207
208
  export {
208
- Pi as PointTag
209
+ ki as PointTag
209
210
  };