@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.
- package/dist/index.es.js +12944 -17266
- package/dist/index.js +6027 -5946
- package/docs/assets/search.js +1 -1
- package/docs/classes/CruisePluginController.html +14 -14
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/classes/Object3DHelperController.html +9 -9
- package/docs/classes/PaintBrush.html +3 -3
- package/docs/classes/PanoTagPluginController.html +23 -23
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/ContentType.html +7 -7
- package/docs/enums/DIRECTION.html +1 -1
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/DimensionType.html +1 -1
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/LinkType.html +1 -1
- package/docs/enums/PaintBrushTypeEnum.html +1 -1
- package/docs/enums/PointType.html +1 -1
- package/docs/enums/Rotation.html +2 -2
- package/docs/index.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/ContentTypeMap.html +23 -0
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +7 -7
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +6 -6
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +1 -1
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
- package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
- package/docs/interfaces/FloorplanServerEntrance.html +7 -7
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +1 -1
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/LineJson.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
- package/docs/interfaces/ModelViewPluginExportType.html +1 -1
- package/docs/interfaces/Object3DHelperState.html +1 -1
- package/docs/interfaces/OpenParameter.html +2 -2
- package/docs/interfaces/PaintBrushAction.html +7 -7
- package/docs/interfaces/PaintBrushConfigs.html +1 -1
- package/docs/interfaces/PaintBrushState.html +1 -1
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +2 -2
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginState.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
- package/docs/interfaces/Point.html +1 -1
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/Room.html +1 -1
- package/docs/interfaces/RoomInfo.html +1 -1
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +5 -5
- package/docs/interfaces/TagConfig.html +3 -3
- package/docs/interfaces/Tags.html +3 -3
- package/docs/modules.html +21 -21
- package/libs/PanoTagPlugin/Assets/Icon.d.ts +2 -1
- package/libs/PanoTagPlugin/Assets/Icon.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/Media.js +558 -548
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +107 -57
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +85 -79
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +65 -69
- package/libs/PanoTagPlugin/Components/PointTag.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +42 -42
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +91 -93
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +54 -58
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +43 -40
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +56 -56
- package/libs/PanoTagPlugin/Components/Tag/index.js +1 -1
- package/libs/PanoTagPlugin/Components/TagWrapper.js +1 -1
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
- package/libs/PanoTagPlugin/controller/TagComputer.js +1 -1
- package/libs/PanoTagPlugin/controller/index.js +24 -30
- package/libs/PanoTagPlugin/index.js +2 -2
- package/libs/PanoTagPlugin/tag.config.js +1 -2
- package/libs/PanoTagPlugin/typings/tag.d.ts +1 -1
- package/libs/PanoTagPlugin/utils/doUtil.d.ts +1 -0
- package/libs/PanoTagPlugin/utils/doUtil.js +12 -0
- package/libs/{TagComputer.5bd7014b.js → TagComputer.0920083a.js} +108 -90
- package/libs/index.js +2 -2
- package/package.json +1 -2
- package/dist/index.cjs.js +0 -556
- package/dist/index.umd.js +0 -556
- package/libs/PanoTagPlugin/utils/nullishCoalescing.d.ts +0 -2
- package/libs/PanoTagPlugin/utils/nullishCoalescing.js +0 -7
|
@@ -1,88 +1,91 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
import
|
|
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
|
|
11
|
-
|
|
9
|
+
function S(o) {
|
|
10
|
+
h(o, "svelte-10cw0el", ".media-wrapper.svelte-10cw0el{position:absolute;width:100%;height:100%}");
|
|
12
11
|
}
|
|
13
|
-
function
|
|
14
|
-
let n,
|
|
15
|
-
return
|
|
12
|
+
function c(o) {
|
|
13
|
+
let n, a, t;
|
|
14
|
+
return a = new P({
|
|
16
15
|
props: {
|
|
17
|
-
unfolded:
|
|
18
|
-
mediaData:
|
|
19
|
-
objectFit:
|
|
20
|
-
enableCarousel:
|
|
21
|
-
autoplayConfig:
|
|
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 =
|
|
28
|
+
n = k("div"), D(a.$$.fragment), v(n, "class", "media-wrapper svelte-10cw0el");
|
|
28
29
|
},
|
|
29
30
|
m(e, i) {
|
|
30
|
-
|
|
31
|
+
_(e, n, i), F(a, n, null), t = !0;
|
|
31
32
|
},
|
|
32
33
|
p(e, i) {
|
|
33
|
-
const
|
|
34
|
-
i & 32 && (
|
|
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 || (
|
|
38
|
+
t || (f(a.$$.fragment, e), t = !0);
|
|
38
39
|
},
|
|
39
40
|
o(e) {
|
|
40
|
-
|
|
41
|
+
d(a.$$.fragment, e), t = !1;
|
|
41
42
|
},
|
|
42
43
|
d(e) {
|
|
43
|
-
e &&
|
|
44
|
+
e && g(n), M(a);
|
|
44
45
|
}
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
|
-
function
|
|
48
|
-
let n,
|
|
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 =
|
|
52
|
+
t && t.c(), n = w();
|
|
52
53
|
},
|
|
53
54
|
m(e, i) {
|
|
54
|
-
t && t.m(e, i),
|
|
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 &&
|
|
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
|
-
}),
|
|
60
|
+
}), j());
|
|
60
61
|
},
|
|
61
62
|
i(e) {
|
|
62
|
-
|
|
63
|
+
a || (f(t), a = !0);
|
|
63
64
|
},
|
|
64
65
|
o(e) {
|
|
65
|
-
|
|
66
|
+
d(t), a = !1;
|
|
66
67
|
},
|
|
67
68
|
d(e) {
|
|
68
|
-
t && t.d(e), e &&
|
|
69
|
+
t && t.d(e), e && g(n);
|
|
69
70
|
}
|
|
70
71
|
};
|
|
71
72
|
}
|
|
72
|
-
function
|
|
73
|
-
let t, e, i,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
-
})
|
|
81
|
-
}, [r, i,
|
|
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
|
|
86
|
+
class K extends b {
|
|
84
87
|
constructor(n) {
|
|
85
|
-
super(),
|
|
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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
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
|
-
|
|
17
|
-
|
|
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
|
|
20
|
-
var
|
|
21
|
-
let s, o,
|
|
22
|
-
return s = new
|
|
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
|
|
31
|
+
}), n = new F({
|
|
32
32
|
props: {
|
|
33
33
|
unfolded: i[2],
|
|
34
34
|
duration: 1e3,
|
|
35
|
-
outDelay: i[5] + 40 * Math.min(
|
|
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
|
|
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
|
-
|
|
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(
|
|
48
|
-
|
|
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(
|
|
51
|
-
var
|
|
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
|
-
|
|
56
|
-
const
|
|
57
|
-
|
|
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(
|
|
60
|
-
m || (p(s.$$.fragment,
|
|
59
|
+
i(t) {
|
|
60
|
+
m || (p(s.$$.fragment, t), p(n.$$.fragment, t), p(a.$$.fragment, t), m = !0);
|
|
61
61
|
},
|
|
62
|
-
o(
|
|
63
|
-
|
|
62
|
+
o(t) {
|
|
63
|
+
g(s.$$.fragment, t), g(n.$$.fragment, t), g(a.$$.fragment, t), m = !1;
|
|
64
64
|
},
|
|
65
|
-
d(
|
|
66
|
-
|
|
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
|
|
71
|
-
let s, o,
|
|
70
|
+
function P(i) {
|
|
71
|
+
let s, o, e = i[0].state && q(i);
|
|
72
72
|
return {
|
|
73
73
|
c() {
|
|
74
|
-
|
|
74
|
+
e && e.c(), s = C();
|
|
75
75
|
},
|
|
76
76
|
m(n, f) {
|
|
77
|
-
|
|
77
|
+
e && e.m(n, f), h(n, s, f), o = !0;
|
|
78
78
|
},
|
|
79
79
|
p(n, [f]) {
|
|
80
|
-
n[0].state ?
|
|
81
|
-
|
|
82
|
-
}),
|
|
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(
|
|
85
|
+
o || (p(e), o = !0);
|
|
86
86
|
},
|
|
87
87
|
o(n) {
|
|
88
|
-
|
|
88
|
+
g(e), o = !1;
|
|
89
89
|
},
|
|
90
90
|
d(n) {
|
|
91
|
-
|
|
91
|
+
e && e.d(n), n && c(s);
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
let
|
|
97
|
-
var
|
|
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
|
|
99
|
+
function b() {
|
|
100
100
|
o(1, m = !m);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function w() {
|
|
103
103
|
d = this.clientWidth, o(3, d);
|
|
104
104
|
}
|
|
105
|
-
return i.$$set = (
|
|
106
|
-
"tag" in
|
|
105
|
+
return i.$$set = (_) => {
|
|
106
|
+
"tag" in _ && o(0, a = _.tag);
|
|
107
107
|
}, i.$$.update = () => {
|
|
108
|
-
i.$$.dirty & 129 && o(2,
|
|
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
|
-
|
|
117
|
+
e,
|
|
118
118
|
d,
|
|
119
119
|
u,
|
|
120
120
|
f,
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
b,
|
|
122
|
+
r,
|
|
123
123
|
n,
|
|
124
|
-
|
|
124
|
+
w
|
|
125
125
|
];
|
|
126
126
|
}
|
|
127
|
-
class
|
|
127
|
+
class de extends R {
|
|
128
128
|
constructor(s) {
|
|
129
|
-
super(),
|
|
129
|
+
super(), W(this, s, Q, P, j, { tag: 0 }, O);
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
export {
|
|
133
|
-
|
|
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/
|
|
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/
|
|
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,21 +1,21 @@
|
|
|
1
1
|
var T = Object.defineProperty;
|
|
2
|
-
var C = (
|
|
3
|
-
var a = (
|
|
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.
|
|
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
|
|
9
|
+
import R from "../Components/Tag/index.js";
|
|
10
10
|
import { arrayPositionToVector3 as p } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
11
|
-
import { addDebugPoints as
|
|
11
|
+
import { addDebugPoints as w } from "../utils/addDebugPoints.js";
|
|
12
12
|
import { planeNormal as E } from "../utils/planeNormal.js";
|
|
13
|
-
import { actionAfterFiveModelLoad as
|
|
14
|
-
import { normalPositionToPositions as
|
|
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
|
|
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.
|
|
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 &&
|
|
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:
|
|
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),
|
|
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
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
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 =
|
|
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 :
|
|
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
|
|
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.
|
|
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/
|
|
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";
|
|
@@ -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
|
+
};
|