@realsee/dnalogel 3.77.5 → 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 (145) hide show
  1. package/CHANGELOG.md +17 -11
  2. package/dist/PanoTagPlugin/controller/Tag/BaseTag.d.ts +5 -1
  3. package/dist/PanoTagPlugin/controller/Tag/BoxTag.d.ts +119 -0
  4. package/dist/PanoTagPlugin/controller/Tag/MaskTag.d.ts +257 -0
  5. package/dist/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +10 -0
  6. package/dist/PanoTagPlugin/controller/Tag/PolygonTag.d.ts +112 -0
  7. package/dist/PanoTagPlugin/controller/TagRender.d.ts +1 -1
  8. package/dist/PanoTagPlugin/controller/index.d.ts +55 -2
  9. package/dist/PanoTagPlugin/typings/controller.d.ts +10 -0
  10. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +8 -3
  11. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +50 -1
  12. package/dist/PanoTagPlugin/utils/sculptDataToBoxPosition.d.ts +6 -0
  13. package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +6 -0
  14. package/dist/PanoTagPlugin/utils/tagPosition.d.ts +12 -3
  15. package/dist/Sculpt/Meshes/Line.d.ts +4 -0
  16. package/dist/index.cjs.js +178 -95
  17. package/dist/index.js +11378 -9801
  18. package/dist/index.umd.js +173 -90
  19. package/dist/shared-utils/five/getFiveFromParentChain.d.ts +7 -0
  20. package/libs/AreaMakerPlugin/Controller.js +3 -2
  21. package/libs/AreaMakerPlugin/index.js +3 -2
  22. package/libs/AreaMakerPlugin/utils/Item.js +3 -2
  23. package/libs/CSS3DRenderPlugin/Controller.js +3 -2
  24. package/libs/CSS3DRenderPlugin/index.js +6 -5
  25. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +39 -38
  26. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +10 -9
  27. package/libs/CruisePlugin/BaseController.js +5 -4
  28. package/libs/CruisePlugin/Move.js +8 -2
  29. package/libs/CruisePlugin/Work.js +8 -2
  30. package/libs/CruisePlugin/index.js +12 -6
  31. package/libs/CurrentPanoImagePlugin/Controller.js +15 -14
  32. package/libs/CurrentPanoImagePlugin/index.js +4 -3
  33. package/libs/GuideLinePlugin/Controller.js +10 -4
  34. package/libs/GuideLinePlugin/GuideLineItem.js +8 -2
  35. package/libs/GuideLinePlugin/GuideLineModeItem.js +8 -2
  36. package/libs/GuideLinePlugin/index.js +12 -6
  37. package/libs/MeasurePlugin/Controller.js +11 -10
  38. package/libs/MeasurePlugin/index.js +5 -4
  39. package/libs/MeasurePlugin/utils/MeasureMesh.js +3 -2
  40. package/libs/ModelChassisCompassPlugin/Plugin.js +4 -3
  41. package/libs/ModelChassisCompassPlugin/index.js +1 -0
  42. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +6 -5
  43. package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
  44. package/libs/ModelMakerPlugin/Controller.js +3 -2
  45. package/libs/ModelMakerPlugin/index.js +3 -2
  46. package/libs/ModelMakerPlugin/item/baseItem.js +3 -2
  47. package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
  48. package/libs/ModelMakerPlugin/item/polygonItem.js +3 -2
  49. package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
  50. package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
  51. package/libs/ModelTVVideoPlugin/index.js +3 -2
  52. package/libs/ModelViewPlugin/Plugin.js +20 -19
  53. package/libs/ModelViewPlugin/index.js +1 -0
  54. package/libs/Object3DHelperPlugin/Controller.js +3 -2
  55. package/libs/Object3DHelperPlugin/index.js +6 -5
  56. package/libs/PanoCompassPlugin/Controller.js +3 -2
  57. package/libs/PanoCompassPlugin/index.js +4 -3
  58. package/libs/PanoDoorLabelPlugin/Controller.js +24 -23
  59. package/libs/PanoDoorLabelPlugin/index.js +4 -3
  60. package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
  61. package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
  62. package/libs/PanoMeasurePlugin/Controller/EditController.js +3 -2
  63. package/libs/PanoMeasurePlugin/Controller/WatchController.js +3 -2
  64. package/libs/PanoMeasurePlugin/Controller/index.js +3 -2
  65. package/libs/PanoMeasurePlugin/Model/area.js +3 -2
  66. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -0
  67. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +16 -15
  68. package/libs/PanoMeasurePlugin/index.js +14 -13
  69. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -2
  70. package/libs/PanoRulerProPlugin/Controller.js +3 -2
  71. package/libs/PanoRulerProPlugin/RulerItems.js +42 -41
  72. package/libs/PanoRulerProPlugin/index.js +4 -3
  73. package/libs/PanoSpatialTagPlugin/Plugin.js +34 -33
  74. package/libs/PanoSpatialTagPlugin/index.js +1 -0
  75. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +3 -2
  76. package/libs/PanoTagPlugin/Components/Common/TagPopover/PopoverContent.js +3 -2
  77. package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopoverToolBar.js +3 -2
  78. package/libs/PanoTagPlugin/Components/Common/TagPopover/index.js +3 -2
  79. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -2
  80. package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
  81. package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
  82. package/libs/PanoTagPlugin/Components/TagItem.js +125 -124
  83. package/libs/PanoTagPlugin/controller/Tag/BaseTag.d.ts +5 -1
  84. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +321 -289
  85. package/libs/PanoTagPlugin/controller/Tag/BoxTag.d.ts +119 -0
  86. package/libs/PanoTagPlugin/controller/Tag/BoxTag.js +516 -0
  87. package/libs/PanoTagPlugin/controller/Tag/MaskTag.d.ts +257 -0
  88. package/libs/PanoTagPlugin/controller/Tag/MaskTag.js +816 -0
  89. package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +10 -0
  90. package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.js +94 -0
  91. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +3 -2
  92. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +3 -2
  93. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
  94. package/libs/PanoTagPlugin/controller/Tag/PolygonTag.d.ts +112 -0
  95. package/libs/PanoTagPlugin/controller/Tag/PolygonTag.js +479 -0
  96. package/libs/PanoTagPlugin/controller/TagRender.d.ts +1 -1
  97. package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
  98. package/libs/PanoTagPlugin/controller/TagUtil.js +22 -19
  99. package/libs/PanoTagPlugin/controller/index.d.ts +55 -2
  100. package/libs/PanoTagPlugin/controller/index.js +243 -129
  101. package/libs/PanoTagPlugin/index.js +17 -11
  102. package/libs/PanoTagPlugin/typings/controller.d.ts +10 -0
  103. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +8 -3
  104. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +50 -1
  105. package/libs/PanoTagPlugin/utils/addDebugPoints.js +27 -13
  106. package/libs/PanoTagPlugin/utils/index.js +29 -26
  107. package/libs/PanoTagPlugin/utils/sculptDataToBoxPosition.d.ts +6 -0
  108. package/libs/PanoTagPlugin/utils/sculptDataToBoxPosition.js +18 -0
  109. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
  110. package/libs/PanoTagPlugin/utils/tag/format.js +3 -2
  111. package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +6 -0
  112. package/libs/PanoTagPlugin/utils/tag/tagCheck.js +26 -14
  113. package/libs/PanoTagPlugin/utils/tagPosition.d.ts +12 -3
  114. package/libs/PanoTagPlugin/utils/tagPosition.js +49 -16
  115. package/libs/PanoVideoPlugin/Controller.js +9 -8
  116. package/libs/PanoVideoPlugin/VideoMeshController.js +3 -2
  117. package/libs/PanoVideoPlugin/index.js +6 -5
  118. package/libs/PipelinePlugin/Controller.js +3 -2
  119. package/libs/PipelinePlugin/index.js +4 -3
  120. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +3 -2
  121. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -2
  122. package/libs/PipelinePlugin/utils/Objects/Pipe.js +1 -0
  123. package/libs/Sculpt/Meshes/Line.d.ts +4 -0
  124. package/libs/Sculpt/Meshes/Line.js +85 -76
  125. package/libs/Sculpt/Meshes/Point.js +28 -28
  126. package/libs/Sculpt/Meshes/Polygon.js +43 -43
  127. package/libs/Sculpt/index.js +1 -1
  128. package/libs/Sculpt/utils/Modules/Cursor.js +7 -7
  129. package/libs/base/BasePlugin.js +1 -1
  130. package/libs/floorplan/FloorplanGuidePlugin/Controller.js +3 -2
  131. package/libs/floorplan/FloorplanGuidePlugin/index.js +4 -3
  132. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +3 -2
  133. package/libs/floorplan/MapviewFloorplanPlugin/index.js +4 -3
  134. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +3 -2
  135. package/libs/floorplan/ModelFloorplanPlugin/index.js +4 -3
  136. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -2
  137. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -3
  138. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +3 -2
  139. package/libs/floorplan/TopviewFloorplanPlugin/index.js +4 -3
  140. package/libs/index.js +164 -158
  141. package/libs/shared-utils/five/getFiveFromParentChain.d.ts +7 -0
  142. package/libs/shared-utils/five/getFiveFromParentChain.js +15 -0
  143. package/libs/shared-utils/logger.js +1 -1
  144. package/libs/shared-utils/three/PointSelector/utils/PointHelper2.js +1 -0
  145. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { SvelteComponent as ve, init as Ce, safe_not_equal as ke, append_styles as Te, space as ae, empty as he, insert as R, transition_in as b, transition_out as T, check_outros as V, detach as Z, getContext as Pe, onMount as ye, element as X, attr as _, toggle_class as H, set_style as F, append as Ee, group_outros as j, create_component as Y, mount_component as $, destroy_component as x, binding_callbacks as W, noop as I, bind as Me, add_flush_callback as Se } from "../../vendor/svelte/internal/index.js";
1
+ import { SvelteComponent as ve, init as ke, safe_not_equal as Ce, append_styles as Te, space as ae, empty as he, insert as R, transition_in as b, transition_out as T, check_outros as F, detach as Z, getContext as Pe, onMount as ye, element as X, attr as _, toggle_class as H, set_style as B, append as Ee, group_outros as V, create_component as Y, mount_component as $, destroy_component as x, binding_callbacks as W, noop as I, bind as Me, add_flush_callback as Se } from "../../vendor/svelte/internal/index.js";
2
2
  import we from "./Tag/index.js";
3
3
  import "three";
4
4
  import { noTypecheck as ie } from "../utils/noTypecheck.js";
@@ -109,6 +109,7 @@ import "../../shared-utils/three/IObject3D.js";
109
109
  import "../../Sculpt/utils/Meshes/getLengthHTML.js";
110
110
  import "../../shared-utils/three/applyObjectMatrixWorld.js";
111
111
  import "../../shared-utils/util.js";
112
+ import "../../shared-utils/five/getFiveFromParentChain.js";
112
113
  import "../../shared-utils/three/core/LineGeometry.js";
113
114
  import "../../shared-utils/three/core/LineMaterial.js";
114
115
  import "../../shared-utils/three/core/Line2.js";
@@ -188,10 +189,10 @@ import "./Common/AudioPlayer.js";
188
189
  import "./Common/TagPopover/TagPopoverToolBar.js";
189
190
  import "./Common/TagPopover/ArrowRightIcon.js";
190
191
  import "./Common/TagPopover/ShareIcon.js";
191
- function Ue(t) {
192
- Te(t, "svelte-2g2g8a", ".tag.svelte-2g2g8a{position:absolute;width:0rem;height:0rem;overflow:visible;pointer-events:auto;will-change:opacity;transition:opacity 0.2s linear}.tag.enableZIndex.svelte-2g2g8a{position:absolute}.tag.hide.svelte-2g2g8a{opacity:0;pointer-events:none}.tag.hide.svelte-2g2g8a *{pointer-events:none !important}.tag.unClickable.svelte-2g2g8a{pointer-events:none !important}.tag.unClickable.svelte-2g2g8a *{pointer-events:none !important}");
192
+ function Ue(o) {
193
+ Te(o, "svelte-2g2g8a", ".tag.svelte-2g2g8a{position:absolute;width:0rem;height:0rem;overflow:visible;pointer-events:auto;will-change:opacity;transition:opacity 0.2s linear}.tag.enableZIndex.svelte-2g2g8a{position:absolute}.tag.hide.svelte-2g2g8a{opacity:0;pointer-events:none}.tag.hide.svelte-2g2g8a *{pointer-events:none !important}.tag.unClickable.svelte-2g2g8a{pointer-events:none !important}.tag.unClickable.svelte-2g2g8a *{pointer-events:none !important}");
193
194
  }
194
- function re(t) {
195
+ function re(o) {
195
196
  let e, i, a, m, r, n, u, l, g, d;
196
197
  const U = [ze, Le], v = [];
197
198
  function L(f, s) {
@@ -200,66 +201,66 @@ function re(t) {
200
201
  f[10] ? 0 : 1
201
202
  );
202
203
  }
203
- i = L(t), a = v[i] = U[i](t);
204
- const o = [Re, Ae], C = [];
204
+ i = L(o), a = v[i] = U[i](o);
205
+ const t = [Re, Ae], k = [];
205
206
  function S(f, s) {
206
207
  return (
207
208
  /*haveContent*/
208
209
  f[25] ? 0 : 1
209
210
  );
210
211
  }
211
- return r = S(t), n = C[r] = o[r](t), {
212
+ return r = S(o), n = k[r] = t[r](o), {
212
213
  c() {
213
214
  e = X("div"), a.c(), m = ae(), n.c(), _(e, "class", "tag svelte-2g2g8a"), _(
214
215
  e,
215
216
  "data-tag-id",
216
217
  /*id*/
217
- t[23]
218
+ o[23]
218
219
  ), _(
219
220
  e,
220
221
  "data-tag-unfolded",
221
222
  /*unfolded*/
222
- t[8]
223
+ o[8]
223
224
  ), _(e, "data-content-type", u = /*tag*/
224
- t[0].contentType), _(e, "data-popover-enabled", l = /*tag*/
225
- t[0].isPopoverConfigEnabled()), _(e, "id", g = `tag-${/*id*/
226
- t[23]}`), H(
225
+ o[0].contentType), _(e, "data-popover-enabled", l = /*tag*/
226
+ o[0].isPopoverConfigEnabled()), _(e, "id", g = `tag-${/*id*/
227
+ o[23]}`), H(
227
228
  e,
228
229
  "unClickable",
229
230
  /*tag*/
230
- t[0].config.clickable === !1
231
+ o[0].config.clickable === !1
231
232
  ), H(
232
233
  e,
233
234
  "hide",
234
235
  /*hide*/
235
- t[21]
236
+ o[21]
236
237
  ), H(
237
238
  e,
238
239
  "enableZIndex",
239
240
  /*zIndex*/
240
- t[18]
241
- ), F(
241
+ o[18]
242
+ ), B(
242
243
  e,
243
244
  "z-index",
244
245
  /*zIndex*/
245
- t[18]
246
- ), F(e, "transform", `translate3d(${/*left*/
247
- t[20]}, ${/*top*/
248
- t[19]}, 0) scale(${/*screenPosition*/
249
- t[9].scale})`);
246
+ o[18]
247
+ ), B(e, "transform", `translate3d(${/*left*/
248
+ o[20]}, ${/*top*/
249
+ o[19]}, 0) scale(${/*screenPosition*/
250
+ o[9].scale})`);
250
251
  },
251
252
  m(f, s) {
252
- R(f, e, s), v[i].m(e, null), Ee(e, m), C[r].m(e, null), t[36](e), d = !0;
253
+ R(f, e, s), v[i].m(e, null), Ee(e, m), k[r].m(e, null), o[36](e), d = !0;
253
254
  },
254
255
  p(f, s) {
255
256
  let w = i;
256
- i = L(f), i === w ? v[i].p(f, s) : (j(), T(v[w], 1, 1, () => {
257
+ i = L(f), i === w ? v[i].p(f, s) : (V(), T(v[w], 1, 1, () => {
257
258
  v[w] = null;
258
- }), V(), a = v[i], a ? a.p(f, s) : (a = v[i] = U[i](f), a.c()), b(a, 1), a.m(e, m));
259
+ }), F(), a = v[i], a ? a.p(f, s) : (a = v[i] = U[i](f), a.c()), b(a, 1), a.m(e, m));
259
260
  let D = r;
260
- r = S(f), r === D ? C[r].p(f, s) : (j(), T(C[D], 1, 1, () => {
261
- C[D] = null;
262
- }), V(), n = C[r], n ? n.p(f, s) : (n = C[r] = o[r](f), n.c()), b(n, 1), n.m(e, null)), (!d || s[0] & /*id*/
261
+ r = S(f), r === D ? k[r].p(f, s) : (V(), T(k[D], 1, 1, () => {
262
+ k[D] = null;
263
+ }), F(), n = k[r], n ? n.p(f, s) : (n = k[r] = t[r](f), n.c()), b(n, 1), n.m(e, null)), (!d || s[0] & /*id*/
263
264
  8388608) && _(
264
265
  e,
265
266
  "data-tag-id",
@@ -296,13 +297,13 @@ function re(t) {
296
297
  /*zIndex*/
297
298
  f[18]
298
299
  ), s[0] & /*zIndex*/
299
- 262144 && F(
300
+ 262144 && B(
300
301
  e,
301
302
  "z-index",
302
303
  /*zIndex*/
303
304
  f[18]
304
305
  ), s[0] & /*left, top, screenPosition*/
305
- 1573376 && F(e, "transform", `translate3d(${/*left*/
306
+ 1573376 && B(e, "transform", `translate3d(${/*left*/
306
307
  f[20]}, ${/*top*/
307
308
  f[19]}, 0) scale(${/*screenPosition*/
308
309
  f[9].scale})`);
@@ -314,11 +315,11 @@ function re(t) {
314
315
  T(a), T(n), d = !1;
315
316
  },
316
317
  d(f) {
317
- f && Z(e), v[i].d(), C[r].d(), t[36](null);
318
+ f && Z(e), v[i].d(), k[r].d(), o[36](null);
318
319
  }
319
320
  };
320
321
  }
321
- function Le(t) {
322
+ function Le(o) {
322
323
  let e;
323
324
  return {
324
325
  c() {
@@ -335,52 +336,52 @@ function Le(t) {
335
336
  }
336
337
  };
337
338
  }
338
- function ze(t) {
339
+ function ze(o) {
339
340
  let e, i, a;
340
341
  function m(n) {
341
- t[34](n);
342
+ o[34](n);
342
343
  }
343
344
  let r = {
344
345
  tag: (
345
346
  /*tag*/
346
- t[0]
347
+ o[0]
347
348
  ),
348
349
  handleMouseEnter: (
349
350
  /*handleMouseEnter*/
350
- t[30]
351
+ o[30]
351
352
  ),
352
353
  handleMouseLeave: (
353
354
  /*handleMouseLeave*/
354
- t[31]
355
+ o[31]
355
356
  ),
356
357
  handleTagPointClick: (
357
358
  /*handleTagPointClick*/
358
- t[32]
359
+ o[32]
359
360
  )
360
361
  };
361
362
  return (
362
363
  /*tagPointClickHelper*/
363
- t[12] !== void 0 && (r.tagPointClickHelper = /*tagPointClickHelper*/
364
- t[12]), e = new De({ props: r }), W.push(() => Me(e, "tagPointClickHelper", m)), t[35](e), e.$on(
364
+ o[12] !== void 0 && (r.tagPointClickHelper = /*tagPointClickHelper*/
365
+ o[12]), e = new De({ props: r }), W.push(() => Me(e, "tagPointClickHelper", m)), o[35](e), e.$on(
365
366
  "audioInstanceReady",
366
367
  /*audioEventHandlers*/
367
- t[27].audioInstanceReady
368
+ o[27].audioInstanceReady
368
369
  ), e.$on(
369
370
  "audioPlay",
370
371
  /*audioEventHandlers*/
371
- t[27].audioPlay
372
+ o[27].audioPlay
372
373
  ), e.$on(
373
374
  "audioPause",
374
375
  /*audioEventHandlers*/
375
- t[27].audioPause
376
+ o[27].audioPause
376
377
  ), e.$on(
377
378
  "audioTimeUpdate",
378
379
  /*audioEventHandlers*/
379
- t[27].audioTimeUpdate
380
+ o[27].audioTimeUpdate
380
381
  ), e.$on(
381
382
  "audioDuration",
382
383
  /*audioEventHandlers*/
383
- t[27].audioDuration
384
+ o[27].audioDuration
384
385
  ), {
385
386
  c() {
386
387
  Y(e.$$.fragment);
@@ -403,12 +404,12 @@ function ze(t) {
403
404
  T(e.$$.fragment, n), a = !1;
404
405
  },
405
406
  d(n) {
406
- t[35](null), x(e, n);
407
+ o[35](null), x(e, n);
407
408
  }
408
409
  }
409
410
  );
410
411
  }
411
- function Ae(t) {
412
+ function Ae(o) {
412
413
  let e;
413
414
  return {
414
415
  c() {
@@ -425,37 +426,37 @@ function Ae(t) {
425
426
  }
426
427
  };
427
428
  }
428
- function Re(t) {
429
+ function Re(o) {
429
430
  let e, i;
430
431
  return e = new we({
431
432
  props: {
432
433
  mediaStore: (
433
434
  /*mediaStore*/
434
- t[1]
435
+ o[1]
435
436
  ),
436
437
  tag: ie(
437
438
  /*tag*/
438
- t[0]
439
+ o[0]
439
440
  ),
440
441
  hooks: (
441
442
  /*hooks*/
442
- t[26]
443
+ o[26]
443
444
  ),
444
445
  state: (
445
446
  /*state*/
446
- t[4]
447
+ o[4]
447
448
  ),
448
449
  temporaryState: (
449
450
  /*temporaryState*/
450
- t[5]
451
+ o[5]
451
452
  ),
452
453
  rendererMap: (
453
454
  /*rendererMap*/
454
- t[2]
455
+ o[2]
455
456
  ),
456
457
  contentTypeMap: (
457
458
  /*contentTypeMap*/
458
- t[3]
459
+ o[3]
459
460
  )
460
461
  }
461
462
  }), {
@@ -494,69 +495,69 @@ function Re(t) {
494
495
  }
495
496
  };
496
497
  }
497
- function ne(t) {
498
+ function ne(o) {
498
499
  var a;
499
500
  let e, i;
500
501
  return e = new Ie({
501
502
  props: {
502
503
  tag: (
503
504
  /*tag*/
504
- t[0]
505
+ o[0]
505
506
  ),
506
507
  config: (
507
508
  /*tag*/
508
- t[0].config.popoverConfig
509
+ o[0].config.popoverConfig
509
510
  ),
510
511
  theme: (
511
512
  /*tag*/
512
- (a = t[0].config.popoverConfig) == null ? void 0 : a.theme
513
+ (a = o[0].config.popoverConfig) == null ? void 0 : a.theme
513
514
  ),
514
515
  wrapperElement: (
515
516
  /*wrapperElement*/
516
- t[6]
517
+ o[6]
517
518
  ),
518
519
  triggerElement: (
519
520
  /*tagPointClickHelper*/
520
- t[12]
521
+ o[12]
521
522
  ),
522
523
  popoverContainer: (
523
524
  /*popoverContainer*/
524
- t[7]
525
+ o[7]
525
526
  ),
526
527
  visible: !0,
527
528
  closePopover: (
528
529
  /*closePopover*/
529
- t[33]
530
+ o[33]
530
531
  ),
531
532
  audioInstance: (
532
533
  /*audioInstance*/
533
- t[14]
534
+ o[14]
534
535
  ),
535
536
  audioPlaying: (
536
537
  /*audioPlaying*/
537
- t[15]
538
+ o[15]
538
539
  ),
539
540
  audioCurrentTime: (
540
541
  /*audioCurrentTime*/
541
- t[16]
542
+ o[16]
542
543
  ),
543
544
  audioDuration: (
544
545
  /*audioDuration*/
545
- t[17]
546
+ o[17]
546
547
  )
547
548
  }
548
549
  }), e.$on(
549
550
  "mouseenter",
550
551
  /*handlePopoverMouseEnter*/
551
- t[28]
552
+ o[28]
552
553
  ), e.$on(
553
554
  "mouseleave",
554
555
  /*handlePopoverMouseLeave*/
555
- t[29]
556
+ o[29]
556
557
  ), e.$on(
557
558
  "close",
558
559
  /*closePopover*/
559
- t[33]
560
+ o[33]
560
561
  ), {
561
562
  c() {
562
563
  Y(e.$$.fragment);
@@ -600,20 +601,20 @@ function ne(t) {
600
601
  }
601
602
  };
602
603
  }
603
- function Ze(t) {
604
+ function Ze(o) {
604
605
  var u;
605
606
  let e, i = (
606
607
  /*tag*/
607
- t[0].isPopoverConfigEnabled() && /*hasPopoverContent*/
608
- t[24] && /*isHovering*/
609
- (t[11] || /*tag*/
610
- ((u = t[0].config.popoverConfig) == null ? void 0 : u.debug))
608
+ o[0].isPopoverConfigEnabled() && /*hasPopoverContent*/
609
+ o[24] && /*isHovering*/
610
+ (o[11] || /*tag*/
611
+ ((u = o[0].config.popoverConfig) == null ? void 0 : u.debug))
611
612
  ), a, m, r = (
612
613
  /*screenPosition*/
613
- t[9] && (!/*disable*/
614
- t[22] || /*isHovering*/
615
- t[11]) && re(t)
616
- ), n = i && ne(t);
614
+ o[9] && (!/*disable*/
615
+ o[22] || /*isHovering*/
616
+ o[11]) && re(o)
617
+ ), n = i && ne(o);
617
618
  return {
618
619
  c() {
619
620
  r && r.c(), e = ae(), n && n.c(), a = he();
@@ -627,17 +628,17 @@ function Ze(t) {
627
628
  l[9] && (!/*disable*/
628
629
  l[22] || /*isHovering*/
629
630
  l[11]) ? r ? (r.p(l, g), g[0] & /*screenPosition, disable, isHovering*/
630
- 4196864 && b(r, 1)) : (r = re(l), r.c(), b(r, 1), r.m(e.parentNode, e)) : r && (j(), T(r, 1, 1, () => {
631
+ 4196864 && b(r, 1)) : (r = re(l), r.c(), b(r, 1), r.m(e.parentNode, e)) : r && (V(), T(r, 1, 1, () => {
631
632
  r = null;
632
- }), V()), g[0] & /*tag, hasPopoverContent, isHovering*/
633
+ }), F()), g[0] & /*tag, hasPopoverContent, isHovering*/
633
634
  16779265 && (i = /*tag*/
634
635
  l[0].isPopoverConfigEnabled() && /*hasPopoverContent*/
635
636
  l[24] && /*isHovering*/
636
637
  (l[11] || /*tag*/
637
638
  ((d = l[0].config.popoverConfig) == null ? void 0 : d.debug))), i ? n ? (n.p(l, g), g[0] & /*tag, hasPopoverContent, isHovering*/
638
- 16779265 && b(n, 1)) : (n = ne(l), n.c(), b(n, 1), n.m(a.parentNode, a)) : n && (j(), T(n, 1, 1, () => {
639
+ 16779265 && b(n, 1)) : (n = ne(l), n.c(), b(n, 1), n.m(a.parentNode, a)) : n && (V(), T(n, 1, 1, () => {
639
640
  n = null;
640
- }), V());
641
+ }), F());
641
642
  },
642
643
  i(l) {
643
644
  m || (b(r), b(n), m = !0);
@@ -650,10 +651,10 @@ function Ze(t) {
650
651
  }
651
652
  };
652
653
  }
653
- function Ne(t, e, i) {
654
- let a, m, r, n, u, l, g, d, U, v, L, { tag: o } = e, { mediaStore: C } = e, { rendererMap: S = /* @__PURE__ */ new Map() } = e, { contentTypeMap: f = /* @__PURE__ */ new Map() } = e, { state: s } = e, { temporaryState: w } = e, { wrapperElement: D = null } = e, { popoverContainer: ee = null } = e;
654
+ function Ne(o, e, i) {
655
+ let a, m, r, n, u, l, g, d, U, v, L, { tag: t } = e, { mediaStore: k } = e, { rendererMap: S = /* @__PURE__ */ new Map() } = e, { contentTypeMap: f = /* @__PURE__ */ new Map() } = e, { state: s } = e, { temporaryState: w } = e, { wrapperElement: D = null } = e, { popoverContainer: ee = null } = e;
655
656
  const pe = Pe("hooks");
656
- let h = !1, y, P, B = null, G = !1, J = !1, K = null, Q = null, N = !1, te = 0, oe = 0;
657
+ let h = !1, y, P, j = null, G = !1, J = !1, K = null, Q = null, N = !1, te = 0, oe = 0;
657
658
  const me = {
658
659
  audioInstanceReady: (p) => {
659
660
  i(14, Q = p.detail), i(15, N = !Q.paused);
@@ -680,7 +681,7 @@ function Ne(t, e, i) {
680
681
  P = setTimeout(
681
682
  () => {
682
683
  var c;
683
- !G && !J && !((c = o.config.popoverConfig) != null && c.debug) && (O = !1, i(11, h = !1));
684
+ !G && !J && !((c = t.config.popoverConfig) != null && c.debug) && (O = !1, i(11, h = !1));
684
685
  },
685
686
  300
686
687
  );
@@ -689,24 +690,24 @@ function Ne(t, e, i) {
689
690
  }, fe = () => {
690
691
  G = !1, q(!1);
691
692
  }, ue = (p) => {
692
- var c, k, E, M, z, A;
693
- if (p.pointerType === "mouse" && (J = !0, o.isPopoverConfigEnabled() && o.isHoverEnabled() && ((k = (c = o.currentConfig) == null ? void 0 : c.popoverConfig) == null ? void 0 : k.trigger) === "hover")) {
693
+ var c, C, E, M, z, A;
694
+ if (p.pointerType === "mouse" && (J = !0, t.isPopoverConfigEnabled() && t.isHoverEnabled() && ((C = (c = t.currentConfig) == null ? void 0 : c.popoverConfig) == null ? void 0 : C.trigger) === "hover")) {
694
695
  if (P && clearTimeout(P), y !== void 0)
695
696
  return;
696
- ((M = (E = o.currentConfig) == null ? void 0 : E.popoverConfig) == null ? void 0 : M.triggerDelay) > 0 ? y = setTimeout(
697
+ ((M = (E = t.currentConfig) == null ? void 0 : E.popoverConfig) == null ? void 0 : M.triggerDelay) > 0 ? y = setTimeout(
697
698
  () => {
698
- q(!0), o.hooks.emit("hover", { event: p, tag: o }), y = void 0;
699
+ q(!0), t.hooks.emit("hover", { event: p, tag: t }), y = void 0;
699
700
  },
700
- (A = (z = o.currentConfig) == null ? void 0 : z.popoverConfig) == null ? void 0 : A.triggerDelay
701
- ) : (q(!0), o.hooks.emit("hover", { event: p, tag: o }));
701
+ (A = (z = t.currentConfig) == null ? void 0 : z.popoverConfig) == null ? void 0 : A.triggerDelay
702
+ ) : (q(!0), t.hooks.emit("hover", { event: p, tag: t }));
702
703
  }
703
704
  }, se = (p) => {
704
- var c, k;
705
- p.pointerType === "mouse" && (J = !1, o.isHoverEnabled() && o.isPopoverConfigEnabled() && ((k = (c = o.currentConfig) == null ? void 0 : c.popoverConfig) == null ? void 0 : k.trigger) === "hover" && (y !== void 0 && (clearTimeout(y), y = void 0), q(!1)));
705
+ var c, C;
706
+ p.pointerType === "mouse" && (J = !1, t.isHoverEnabled() && t.isPopoverConfigEnabled() && ((C = (c = t.currentConfig) == null ? void 0 : c.popoverConfig) == null ? void 0 : C.trigger) === "hover" && (y !== void 0 && (clearTimeout(y), y = void 0), q(!1)));
706
707
  }, de = (p) => {
707
- var k, E;
708
- const c = o.contentType === "Audio" && o.data.appearance === "plane";
709
- o.isPopoverConfigEnabled() && o.isHoverEnabled() && ((E = (k = o.currentConfig) == null ? void 0 : k.popoverConfig) == null ? void 0 : E.trigger) === "click" && (c ? h || (i(11, h = !0), o.hooks.emit("hover", { event: p, tag: o })) : (i(11, h = !h), h && o.hooks.emit("hover", { event: p, tag: o })));
708
+ var C, E;
709
+ const c = t.contentType === "Audio" && t.data.appearance === "plane";
710
+ t.isPopoverConfigEnabled() && t.isHoverEnabled() && ((E = (C = t.currentConfig) == null ? void 0 : C.popoverConfig) == null ? void 0 : E.trigger) === "click" && (c ? h || (i(11, h = !0), t.hooks.emit("hover", { event: p, tag: t })) : (i(11, h = !h), h && t.hooks.emit("hover", { event: p, tag: t })));
710
711
  };
711
712
  function ge() {
712
713
  O = !1, i(11, h = !1);
@@ -715,7 +716,7 @@ function Ne(t, e, i) {
715
716
  y && clearTimeout(y), P && clearTimeout(P);
716
717
  });
717
718
  function ce(p) {
718
- B = p, i(12, B);
719
+ j = p, i(12, j);
719
720
  }
720
721
  function _e(p) {
721
722
  W[p ? "unshift" : "push"](() => {
@@ -724,34 +725,34 @@ function Ne(t, e, i) {
724
725
  }
725
726
  function be(p) {
726
727
  W[p ? "unshift" : "push"](() => {
727
- o.dom = p, i(0, o);
728
+ t.dom = p, i(0, t);
728
729
  });
729
730
  }
730
- return t.$$set = (p) => {
731
- "tag" in p && i(0, o = p.tag), "mediaStore" in p && i(1, C = p.mediaStore), "rendererMap" in p && i(2, S = p.rendererMap), "contentTypeMap" in p && i(3, f = p.contentTypeMap), "state" in p && i(4, s = p.state), "temporaryState" in p && i(5, w = p.temporaryState), "wrapperElement" in p && i(6, D = p.wrapperElement), "popoverContainer" in p && i(7, ee = p.popoverContainer);
732
- }, t.$$.update = () => {
733
- var p, c, k, E;
734
- t.$$.dirty[0] & /*tag, rendererMap*/
731
+ return o.$$set = (p) => {
732
+ "tag" in p && i(0, t = p.tag), "mediaStore" in p && i(1, k = p.mediaStore), "rendererMap" in p && i(2, S = p.rendererMap), "contentTypeMap" in p && i(3, f = p.contentTypeMap), "state" in p && i(4, s = p.state), "temporaryState" in p && i(5, w = p.temporaryState), "wrapperElement" in p && i(6, D = p.wrapperElement), "popoverContainer" in p && i(7, ee = p.popoverContainer);
733
+ }, o.$$.update = () => {
734
+ var p, c, C, E;
735
+ o.$$.dirty[0] & /*tag, rendererMap*/
735
736
  5 && i(10, a = (() => {
736
737
  var M, z, A;
737
- return ((z = (M = o.style) == null ? void 0 : M.point) == null ? void 0 : z.enabled) === !1 || ((A = S.get(o.contentType)) == null ? void 0 : A.usePoint) === !1 || o.contentType === "Sticker" || o.contentType === "Link" || o.contentType === "VRLink" || o.contentType === "PanoLink" ? !1 : o.contentType === "Panorama" ? !0 : o.contentType === "Audio" && o.data.appearance === "plane" ? o.isPopoverConfigEnabled() : !0;
738
- })()), t.$$.dirty[0] & /*tag, havePoint*/
739
- 1025 && i(25, m = (() => !(o.isPopoverConfigEnabled() && o.contentType === "Panorama" || o.isPopoverConfigEnabled() && o.contentType === "ImageText" || o.isPopoverConfigEnabled() && o.contentType === "Text" || o.isPopoverConfigEnabled() && o.contentType === "Audio" || o.stickType !== "2DPoint" || o.entryFromModel && He(o.five.state.mode) && a))()), t.$$.dirty[0] & /*tag*/
738
+ return ((z = (M = t.style) == null ? void 0 : M.point) == null ? void 0 : z.enabled) === !1 || ((A = S.get(t.contentType)) == null ? void 0 : A.usePoint) === !1 || t.contentType === "Sticker" || t.contentType === "Link" || t.contentType === "VRLink" || t.contentType === "PanoLink" ? !1 : t.contentType === "Panorama" ? !0 : t.contentType === "Audio" && t.data.appearance === "plane" ? t.isPopoverConfigEnabled() : !0;
739
+ })()), o.$$.dirty[0] & /*tag, havePoint*/
740
+ 1025 && i(25, m = (() => !(t.isPopoverConfigEnabled() && t.contentType === "Panorama" || t.isPopoverConfigEnabled() && t.contentType === "ImageText" || t.isPopoverConfigEnabled() && t.contentType === "Text" || t.isPopoverConfigEnabled() && t.contentType === "Audio" || t.stickType !== "2DPoint" && t.stickType !== "3DBox" && t.stickType !== "Polygon" && t.stickType !== "Mask" || t.entryFromModel && He(t.five.state.mode) && a))()), o.$$.dirty[0] & /*tag*/
740
741
  1 && i(24, r = (() => {
741
742
  var M;
742
- return o.contentType === "Marketing" ? !!(o.data.title || o.data.name || o.data.description || o.data.tooltip || (M = o.data.price) != null && M.value || o.data.brandTags && o.data.brandTags.length > 0 || o.data.tags && o.data.tags.length > 0 || o.data.imageUrl || o.data.mediaUrl || o.data.mediaData && o.data.mediaData.length > 0) : !!(o.data.title || o.data.name || o.data.text || o.data.description || o.data.tooltip || o.data.imageUrl || o.data.mediaUrl || o.data.audioUrl || o.data.mediaData && o.data.mediaData.length > 0);
743
- })()), t.$$.dirty[0] & /*tag*/
744
- 1 && i(23, n = o.id), t.$$.dirty[0] & /*tag*/
745
- 1 && i(9, u = o.screenPosition), t.$$.dirty[0] & /*tag*/
746
- 1 && i(22, l = o.enabled === !1 || !o.state), t.$$.dirty[0] & /*tag, screenPosition*/
747
- 513 && i(21, g = !((p = o.state) != null && p.visible) || ((c = o.temporaryState) == null ? void 0 : c.visible) === !1 || !u), t.$$.dirty[0] & /*tag*/
748
- 1 && i(8, d = ((k = o.state) == null ? void 0 : k.unfolded) && !o.isPopoverConfigEnabled()), t.$$.dirty[0] & /*screenPosition*/
749
- 512 && i(20, U = (u == null ? void 0 : u.leftPx) + "px"), t.$$.dirty[0] & /*screenPosition*/
750
- 512 && i(19, v = (u == null ? void 0 : u.topPx) + "px"), t.$$.dirty[0] & /*unfolded, tag*/
751
- 257 && i(18, L = d ? ((E = o.zIndex) != null ? E : 0) + (d ? 1e6 : 0) : void 0);
743
+ return t.contentType === "Marketing" ? !!(t.data.title || t.data.name || t.data.description || t.data.tooltip || (M = t.data.price) != null && M.value || t.data.brandTags && t.data.brandTags.length > 0 || t.data.tags && t.data.tags.length > 0 || t.data.imageUrl || t.data.mediaUrl || t.data.mediaData && t.data.mediaData.length > 0) : !!(t.data.title || t.data.name || t.data.text || t.data.description || t.data.tooltip || t.data.imageUrl || t.data.mediaUrl || t.data.audioUrl || t.data.mediaData && t.data.mediaData.length > 0);
744
+ })()), o.$$.dirty[0] & /*tag*/
745
+ 1 && i(23, n = t.id), o.$$.dirty[0] & /*tag*/
746
+ 1 && i(9, u = t.screenPosition), o.$$.dirty[0] & /*tag*/
747
+ 1 && i(22, l = t.enabled === !1 || !t.state), o.$$.dirty[0] & /*tag, screenPosition*/
748
+ 513 && i(21, g = !((p = t.state) != null && p.visible) || ((c = t.temporaryState) == null ? void 0 : c.visible) === !1 || !u), o.$$.dirty[0] & /*tag*/
749
+ 1 && i(8, d = ((C = t.state) == null ? void 0 : C.unfolded) && !t.isPopoverConfigEnabled()), o.$$.dirty[0] & /*screenPosition*/
750
+ 512 && i(20, U = (u == null ? void 0 : u.leftPx) + "px"), o.$$.dirty[0] & /*screenPosition*/
751
+ 512 && i(19, v = (u == null ? void 0 : u.topPx) + "px"), o.$$.dirty[0] & /*unfolded, tag*/
752
+ 257 && i(18, L = d ? ((E = t.zIndex) != null ? E : 0) + (d ? 1e6 : 0) : void 0);
752
753
  }, [
753
- o,
754
- C,
754
+ t,
755
+ k,
755
756
  S,
756
757
  f,
757
758
  s,
@@ -762,7 +763,7 @@ function Ne(t, e, i) {
762
763
  u,
763
764
  a,
764
765
  h,
765
- B,
766
+ j,
766
767
  K,
767
768
  Q,
768
769
  N,
@@ -789,14 +790,14 @@ function Ne(t, e, i) {
789
790
  be
790
791
  ];
791
792
  }
792
- class gr extends ve {
793
+ class cr extends ve {
793
794
  constructor(e) {
794
- super(), Ce(
795
+ super(), ke(
795
796
  this,
796
797
  e,
797
798
  Ne,
798
799
  Ze,
799
- ke,
800
+ Ce,
800
801
  {
801
802
  tag: 0,
802
803
  mediaStore: 1,
@@ -813,5 +814,5 @@ class gr extends ve {
813
814
  }
814
815
  }
815
816
  export {
816
- gr as default
817
+ cr as default
817
818
  };
@@ -12,7 +12,9 @@ import type { PartialObjectDeep } from '../../../typings/typings';
12
12
  import type { LiteralUnion } from 'type-fest';
13
13
  import type { CSS3DObjectPlus } from '../../../shared-utils/CSS3DRender/CSS3DObject';
14
14
  import type { Rectangle } from '../../../Sculpt/Objects/Rectangle';
15
- import { Line } from '@realsee/five/line';
15
+ import type { Line } from '@realsee/five/line';
16
+ import type { Box } from '../../../Sculpt/Objects/Box';
17
+ import type { Polygon } from '../../../Sculpt/typings';
16
18
  /**
17
19
  * @description 标签实例
18
20
  * @property `id` 标签id
@@ -88,6 +90,8 @@ export declare abstract class BaseTag<C extends TagContentType = TagContentType,
88
90
  dispose: () => void;
89
91
  };
90
92
  rectanglePlane?: Rectangle;
93
+ boxShape?: Box;
94
+ polygonShape?: Polygon;
91
95
  dom?: HTMLDivElement;
92
96
  contentDom?: HTMLDivElement;
93
97
  initialConfig: TagData['config'];