@realsee/dnalogel 2.1.0-alpha.21 → 2.1.0-alpha.23

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 (131) hide show
  1. package/dist/index.es.js +12944 -17266
  2. package/dist/index.js +6027 -5946
  3. package/docs/assets/search.js +1 -1
  4. package/docs/classes/CruisePluginController.html +14 -14
  5. package/docs/classes/Magnifier.html +4 -4
  6. package/docs/classes/ModelRoomLabelController.html +4 -4
  7. package/docs/classes/Object3DHelperController.html +9 -9
  8. package/docs/classes/PaintBrush.html +3 -3
  9. package/docs/classes/PanoTagPluginController.html +23 -23
  10. package/docs/enums/CameraMovementEffect.html +2 -2
  11. package/docs/enums/ContentType.html +7 -7
  12. package/docs/enums/DIRECTION.html +1 -1
  13. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
  14. package/docs/enums/DimensionType.html +1 -1
  15. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
  16. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
  17. package/docs/enums/LinkType.html +1 -1
  18. package/docs/enums/PaintBrushTypeEnum.html +1 -1
  19. package/docs/enums/PointType.html +1 -1
  20. package/docs/enums/Rotation.html +2 -2
  21. package/docs/index.html +2 -2
  22. package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
  23. package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
  24. package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
  25. package/docs/interfaces/ContentTypeMap.html +23 -0
  26. package/docs/interfaces/FloorplanBounding.html +4 -4
  27. package/docs/interfaces/FloorplanData.html +2 -2
  28. package/docs/interfaces/FloorplanEntrance.html +7 -7
  29. package/docs/interfaces/FloorplanExtraObject.html +3 -3
  30. package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
  31. package/docs/interfaces/FloorplanFloorData.html +2 -2
  32. package/docs/interfaces/FloorplanImagePosition.html +2 -2
  33. package/docs/interfaces/FloorplanObserver.html +2 -2
  34. package/docs/interfaces/FloorplanOutlineItem.html +2 -2
  35. package/docs/interfaces/FloorplanPosition.html +2 -2
  36. package/docs/interfaces/FloorplanRoomItem.html +6 -6
  37. package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
  38. package/docs/interfaces/FloorplanServerBounding.html +4 -4
  39. package/docs/interfaces/FloorplanServerComputedData.html +1 -1
  40. package/docs/interfaces/FloorplanServerData.html +2 -2
  41. package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
  42. package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
  43. package/docs/interfaces/FloorplanServerEntrance.html +7 -7
  44. package/docs/interfaces/FloorplanServerFloorData.html +2 -2
  45. package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
  46. package/docs/interfaces/FloorplanServerObserver.html +2 -2
  47. package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
  48. package/docs/interfaces/FloorplanServerPosition.html +2 -2
  49. package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
  50. package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
  51. package/docs/interfaces/ItemLabelPluginData.html +1 -1
  52. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
  53. package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
  54. package/docs/interfaces/LineJson.html +1 -1
  55. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
  56. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
  57. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
  58. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
  59. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
  60. package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
  61. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
  62. package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
  63. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
  64. package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
  65. package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
  66. package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
  67. package/docs/interfaces/ModelViewPluginExportType.html +1 -1
  68. package/docs/interfaces/Object3DHelperState.html +1 -1
  69. package/docs/interfaces/OpenParameter.html +2 -2
  70. package/docs/interfaces/PaintBrushAction.html +7 -7
  71. package/docs/interfaces/PaintBrushConfigs.html +1 -1
  72. package/docs/interfaces/PaintBrushState.html +1 -1
  73. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  74. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  75. package/docs/interfaces/PanoMeasureParameterType.html +2 -2
  76. package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
  77. package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
  78. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
  79. package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
  80. package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
  81. package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
  82. package/docs/interfaces/PanoRulerProPluginState.html +1 -1
  83. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  84. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  85. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
  86. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
  87. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
  88. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
  89. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
  90. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
  91. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
  92. package/docs/interfaces/Point.html +1 -1
  93. package/docs/interfaces/PointJson.html +1 -1
  94. package/docs/interfaces/Room.html +1 -1
  95. package/docs/interfaces/RoomInfo.html +1 -1
  96. package/docs/interfaces/RoomLabel.html +7 -7
  97. package/docs/interfaces/RoomRules.html +1 -1
  98. package/docs/interfaces/Rooms.html +1 -1
  99. package/docs/interfaces/Scissor.html +5 -5
  100. package/docs/interfaces/TagConfig.html +3 -3
  101. package/docs/interfaces/Tags.html +3 -3
  102. package/docs/modules.html +21 -21
  103. package/libs/PanoTagPlugin/Assets/Icon.d.ts +2 -1
  104. package/libs/PanoTagPlugin/Assets/Icon.js +3 -2
  105. package/libs/PanoTagPlugin/Components/Common/Media.js +558 -548
  106. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +107 -57
  107. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +85 -79
  108. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +65 -69
  109. package/libs/PanoTagPlugin/Components/PointTag.js +1 -1
  110. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +42 -42
  111. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +91 -93
  112. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +54 -58
  113. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +43 -40
  114. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +56 -56
  115. package/libs/PanoTagPlugin/Components/Tag/index.js +1 -1
  116. package/libs/PanoTagPlugin/Components/TagWrapper.js +1 -1
  117. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
  118. package/libs/PanoTagPlugin/controller/TagComputer.js +1 -1
  119. package/libs/PanoTagPlugin/controller/index.js +24 -30
  120. package/libs/PanoTagPlugin/index.js +2 -2
  121. package/libs/PanoTagPlugin/tag.config.js +1 -2
  122. package/libs/PanoTagPlugin/typings/tag.d.ts +1 -1
  123. package/libs/PanoTagPlugin/utils/doUtil.d.ts +1 -0
  124. package/libs/PanoTagPlugin/utils/doUtil.js +12 -0
  125. package/libs/{TagComputer.5bd7014b.js → TagComputer.0920083a.js} +108 -90
  126. package/libs/index.js +2 -2
  127. package/package.json +1 -2
  128. package/dist/index.cjs.js +0 -556
  129. package/dist/index.umd.js +0 -556
  130. package/libs/PanoTagPlugin/utils/nullishCoalescing.d.ts +0 -2
  131. package/libs/PanoTagPlugin/utils/nullishCoalescing.js +0 -7
@@ -1,88 +1,91 @@
1
- import { S as g, i as b, s as y, a as C, r as h, c, f as l, t as f, d as w, g as _, e as j, j as k, b as D, m as F, k as M, h as v } from "../../../index.164f1850.js";
2
- import u from "../../utils/nullishCoalescing.js";
3
- import S from "../Common/Media.js";
1
+ import { S as b, i as y, s as C, a as h, r as w, c as _, f, t as d, d as j, g, e as k, j as D, b as v, m as F, k as M, h as N } from "../../../index.164f1850.js";
2
+ import P from "../Common/Media.js";
4
3
  import "../../../index.dca207cb.js";
5
4
  import "../../../index.6a0eead1.js";
6
5
  import "three";
7
6
  import "../../utils/noTypecheck.js";
8
7
  import "../Common/MediaItem.js";
9
8
  import "../../Assets/Icon.js";
10
- function q(a) {
11
- C(a, "svelte-10cw0el", ".media-wrapper.svelte-10cw0el{position:absolute;width:100%;height:100%}");
9
+ function S(o) {
10
+ h(o, "svelte-10cw0el", ".media-wrapper.svelte-10cw0el{position:absolute;width:100%;height:100%}");
12
11
  }
13
- function m(a) {
14
- let n, o, t;
15
- return o = new S({
12
+ function c(o) {
13
+ let n, a, t;
14
+ return a = new P({
16
15
  props: {
17
- unfolded: a[5],
18
- mediaData: a[4],
19
- objectFit: a[2],
20
- enableCarousel: a[1],
21
- autoplayConfig: a[3],
16
+ unfolded: o[5],
17
+ mediaData: o[4],
18
+ objectFit: o[2],
19
+ enableCarousel: o[1],
20
+ autoplayConfig: o[3],
21
+ canPlay: !0,
22
+ playButtonIfNeed: "large",
22
23
  inDelay: 500,
23
24
  duration: 500
24
25
  }
25
26
  }), {
26
27
  c() {
27
- n = j("div"), k(o.$$.fragment), D(n, "class", "media-wrapper svelte-10cw0el");
28
+ n = k("div"), D(a.$$.fragment), v(n, "class", "media-wrapper svelte-10cw0el");
28
29
  },
29
30
  m(e, i) {
30
- c(e, n, i), F(o, n, null), t = !0;
31
+ _(e, n, i), F(a, n, null), t = !0;
31
32
  },
32
33
  p(e, i) {
33
- const s = {};
34
- i & 32 && (s.unfolded = e[5]), i & 16 && (s.mediaData = e[4]), i & 4 && (s.objectFit = e[2]), i & 2 && (s.enableCarousel = e[1]), i & 8 && (s.autoplayConfig = e[3]), o.$set(s);
34
+ const l = {};
35
+ i & 32 && (l.unfolded = e[5]), i & 16 && (l.mediaData = e[4]), i & 4 && (l.objectFit = e[2]), i & 2 && (l.enableCarousel = e[1]), i & 8 && (l.autoplayConfig = e[3]), a.$set(l);
35
36
  },
36
37
  i(e) {
37
- t || (l(o.$$.fragment, e), t = !0);
38
+ t || (f(a.$$.fragment, e), t = !0);
38
39
  },
39
40
  o(e) {
40
- f(o.$$.fragment, e), t = !1;
41
+ d(a.$$.fragment, e), t = !1;
41
42
  },
42
43
  d(e) {
43
- e && _(n), M(o);
44
+ e && g(n), M(a);
44
45
  }
45
46
  };
46
47
  }
47
- function N(a) {
48
- let n, o, t = a[0].state && a[4] && m(a);
48
+ function q(o) {
49
+ let n, a, t = o[0].state && o[4] && c(o);
49
50
  return {
50
51
  c() {
51
- t && t.c(), n = h();
52
+ t && t.c(), n = w();
52
53
  },
53
54
  m(e, i) {
54
- t && t.m(e, i), c(e, n, i), o = !0;
55
+ t && t.m(e, i), _(e, n, i), a = !0;
55
56
  },
56
57
  p(e, [i]) {
57
- e[0].state && e[4] ? t ? (t.p(e, i), i & 17 && l(t, 1)) : (t = m(e), t.c(), l(t, 1), t.m(n.parentNode, n)) : t && (v(), f(t, 1, 1, () => {
58
+ e[0].state && e[4] ? t ? (t.p(e, i), i & 17 && f(t, 1)) : (t = c(e), t.c(), f(t, 1), t.m(n.parentNode, n)) : t && (N(), d(t, 1, 1, () => {
58
59
  t = null;
59
- }), w());
60
+ }), j());
60
61
  },
61
62
  i(e) {
62
- o || (l(t), o = !0);
63
+ a || (f(t), a = !0);
63
64
  },
64
65
  o(e) {
65
- f(t), o = !1;
66
+ d(t), a = !1;
66
67
  },
67
68
  d(e) {
68
- t && t.d(e), e && _(n);
69
+ t && t.d(e), e && g(n);
69
70
  }
70
71
  };
71
72
  }
72
- function P(a, n, o) {
73
- let t, e, i, s, d, { tag: r } = n;
74
- return a.$$set = (p) => {
75
- "tag" in p && o(0, r = p.tag);
76
- }, a.$$.update = () => {
77
- a.$$.dirty & 1 && o(5, t = r.state ? r.state.unfolded : !1), a.$$.dirty & 1 && o(4, e = r.data.mediaData), a.$$.dirty & 1 && o(1, i = r.data.enableCarousel), a.$$.dirty & 3 && o(3, s = u(r.data.autoplayConfig, {
78
- autoplay: u(i, !0),
73
+ function B(o, n, a) {
74
+ let t, e, i, l, p;
75
+ var s, u;
76
+ let { tag: r } = n;
77
+ return o.$$set = (m) => {
78
+ "tag" in m && a(0, r = m.tag);
79
+ }, o.$$.update = () => {
80
+ o.$$.dirty & 1 && a(5, t = r.state ? r.state.unfolded : !1), o.$$.dirty & 1 && a(4, e = r.data.mediaData), o.$$.dirty & 1 && a(1, i = r.data.enableCarousel), o.$$.dirty & 67 && a(3, l = a(6, s = r.data.autoplayConfig) !== null && s !== void 0 ? s : {
81
+ autoplay: i != null ? i : !0,
79
82
  autoplayVideo: !0
80
- })), a.$$.dirty & 1 && o(2, d = u(r.data.objectFit, (() => r.data.adaptationMode === "stretch" ? "cover" : r.data.adaptationMode === "proportional" ? "contain" : void 0)()));
81
- }, [r, i, d, s, e, t];
83
+ }), o.$$.dirty & 129 && a(2, p = a(7, u = r.data.objectFit) !== null && u !== void 0 ? u : (() => r.data.adaptationMode === "stretch" ? "cover" : r.data.adaptationMode === "proportional" ? "contain" : void 0)());
84
+ }, [r, i, p, l, e, t, s, u];
82
85
  }
83
- class K extends g {
86
+ class K extends b {
84
87
  constructor(n) {
85
- super(), b(this, n, P, N, y, { tag: 0 }, q);
88
+ super(), y(this, n, B, q, C, { tag: 0 }, S);
86
89
  }
87
90
  }
88
91
  export {
@@ -1,9 +1,8 @@
1
- import { S as q, i as C, s as R, a as W, r as j, c as _, f as p, t as c, d as A, g as h, j as k, o as $, e as S, b as U, q as D, z as K, m as x, A as L, K as N, k as z, h as B } from "../../../index.164f1850.js";
2
- import E from "../Common/Line/Straight.js";
3
- import F from "../../../shared-utils/uuid.js";
4
- import G from "../Common/Shadow.js";
5
- import H from "../Common/MultiLineText.js";
6
- import I from "../../utils/nullishCoalescing.js";
1
+ import { S as R, i as W, s as j, a as A, r as C, c as h, f as p, t as g, d as K, g as c, j as x, o as U, e as D, b as I, q as M, z as L, m as z, A as N, K as B, k as T, h as E } from "../../../index.164f1850.js";
2
+ import F from "../Common/Line/Straight.js";
3
+ import G from "../../../shared-utils/uuid.js";
4
+ import H from "../Common/Shadow.js";
5
+ import J from "../Common/MultiLineText.js";
7
6
  import "../../../index.dca207cb.js";
8
7
  import "../../../index.6a0eead1.js";
9
8
  import "../Common/Text.js";
@@ -13,13 +12,14 @@ import "../../utils/search.js";
13
12
  import "../../utils/constants.js";
14
13
  import "../Common/Arrow.js";
15
14
  import "../../Assets/Icon.js";
16
- function J(i) {
17
- W(i, "svelte-18yy5x8", ".line.svelte-18yy5x8{position:absolute;top:0;left:0;width:10.125rem;height:0.0625rem;transform:translate3d(0, -50%, 0.625rem)}.content.svelte-18yy5x8{width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0;overflow:hidden;box-sizing:border-box;font-size:0;pointer-events:none;white-space:nowrap;font-weight:600}");
15
+ import "../../utils/doUtil.js";
16
+ function O(i) {
17
+ A(i, "svelte-18yy5x8", ".line.svelte-18yy5x8{position:absolute;top:0;left:0;width:10.125rem;height:0.0625rem;transform:translate3d(0, -50%, 0.625rem)}.content.svelte-18yy5x8{width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0;overflow:hidden;box-sizing:border-box;font-size:0;pointer-events:none;white-space:nowrap;font-weight:600}");
18
18
  }
19
- function M(i) {
20
- var b;
21
- let s, o, t, n, f, l, a, d, m, u, g;
22
- return s = new G({
19
+ function q(i) {
20
+ var w, _;
21
+ let s, o, e, n, f, r, a, d, m, u, b;
22
+ return s = new H({
23
23
  props: {
24
24
  visible: i[2],
25
25
  left: i[3] / 2 + "px",
@@ -28,13 +28,13 @@ function M(i) {
28
28
  blurRadius: 120,
29
29
  spreadRadius: 60
30
30
  }
31
- }), n = new E({
31
+ }), n = new F({
32
32
  props: {
33
33
  unfolded: i[2],
34
34
  duration: 1e3,
35
- outDelay: i[5] + 40 * Math.min(I((b = i[4][0]) == null ? void 0 : b.content.length, 10), 15)
35
+ outDelay: i[5] + 40 * Math.min((_ = (w = i[4][0]) == null ? void 0 : w.content.length) != null ? _ : 10, 15)
36
36
  }
37
- }), a = new H({
37
+ }), a = new J({
38
38
  props: {
39
39
  visible: i[2],
40
40
  textUnfolded: i[1],
@@ -42,70 +42,70 @@ function M(i) {
42
42
  }
43
43
  }), {
44
44
  c() {
45
- k(s.$$.fragment), o = $(), t = S("div"), k(n.$$.fragment), f = $(), l = S("div"), k(a.$$.fragment), U(t, "class", "line svelte-18yy5x8"), D(t, "width", i[3] + "px"), U(l, "class", "content svelte-18yy5x8"), K(() => i[9].call(l));
45
+ x(s.$$.fragment), o = U(), e = D("div"), x(n.$$.fragment), f = U(), r = D("div"), x(a.$$.fragment), I(e, "class", "line svelte-18yy5x8"), M(e, "width", i[3] + "px"), I(r, "class", "content svelte-18yy5x8"), L(() => i[9].call(r));
46
46
  },
47
- m(e, r) {
48
- x(s, e, r), _(e, o, r), _(e, t, r), x(n, t, null), _(e, f, r), _(e, l, r), x(a, l, null), d = L(l, i[9].bind(l)), m = !0, u || (g = N(l, "click", i[6]), u = !0);
47
+ m(t, l) {
48
+ z(s, t, l), h(t, o, l), h(t, e, l), z(n, e, null), h(t, f, l), h(t, r, l), z(a, r, null), d = N(r, i[9].bind(r)), m = !0, u || (b = B(r, "click", i[6]), u = !0);
49
49
  },
50
- p(e, r) {
51
- var T;
52
- const y = {};
53
- r & 4 && (y.visible = e[2]), r & 8 && (y.left = e[3] / 2 + "px"), s.$set(y);
50
+ p(t, l) {
51
+ var $, S;
54
52
  const v = {};
55
- r & 4 && (v.unfolded = e[2]), r & 48 && (v.outDelay = e[5] + 40 * Math.min(I((T = e[4][0]) == null ? void 0 : T.content.length, 10), 15)), n.$set(v), r & 8 && D(t, "width", e[3] + "px");
56
- const w = {};
57
- r & 4 && (w.visible = e[2]), r & 2 && (w.textUnfolded = e[1]), r & 16 && (w.textItems = e[4]), a.$set(w);
53
+ l & 4 && (v.visible = t[2]), l & 8 && (v.left = t[3] / 2 + "px"), s.$set(v);
54
+ const k = {};
55
+ l & 4 && (k.unfolded = t[2]), l & 48 && (k.outDelay = t[5] + 40 * Math.min((S = ($ = t[4][0]) == null ? void 0 : $.content.length) != null ? S : 10, 15)), n.$set(k), l & 8 && M(e, "width", t[3] + "px");
56
+ const y = {};
57
+ l & 4 && (y.visible = t[2]), l & 2 && (y.textUnfolded = t[1]), l & 16 && (y.textItems = t[4]), a.$set(y);
58
58
  },
59
- i(e) {
60
- m || (p(s.$$.fragment, e), p(n.$$.fragment, e), p(a.$$.fragment, e), m = !0);
59
+ i(t) {
60
+ m || (p(s.$$.fragment, t), p(n.$$.fragment, t), p(a.$$.fragment, t), m = !0);
61
61
  },
62
- o(e) {
63
- c(s.$$.fragment, e), c(n.$$.fragment, e), c(a.$$.fragment, e), m = !1;
62
+ o(t) {
63
+ g(s.$$.fragment, t), g(n.$$.fragment, t), g(a.$$.fragment, t), m = !1;
64
64
  },
65
- d(e) {
66
- z(s, e), e && h(o), e && h(t), z(n), e && h(f), e && h(l), z(a), d(), u = !1, g();
65
+ d(t) {
66
+ T(s, t), t && c(o), t && c(e), T(n), t && c(f), t && c(r), T(a), d(), u = !1, b();
67
67
  }
68
68
  };
69
69
  }
70
- function O(i) {
71
- let s, o, t = i[0].state && M(i);
70
+ function P(i) {
71
+ let s, o, e = i[0].state && q(i);
72
72
  return {
73
73
  c() {
74
- t && t.c(), s = j();
74
+ e && e.c(), s = C();
75
75
  },
76
76
  m(n, f) {
77
- t && t.m(n, f), _(n, s, f), o = !0;
77
+ e && e.m(n, f), h(n, s, f), o = !0;
78
78
  },
79
79
  p(n, [f]) {
80
- n[0].state ? t ? (t.p(n, f), f & 1 && p(t, 1)) : (t = M(n), t.c(), p(t, 1), t.m(s.parentNode, s)) : t && (B(), c(t, 1, 1, () => {
81
- t = null;
82
- }), A());
80
+ n[0].state ? e ? (e.p(n, f), f & 1 && p(e, 1)) : (e = q(n), e.c(), p(e, 1), e.m(s.parentNode, s)) : e && (E(), g(e, 1, 1, () => {
81
+ e = null;
82
+ }), K());
83
83
  },
84
84
  i(n) {
85
- o || (p(t), o = !0);
85
+ o || (p(e), o = !0);
86
86
  },
87
87
  o(n) {
88
- c(t), o = !1;
88
+ g(e), o = !1;
89
89
  },
90
90
  d(n) {
91
- t && t.d(n), n && h(s);
91
+ e && e.d(n), n && c(s);
92
92
  }
93
93
  };
94
94
  }
95
- function P(i, s, o) {
96
- let t, n, f;
97
- var l;
95
+ function Q(i, s, o) {
96
+ let e, n, f;
97
+ var r;
98
98
  let { tag: a } = s, d, m = !1, u = [];
99
- function g() {
99
+ function b() {
100
100
  o(1, m = !m);
101
101
  }
102
- function b() {
102
+ function w() {
103
103
  d = this.clientWidth, o(3, d);
104
104
  }
105
- return i.$$set = (e) => {
106
- "tag" in e && o(0, a = e.tag);
105
+ return i.$$set = (_) => {
106
+ "tag" in _ && o(0, a = _.tag);
107
107
  }, i.$$.update = () => {
108
- i.$$.dirty & 129 && o(2, t = !!(!(o(7, l = a.state) === null || l === void 0) && l.unfolded)), i.$$.dirty & 1 && o(8, n = a.data.text), i.$$.dirty & 256 && o(4, u = [{ id: F(), content: n }]), i.$$.dirty & 4 && (t || setTimeout(
108
+ i.$$.dirty & 129 && o(2, e = !!(!(o(7, r = a.state) === null || r === void 0) && r.unfolded)), i.$$.dirty & 1 && o(8, n = a.data.text), i.$$.dirty & 256 && o(4, u = [{ id: G(), content: n }]), i.$$.dirty & 4 && (e || setTimeout(
109
109
  () => {
110
110
  o(1, m = !1);
111
111
  },
@@ -114,21 +114,21 @@ function P(i, s, o) {
114
114
  }, [
115
115
  a,
116
116
  m,
117
- t,
117
+ e,
118
118
  d,
119
119
  u,
120
120
  f,
121
- g,
122
- l,
121
+ b,
122
+ r,
123
123
  n,
124
- b
124
+ w
125
125
  ];
126
126
  }
127
- class me extends q {
127
+ class de extends R {
128
128
  constructor(s) {
129
- super(), C(this, s, P, O, R, { tag: 0 }, J);
129
+ super(), W(this, s, Q, P, j, { tag: 0 }, O);
130
130
  }
131
131
  }
132
132
  export {
133
- me as default
133
+ de as default
134
134
  };
@@ -21,7 +21,7 @@ import "../../utils/search.js";
21
21
  import "../../utils/constants.js";
22
22
  import "../Common/Arrow.js";
23
23
  import "../../Assets/Icon.js";
24
- import "../../utils/nullishCoalescing.js";
24
+ import "../../utils/doUtil.js";
25
25
  import "../Common/Line/Polyline.js";
26
26
  import "../Common/Media.js";
27
27
  import "../Common/MediaItem.js";
@@ -17,7 +17,7 @@ import "../utils/search.js";
17
17
  import "../utils/constants.js";
18
18
  import "./Common/Arrow.js";
19
19
  import "../Assets/Icon.js";
20
- import "../utils/nullishCoalescing.js";
20
+ import "../utils/doUtil.js";
21
21
  import "./Tag/ImageTextTag.js";
22
22
  import "./Common/Line/Polyline.js";
23
23
  import "./Common/Media.js";
@@ -46,6 +46,7 @@ export declare abstract class TagComputer extends TagCacheController {
46
46
  * @description: 获取merge后的配置
47
47
  */
48
48
  getTagConfig(tag: Tag): TagConfig<import("../typings").ContentType, PointType, DimensionType, {}>;
49
+ protected canBe(action: 'show' | 'hide' | 'fold' | 'unfold', tag: Tag): boolean;
49
50
  /**
50
51
  * @description: 一个点的标签
51
52
  */
@@ -1,4 +1,4 @@
1
- import { T as x } from "../../TagComputer.5bd7014b.js";
1
+ import { T as x } from "../../TagComputer.0920083a.js";
2
2
  import "three";
3
3
  import "../tag.config.js";
4
4
  import "../typings/tag.js";
@@ -1,21 +1,21 @@
1
1
  var T = Object.defineProperty;
2
- var C = (d, h, e) => h in d ? T(d, h, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[h] = e;
3
- var a = (d, h, e) => (C(d, typeof h != "symbol" ? h + "" : h, e), e);
2
+ var C = (h, d, e) => d in h ? T(h, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[d] = e;
3
+ var a = (h, d, e) => (C(h, typeof d != "symbol" ? d + "" : d, e), e);
4
4
  import { Subscribe as D } from "@realsee/five";
5
5
  import { Quaternion as y } from "three";
6
- import { T as S, o as c } from "../../TagComputer.5bd7014b.js";
6
+ import { T as S, o as c } from "../../TagComputer.0920083a.js";
7
7
  import { w as P } from "../../index.ad783a2f.js";
8
8
  import A from "../Components/PointTag.js";
9
- import w from "../Components/Tag/index.js";
9
+ import R from "../Components/Tag/index.js";
10
10
  import { arrayPositionToVector3 as p } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
11
- import { addDebugPoints as R } from "../utils/addDebugPoints.js";
11
+ import { addDebugPoints as w } from "../utils/addDebugPoints.js";
12
12
  import { planeNormal as E } from "../utils/planeNormal.js";
13
- import { actionAfterFiveModelLoad as k } from "../utils/actionAfterFiveModelLoad.js";
14
- import { normalPositionToPositions as U } from "../utils/normalPositionToPositions.js";
13
+ import { actionAfterFiveModelLoad as U } from "../utils/actionAfterFiveModelLoad.js";
14
+ import { normalPositionToPositions as k } from "../utils/normalPositionToPositions.js";
15
15
  import { debounce as m } from "../utils/debounce.js";
16
16
  import { throttle as F } from "../utils/throttle.js";
17
17
  import { resizeObserver as u } from "../utils/resizeObserver.js";
18
- import { CSS3DRenderPlugin as O } from "../../CSS3DRenderPlugin/index.js";
18
+ import { CSS3DRenderPlugin as B } from "../../CSS3DRenderPlugin/index.js";
19
19
  import { PointType as f, DimensionType as v } from "../typings/tag.js";
20
20
  import "../tag.config.js";
21
21
  import "../utils/tagPosition.js";
@@ -28,7 +28,6 @@ import "../../index.164f1850.js";
28
28
  import "../Components/TagWrapper.js";
29
29
  import "../utils/noTypecheck.js";
30
30
  import "../Components/Common/Point/PointSwitch.js";
31
- import "../utils/nullishCoalescing.js";
32
31
  import "../Components/Common/Point/CustomPoint.js";
33
32
  import "../Components/Common/Shadow.js";
34
33
  import "../../index.dca207cb.js";
@@ -44,6 +43,7 @@ import "../utils/search.js";
44
43
  import "../utils/constants.js";
45
44
  import "../Components/Common/Arrow.js";
46
45
  import "../Assets/Icon.js";
46
+ import "../utils/doUtil.js";
47
47
  import "../Components/Tag/ImageTextTag.js";
48
48
  import "../Components/Common/Line/Polyline.js";
49
49
  import "../Components/Common/Media.js";
@@ -59,7 +59,7 @@ import "../../CSS3DRenderPlugin/CSS3DRender.js";
59
59
  import "three/examples/jsm/renderers/CSS3DRenderer";
60
60
  import "../../CSS3DRenderPlugin/utils/evenNumber.js";
61
61
  import "../../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
62
- const b = "1.1.1", g = `DnalogelPlugin-PanoTagPlugin@${b}`, L = !1, ze = (d) => `${g}--${d}`;
62
+ const b = "1.2.1", g = `DnalogelPlugin-PanoTagPlugin@${b}`, O = !1, ze = (h) => `${g}--${h}`;
63
63
  class je extends S {
64
64
  constructor(e, t) {
65
65
  super(e);
@@ -107,19 +107,19 @@ class je extends S {
107
107
  this.clearTags(), console.log(g, "load:", { data: e }), this.params.mergePluginDefaultConfigToLoadDataConfig ? this.config = c.exports({}, this.config, {
108
108
  globalConfig: (i = e.globalConfig) != null ? i : {},
109
109
  contentTypeConfig: (s = e.contentTypeConfig) != null ? s : {}
110
- }) : (e.globalConfig && (this.config.globalConfig = e.globalConfig), e.contentTypeConfig && (this.config.contentTypeConfig = e.contentTypeConfig)), this.addTag(e.tagList, t), this.debug && R(this.five, this.tags);
110
+ }) : (e.globalConfig && (this.config.globalConfig = e.globalConfig), e.contentTypeConfig && (this.config.contentTypeConfig = e.contentTypeConfig)), this.addTag(e.tagList, t), this.debug && w(this.five, this.tags);
111
111
  }
112
112
  addTag(e, t) {
113
113
  const s = (Array.isArray(e) ? e : [e]).map((o) => {
114
114
  const n = this.getTagConfig(o);
115
115
  return {
116
116
  ...o,
117
- state: { visible: void 0, unfolded: L, ...n.initialState },
117
+ state: { visible: void 0, unfolded: O, ...n.initialState },
118
118
  hooks: new D(),
119
119
  clickable: n.clickable
120
120
  };
121
121
  }).filter((o) => o.position);
122
- this.tags.push(...s), k(this.five, () => {
122
+ this.tags.push(...s), U(this.five, () => {
123
123
  var o, n, r;
124
124
  if (this.store.eventListenerDisposer && ((n = (o = this.store).eventListenerDisposer) == null || n.call(o)), this.store.eventListenerDisposer = this.addEventListener(), !this.store.resizeObserverDisposer && !this.store.resizeObserverDisposerAdding) {
125
125
  const l = this.addResizeObserver();
@@ -252,20 +252,14 @@ class je extends S {
252
252
  this.temporaryState.visible = !1;
253
253
  }
254
254
  clickhandler(e) {
255
- if (e.target === "TagPoint") {
256
- if (!e.tag.state)
257
- return console.warn("Clickhandler: params.tag.state is undefined");
258
- const t = this.getTagConfig(e.tag);
259
- if (typeof t.unfoldedConfig == "object")
260
- if (t.unfoldedConfig.disableUnfold || t.unfoldedConfig.keep) {
261
- if (!e.tag.state.unfolded)
262
- return console.warn("Clickhandler: Can not unfold");
263
- } else
264
- e.tag.state.unfolded = !e.tag.state.unfolded;
265
- e.tag.state.unfolded && this.tags.forEach((i) => {
266
- i.id !== e.tag.id && i.state && (i.state.unfolded = !1);
267
- }), this.updateRenderAllTags();
268
- }
255
+ if (e.target !== "TagPoint")
256
+ return;
257
+ if (!e.tag.state)
258
+ return console.warn("Clickhandler: params.tag.state is undefined");
259
+ const t = this.canBe("fold", e.tag), i = this.canBe("unfold", e.tag);
260
+ t && i && (e.tag.state.unfolded = !e.tag.state.unfolded, e.tag.state.unfolded && this.tags.forEach((s) => {
261
+ s.id !== e.tag.id && s.state && this.canBe("fold", s) && (s.state.unfolded = !1);
262
+ }), this.updateRenderAllTags());
269
263
  }
270
264
  updateRenderAllTags() {
271
265
  this.updateRenderPointTag(), this.updateRenderPlaneTag();
@@ -336,13 +330,13 @@ class je extends S {
336
330
  } else {
337
331
  if (((i = t.state) == null ? void 0 : i.visible) === !1)
338
332
  return;
339
- if (this.css3DRenderPlugin || (this.css3DRenderPlugin = O(this.five)), t.pointType === f.PointTag && !t.normal)
333
+ if (this.css3DRenderPlugin || (this.css3DRenderPlugin = B(this.five)), t.pointType === f.PointTag && !t.normal)
340
334
  return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
341
- const s = t.pointType === f.PlaneTag ? t.position : U(this.five.camera.position, p(t.position), p(t.normal)), o = t.pointType === f.PlaneTag ? E(t.position) : p(t.normal), n = this.getTagConfig(t).tag3DConfig, r = this.css3DRenderPlugin.create3DDomContainer(s, n);
335
+ const s = t.pointType === f.PlaneTag ? t.position : k(this.five.camera.position, p(t.position), p(t.normal)), o = t.pointType === f.PlaneTag ? E(t.position) : p(t.normal), n = this.getTagConfig(t).tag3DConfig, r = this.css3DRenderPlugin.create3DDomContainer(s, n);
342
336
  if (!r)
343
337
  return;
344
338
  this.store.css3DRenderDisposer.set(t.id, r.dispose), t.tag3DContentSvelte = {
345
- svelteApp: new w({
339
+ svelteApp: new R({
346
340
  target: r.container,
347
341
  props: {
348
342
  tag: t,
@@ -3,7 +3,7 @@ import { default as go, pluginFlag as Po } from "./controller/index.js";
3
3
  import { ContentType as uo, DimensionType as fo, LinkType as so, PointType as yo } from "./typings/tag.js";
4
4
  import "@realsee/five";
5
5
  import "three";
6
- import "../TagComputer.5bd7014b.js";
6
+ import "../TagComputer.0920083a.js";
7
7
  import "./tag.config.js";
8
8
  import "../CSS3DRenderPlugin/utils/positionToVector3.js";
9
9
  import "./utils/planeNormal.js";
@@ -32,7 +32,7 @@ import "./utils/search.js";
32
32
  import "./utils/constants.js";
33
33
  import "./Components/Common/Arrow.js";
34
34
  import "./Assets/Icon.js";
35
- import "./utils/nullishCoalescing.js";
35
+ import "./utils/doUtil.js";
36
36
  import "./Components/Tag/ImageTextTag.js";
37
37
  import "./Components/Common/Line/Polyline.js";
38
38
  import "./Components/Common/Media.js";
@@ -33,8 +33,7 @@ const n = {
33
33
  visibleConfig: {
34
34
  angleRange: void 0,
35
35
  visibleDistance: void 0
36
- },
37
- clickable: !1
36
+ }
38
37
  }
39
38
  }
40
39
  };
@@ -171,7 +171,7 @@ export declare type MediaData = {
171
171
  videoCoverUrl?: string;
172
172
  };
173
173
  export declare type ObjectFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
174
- interface ContentTypeMap {
174
+ export interface ContentTypeMap {
175
175
  [ContentType.Audio]: {
176
176
  text: string;
177
177
  audioUrl: string;
@@ -0,0 +1 @@
1
+ export default function doUtil<T = any>(func: () => T, util: (value: T) => boolean, duration?: number, times?: number): Promise<T>;
@@ -0,0 +1,12 @@
1
+ function s(n, r, a = 20, o = 5) {
2
+ return new Promise((c, i) => {
3
+ let t = 0;
4
+ const l = setInterval(() => {
5
+ const e = n();
6
+ r(e) ? (clearInterval(l), c(e)) : t >= o && (clearInterval(l), i(e)), t++;
7
+ }, a);
8
+ });
9
+ }
10
+ export {
11
+ s as default
12
+ };