@realsee/dnalogel 3.77.5 → 3.77.6

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 (55) hide show
  1. package/CHANGELOG.md +15 -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/index.cjs.js +178 -95
  16. package/dist/index.js +11346 -9788
  17. package/dist/index.umd.js +173 -90
  18. package/libs/CruisePlugin/Move.js +7 -2
  19. package/libs/CruisePlugin/Work.js +7 -2
  20. package/libs/CruisePlugin/index.js +11 -6
  21. package/libs/GuideLinePlugin/Controller.js +9 -4
  22. package/libs/GuideLinePlugin/GuideLineItem.js +7 -2
  23. package/libs/GuideLinePlugin/GuideLineModeItem.js +7 -2
  24. package/libs/GuideLinePlugin/index.js +11 -6
  25. package/libs/PanoTagPlugin/Components/TagItem.js +122 -122
  26. package/libs/PanoTagPlugin/controller/Tag/BaseTag.d.ts +5 -1
  27. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +320 -289
  28. package/libs/PanoTagPlugin/controller/Tag/BoxTag.d.ts +119 -0
  29. package/libs/PanoTagPlugin/controller/Tag/BoxTag.js +515 -0
  30. package/libs/PanoTagPlugin/controller/Tag/MaskTag.d.ts +257 -0
  31. package/libs/PanoTagPlugin/controller/Tag/MaskTag.js +815 -0
  32. package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +10 -0
  33. package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.js +94 -0
  34. package/libs/PanoTagPlugin/controller/Tag/PolygonTag.d.ts +112 -0
  35. package/libs/PanoTagPlugin/controller/Tag/PolygonTag.js +478 -0
  36. package/libs/PanoTagPlugin/controller/TagRender.d.ts +1 -1
  37. package/libs/PanoTagPlugin/controller/TagUtil.js +19 -17
  38. package/libs/PanoTagPlugin/controller/index.d.ts +55 -2
  39. package/libs/PanoTagPlugin/controller/index.js +261 -148
  40. package/libs/PanoTagPlugin/index.js +16 -11
  41. package/libs/PanoTagPlugin/typings/controller.d.ts +10 -0
  42. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +8 -3
  43. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +50 -1
  44. package/libs/PanoTagPlugin/utils/addDebugPoints.js +27 -13
  45. package/libs/PanoTagPlugin/utils/index.js +29 -26
  46. package/libs/PanoTagPlugin/utils/sculptDataToBoxPosition.d.ts +6 -0
  47. package/libs/PanoTagPlugin/utils/sculptDataToBoxPosition.js +18 -0
  48. package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +6 -0
  49. package/libs/PanoTagPlugin/utils/tag/tagCheck.js +26 -14
  50. package/libs/PanoTagPlugin/utils/tagPosition.d.ts +12 -3
  51. package/libs/PanoTagPlugin/utils/tagPosition.js +49 -16
  52. package/libs/base/BasePlugin.js +1 -1
  53. package/libs/index.js +163 -158
  54. package/libs/shared-utils/logger.js +1 -1
  55. 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";
@@ -188,10 +188,10 @@ import "./Common/AudioPlayer.js";
188
188
  import "./Common/TagPopover/TagPopoverToolBar.js";
189
189
  import "./Common/TagPopover/ArrowRightIcon.js";
190
190
  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}");
191
+ function Ue(o) {
192
+ 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
193
  }
194
- function re(t) {
194
+ function re(o) {
195
195
  let e, i, a, m, r, n, u, l, g, d;
196
196
  const U = [ze, Le], v = [];
197
197
  function L(f, s) {
@@ -200,66 +200,66 @@ function re(t) {
200
200
  f[10] ? 0 : 1
201
201
  );
202
202
  }
203
- i = L(t), a = v[i] = U[i](t);
204
- const o = [Re, Ae], C = [];
203
+ i = L(o), a = v[i] = U[i](o);
204
+ const t = [Re, Ae], k = [];
205
205
  function S(f, s) {
206
206
  return (
207
207
  /*haveContent*/
208
208
  f[25] ? 0 : 1
209
209
  );
210
210
  }
211
- return r = S(t), n = C[r] = o[r](t), {
211
+ return r = S(o), n = k[r] = t[r](o), {
212
212
  c() {
213
213
  e = X("div"), a.c(), m = ae(), n.c(), _(e, "class", "tag svelte-2g2g8a"), _(
214
214
  e,
215
215
  "data-tag-id",
216
216
  /*id*/
217
- t[23]
217
+ o[23]
218
218
  ), _(
219
219
  e,
220
220
  "data-tag-unfolded",
221
221
  /*unfolded*/
222
- t[8]
222
+ o[8]
223
223
  ), _(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(
224
+ o[0].contentType), _(e, "data-popover-enabled", l = /*tag*/
225
+ o[0].isPopoverConfigEnabled()), _(e, "id", g = `tag-${/*id*/
226
+ o[23]}`), H(
227
227
  e,
228
228
  "unClickable",
229
229
  /*tag*/
230
- t[0].config.clickable === !1
230
+ o[0].config.clickable === !1
231
231
  ), H(
232
232
  e,
233
233
  "hide",
234
234
  /*hide*/
235
- t[21]
235
+ o[21]
236
236
  ), H(
237
237
  e,
238
238
  "enableZIndex",
239
239
  /*zIndex*/
240
- t[18]
241
- ), F(
240
+ o[18]
241
+ ), B(
242
242
  e,
243
243
  "z-index",
244
244
  /*zIndex*/
245
- t[18]
246
- ), F(e, "transform", `translate3d(${/*left*/
247
- t[20]}, ${/*top*/
248
- t[19]}, 0) scale(${/*screenPosition*/
249
- t[9].scale})`);
245
+ o[18]
246
+ ), B(e, "transform", `translate3d(${/*left*/
247
+ o[20]}, ${/*top*/
248
+ o[19]}, 0) scale(${/*screenPosition*/
249
+ o[9].scale})`);
250
250
  },
251
251
  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;
252
+ R(f, e, s), v[i].m(e, null), Ee(e, m), k[r].m(e, null), o[36](e), d = !0;
253
253
  },
254
254
  p(f, s) {
255
255
  let w = i;
256
- i = L(f), i === w ? v[i].p(f, s) : (j(), T(v[w], 1, 1, () => {
256
+ i = L(f), i === w ? v[i].p(f, s) : (V(), T(v[w], 1, 1, () => {
257
257
  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));
258
+ }), 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
259
  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*/
260
+ r = S(f), r === D ? k[r].p(f, s) : (V(), T(k[D], 1, 1, () => {
261
+ k[D] = null;
262
+ }), 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
263
  8388608) && _(
264
264
  e,
265
265
  "data-tag-id",
@@ -296,13 +296,13 @@ function re(t) {
296
296
  /*zIndex*/
297
297
  f[18]
298
298
  ), s[0] & /*zIndex*/
299
- 262144 && F(
299
+ 262144 && B(
300
300
  e,
301
301
  "z-index",
302
302
  /*zIndex*/
303
303
  f[18]
304
304
  ), s[0] & /*left, top, screenPosition*/
305
- 1573376 && F(e, "transform", `translate3d(${/*left*/
305
+ 1573376 && B(e, "transform", `translate3d(${/*left*/
306
306
  f[20]}, ${/*top*/
307
307
  f[19]}, 0) scale(${/*screenPosition*/
308
308
  f[9].scale})`);
@@ -314,11 +314,11 @@ function re(t) {
314
314
  T(a), T(n), d = !1;
315
315
  },
316
316
  d(f) {
317
- f && Z(e), v[i].d(), C[r].d(), t[36](null);
317
+ f && Z(e), v[i].d(), k[r].d(), o[36](null);
318
318
  }
319
319
  };
320
320
  }
321
- function Le(t) {
321
+ function Le(o) {
322
322
  let e;
323
323
  return {
324
324
  c() {
@@ -335,52 +335,52 @@ function Le(t) {
335
335
  }
336
336
  };
337
337
  }
338
- function ze(t) {
338
+ function ze(o) {
339
339
  let e, i, a;
340
340
  function m(n) {
341
- t[34](n);
341
+ o[34](n);
342
342
  }
343
343
  let r = {
344
344
  tag: (
345
345
  /*tag*/
346
- t[0]
346
+ o[0]
347
347
  ),
348
348
  handleMouseEnter: (
349
349
  /*handleMouseEnter*/
350
- t[30]
350
+ o[30]
351
351
  ),
352
352
  handleMouseLeave: (
353
353
  /*handleMouseLeave*/
354
- t[31]
354
+ o[31]
355
355
  ),
356
356
  handleTagPointClick: (
357
357
  /*handleTagPointClick*/
358
- t[32]
358
+ o[32]
359
359
  )
360
360
  };
361
361
  return (
362
362
  /*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(
363
+ o[12] !== void 0 && (r.tagPointClickHelper = /*tagPointClickHelper*/
364
+ o[12]), e = new De({ props: r }), W.push(() => Me(e, "tagPointClickHelper", m)), o[35](e), e.$on(
365
365
  "audioInstanceReady",
366
366
  /*audioEventHandlers*/
367
- t[27].audioInstanceReady
367
+ o[27].audioInstanceReady
368
368
  ), e.$on(
369
369
  "audioPlay",
370
370
  /*audioEventHandlers*/
371
- t[27].audioPlay
371
+ o[27].audioPlay
372
372
  ), e.$on(
373
373
  "audioPause",
374
374
  /*audioEventHandlers*/
375
- t[27].audioPause
375
+ o[27].audioPause
376
376
  ), e.$on(
377
377
  "audioTimeUpdate",
378
378
  /*audioEventHandlers*/
379
- t[27].audioTimeUpdate
379
+ o[27].audioTimeUpdate
380
380
  ), e.$on(
381
381
  "audioDuration",
382
382
  /*audioEventHandlers*/
383
- t[27].audioDuration
383
+ o[27].audioDuration
384
384
  ), {
385
385
  c() {
386
386
  Y(e.$$.fragment);
@@ -403,12 +403,12 @@ function ze(t) {
403
403
  T(e.$$.fragment, n), a = !1;
404
404
  },
405
405
  d(n) {
406
- t[35](null), x(e, n);
406
+ o[35](null), x(e, n);
407
407
  }
408
408
  }
409
409
  );
410
410
  }
411
- function Ae(t) {
411
+ function Ae(o) {
412
412
  let e;
413
413
  return {
414
414
  c() {
@@ -425,37 +425,37 @@ function Ae(t) {
425
425
  }
426
426
  };
427
427
  }
428
- function Re(t) {
428
+ function Re(o) {
429
429
  let e, i;
430
430
  return e = new we({
431
431
  props: {
432
432
  mediaStore: (
433
433
  /*mediaStore*/
434
- t[1]
434
+ o[1]
435
435
  ),
436
436
  tag: ie(
437
437
  /*tag*/
438
- t[0]
438
+ o[0]
439
439
  ),
440
440
  hooks: (
441
441
  /*hooks*/
442
- t[26]
442
+ o[26]
443
443
  ),
444
444
  state: (
445
445
  /*state*/
446
- t[4]
446
+ o[4]
447
447
  ),
448
448
  temporaryState: (
449
449
  /*temporaryState*/
450
- t[5]
450
+ o[5]
451
451
  ),
452
452
  rendererMap: (
453
453
  /*rendererMap*/
454
- t[2]
454
+ o[2]
455
455
  ),
456
456
  contentTypeMap: (
457
457
  /*contentTypeMap*/
458
- t[3]
458
+ o[3]
459
459
  )
460
460
  }
461
461
  }), {
@@ -494,69 +494,69 @@ function Re(t) {
494
494
  }
495
495
  };
496
496
  }
497
- function ne(t) {
497
+ function ne(o) {
498
498
  var a;
499
499
  let e, i;
500
500
  return e = new Ie({
501
501
  props: {
502
502
  tag: (
503
503
  /*tag*/
504
- t[0]
504
+ o[0]
505
505
  ),
506
506
  config: (
507
507
  /*tag*/
508
- t[0].config.popoverConfig
508
+ o[0].config.popoverConfig
509
509
  ),
510
510
  theme: (
511
511
  /*tag*/
512
- (a = t[0].config.popoverConfig) == null ? void 0 : a.theme
512
+ (a = o[0].config.popoverConfig) == null ? void 0 : a.theme
513
513
  ),
514
514
  wrapperElement: (
515
515
  /*wrapperElement*/
516
- t[6]
516
+ o[6]
517
517
  ),
518
518
  triggerElement: (
519
519
  /*tagPointClickHelper*/
520
- t[12]
520
+ o[12]
521
521
  ),
522
522
  popoverContainer: (
523
523
  /*popoverContainer*/
524
- t[7]
524
+ o[7]
525
525
  ),
526
526
  visible: !0,
527
527
  closePopover: (
528
528
  /*closePopover*/
529
- t[33]
529
+ o[33]
530
530
  ),
531
531
  audioInstance: (
532
532
  /*audioInstance*/
533
- t[14]
533
+ o[14]
534
534
  ),
535
535
  audioPlaying: (
536
536
  /*audioPlaying*/
537
- t[15]
537
+ o[15]
538
538
  ),
539
539
  audioCurrentTime: (
540
540
  /*audioCurrentTime*/
541
- t[16]
541
+ o[16]
542
542
  ),
543
543
  audioDuration: (
544
544
  /*audioDuration*/
545
- t[17]
545
+ o[17]
546
546
  )
547
547
  }
548
548
  }), e.$on(
549
549
  "mouseenter",
550
550
  /*handlePopoverMouseEnter*/
551
- t[28]
551
+ o[28]
552
552
  ), e.$on(
553
553
  "mouseleave",
554
554
  /*handlePopoverMouseLeave*/
555
- t[29]
555
+ o[29]
556
556
  ), e.$on(
557
557
  "close",
558
558
  /*closePopover*/
559
- t[33]
559
+ o[33]
560
560
  ), {
561
561
  c() {
562
562
  Y(e.$$.fragment);
@@ -600,20 +600,20 @@ function ne(t) {
600
600
  }
601
601
  };
602
602
  }
603
- function Ze(t) {
603
+ function Ze(o) {
604
604
  var u;
605
605
  let e, i = (
606
606
  /*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))
607
+ o[0].isPopoverConfigEnabled() && /*hasPopoverContent*/
608
+ o[24] && /*isHovering*/
609
+ (o[11] || /*tag*/
610
+ ((u = o[0].config.popoverConfig) == null ? void 0 : u.debug))
611
611
  ), a, m, r = (
612
612
  /*screenPosition*/
613
- t[9] && (!/*disable*/
614
- t[22] || /*isHovering*/
615
- t[11]) && re(t)
616
- ), n = i && ne(t);
613
+ o[9] && (!/*disable*/
614
+ o[22] || /*isHovering*/
615
+ o[11]) && re(o)
616
+ ), n = i && ne(o);
617
617
  return {
618
618
  c() {
619
619
  r && r.c(), e = ae(), n && n.c(), a = he();
@@ -627,17 +627,17 @@ function Ze(t) {
627
627
  l[9] && (!/*disable*/
628
628
  l[22] || /*isHovering*/
629
629
  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, () => {
630
+ 4196864 && b(r, 1)) : (r = re(l), r.c(), b(r, 1), r.m(e.parentNode, e)) : r && (V(), T(r, 1, 1, () => {
631
631
  r = null;
632
- }), V()), g[0] & /*tag, hasPopoverContent, isHovering*/
632
+ }), F()), g[0] & /*tag, hasPopoverContent, isHovering*/
633
633
  16779265 && (i = /*tag*/
634
634
  l[0].isPopoverConfigEnabled() && /*hasPopoverContent*/
635
635
  l[24] && /*isHovering*/
636
636
  (l[11] || /*tag*/
637
637
  ((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, () => {
638
+ 16779265 && b(n, 1)) : (n = ne(l), n.c(), b(n, 1), n.m(a.parentNode, a)) : n && (V(), T(n, 1, 1, () => {
639
639
  n = null;
640
- }), V());
640
+ }), F());
641
641
  },
642
642
  i(l) {
643
643
  m || (b(r), b(n), m = !0);
@@ -650,10 +650,10 @@ function Ze(t) {
650
650
  }
651
651
  };
652
652
  }
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;
653
+ function Ne(o, e, i) {
654
+ 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
655
  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;
656
+ let h = !1, y, P, j = null, G = !1, J = !1, K = null, Q = null, N = !1, te = 0, oe = 0;
657
657
  const me = {
658
658
  audioInstanceReady: (p) => {
659
659
  i(14, Q = p.detail), i(15, N = !Q.paused);
@@ -680,7 +680,7 @@ function Ne(t, e, i) {
680
680
  P = setTimeout(
681
681
  () => {
682
682
  var c;
683
- !G && !J && !((c = o.config.popoverConfig) != null && c.debug) && (O = !1, i(11, h = !1));
683
+ !G && !J && !((c = t.config.popoverConfig) != null && c.debug) && (O = !1, i(11, h = !1));
684
684
  },
685
685
  300
686
686
  );
@@ -689,24 +689,24 @@ function Ne(t, e, i) {
689
689
  }, fe = () => {
690
690
  G = !1, q(!1);
691
691
  }, 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")) {
692
+ var c, C, E, M, z, A;
693
+ 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
694
  if (P && clearTimeout(P), y !== void 0)
695
695
  return;
696
- ((M = (E = o.currentConfig) == null ? void 0 : E.popoverConfig) == null ? void 0 : M.triggerDelay) > 0 ? y = setTimeout(
696
+ ((M = (E = t.currentConfig) == null ? void 0 : E.popoverConfig) == null ? void 0 : M.triggerDelay) > 0 ? y = setTimeout(
697
697
  () => {
698
- q(!0), o.hooks.emit("hover", { event: p, tag: o }), y = void 0;
698
+ q(!0), t.hooks.emit("hover", { event: p, tag: t }), y = void 0;
699
699
  },
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 }));
700
+ (A = (z = t.currentConfig) == null ? void 0 : z.popoverConfig) == null ? void 0 : A.triggerDelay
701
+ ) : (q(!0), t.hooks.emit("hover", { event: p, tag: t }));
702
702
  }
703
703
  }, 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)));
704
+ var c, C;
705
+ 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
706
  }, 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 })));
707
+ var C, E;
708
+ const c = t.contentType === "Audio" && t.data.appearance === "plane";
709
+ 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
710
  };
711
711
  function ge() {
712
712
  O = !1, i(11, h = !1);
@@ -715,7 +715,7 @@ function Ne(t, e, i) {
715
715
  y && clearTimeout(y), P && clearTimeout(P);
716
716
  });
717
717
  function ce(p) {
718
- B = p, i(12, B);
718
+ j = p, i(12, j);
719
719
  }
720
720
  function _e(p) {
721
721
  W[p ? "unshift" : "push"](() => {
@@ -724,34 +724,34 @@ function Ne(t, e, i) {
724
724
  }
725
725
  function be(p) {
726
726
  W[p ? "unshift" : "push"](() => {
727
- o.dom = p, i(0, o);
727
+ t.dom = p, i(0, t);
728
728
  });
729
729
  }
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*/
730
+ return o.$$set = (p) => {
731
+ "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);
732
+ }, o.$$.update = () => {
733
+ var p, c, C, E;
734
+ o.$$.dirty[0] & /*tag, rendererMap*/
735
735
  5 && i(10, a = (() => {
736
736
  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*/
737
+ 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;
738
+ })()), o.$$.dirty[0] & /*tag, havePoint*/
739
+ 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
740
  1 && i(24, r = (() => {
741
741
  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);
742
+ 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);
743
+ })()), o.$$.dirty[0] & /*tag*/
744
+ 1 && i(23, n = t.id), o.$$.dirty[0] & /*tag*/
745
+ 1 && i(9, u = t.screenPosition), o.$$.dirty[0] & /*tag*/
746
+ 1 && i(22, l = t.enabled === !1 || !t.state), o.$$.dirty[0] & /*tag, screenPosition*/
747
+ 513 && i(21, g = !((p = t.state) != null && p.visible) || ((c = t.temporaryState) == null ? void 0 : c.visible) === !1 || !u), o.$$.dirty[0] & /*tag*/
748
+ 1 && i(8, d = ((C = t.state) == null ? void 0 : C.unfolded) && !t.isPopoverConfigEnabled()), o.$$.dirty[0] & /*screenPosition*/
749
+ 512 && i(20, U = (u == null ? void 0 : u.leftPx) + "px"), o.$$.dirty[0] & /*screenPosition*/
750
+ 512 && i(19, v = (u == null ? void 0 : u.topPx) + "px"), o.$$.dirty[0] & /*unfolded, tag*/
751
+ 257 && i(18, L = d ? ((E = t.zIndex) != null ? E : 0) + (d ? 1e6 : 0) : void 0);
752
752
  }, [
753
- o,
754
- C,
753
+ t,
754
+ k,
755
755
  S,
756
756
  f,
757
757
  s,
@@ -762,7 +762,7 @@ function Ne(t, e, i) {
762
762
  u,
763
763
  a,
764
764
  h,
765
- B,
765
+ j,
766
766
  K,
767
767
  Q,
768
768
  N,
@@ -791,12 +791,12 @@ function Ne(t, e, i) {
791
791
  }
792
792
  class gr extends ve {
793
793
  constructor(e) {
794
- super(), Ce(
794
+ super(), ke(
795
795
  this,
796
796
  e,
797
797
  Ne,
798
798
  Ze,
799
- ke,
799
+ Ce,
800
800
  {
801
801
  tag: 0,
802
802
  mediaStore: 1,
@@ -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'];