@realsee/dnalogel 3.42.0 → 3.43.0
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/CHANGELOG.md +4 -1
- package/dist/index.cjs.js +26 -26
- package/dist/index.js +1451 -1442
- package/dist/index.umd.js +32 -32
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +79 -78
- package/libs/PanoTagPlugin/Components/Tag/index.js +128 -128
- package/libs/PanoTagPlugin/Components/TagItem.js +67 -67
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +77 -68
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { SvelteComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { Image_Default_Point as
|
|
1
|
+
import { SvelteComponent as j, init as q, safe_not_equal as O, append_styles as U, element as h, space as _, create_component as S, attr as z, set_style as y, toggle_class as b, insert as W, append as m, mount_component as A, listen as X, transition_in as D, transition_out as I, detach as B, destroy_component as R, getContext as E, bubble as G } from "../../../vendor/svelte/internal/index.js";
|
|
2
|
+
import H from "./Shadow.js";
|
|
3
|
+
import J from "./Icon/Icon.js";
|
|
4
|
+
import { Image_Default_Point as K } from "../../Assets/Icon.js";
|
|
5
|
+
import { isModelLike as N } from "../../../shared-utils/five/mode.js";
|
|
5
6
|
import "three";
|
|
6
7
|
import "hammerjs";
|
|
7
8
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -28,152 +29,152 @@ import "../../../shared-utils/three/centerPoint.js";
|
|
|
28
29
|
import "../../../shared-utils/three/getObjectVisible.js";
|
|
29
30
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
30
31
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
31
|
-
function
|
|
32
|
-
|
|
32
|
+
function Q(e) {
|
|
33
|
+
U(e, "svelte-7aiuwz", '@charset "UTF-8";.tag-point-click-helper.svelte-7aiuwz.svelte-7aiuwz{position:absolute;pointer-events:auto;cursor:pointer;width:calc(100% + 0.75rem);height:calc(100% + 0.75rem);left:50%;top:50%;transform:translate(-50%, -50%)}.tag-point-wrapper.svelte-7aiuwz.svelte-7aiuwz{pointer-events:none;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.tag-folded-point.svelte-7aiuwz.svelte-7aiuwz,.tag-unfolded-point.svelte-7aiuwz.svelte-7aiuwz{transition:all 0.5s}.tag-point-wrapper.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;border-radius:50%}.tag-point-wrapper.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.3125rem;height:0.3125rem;border-radius:50%;background-color:white}.tag-point-wrapper.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz:before{content:"";position:absolute;width:0.875rem;height:0.875rem;border-radius:50%;background-color:rgba(0, 0, 0, 0.2)}.tag-point-wrapper.folded.svelte-7aiuwz .tag-folded-point.svelte-7aiuwz{opacity:1;scale:1}.tag-point-wrapper.folded.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz{opacity:0;scale:1}.tag-point-wrapper.unfolded.svelte-7aiuwz .tag-folded-point.svelte-7aiuwz{opacity:0;scale:0.2}.tag-point-wrapper.unfolded.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz{opacity:1;scale:1}');
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
-
let
|
|
36
|
-
return p = new
|
|
35
|
+
function V(e) {
|
|
36
|
+
let o, a, u, p, c, d, w, t, r, l, g, v;
|
|
37
|
+
return p = new H({
|
|
37
38
|
props: {
|
|
38
39
|
center: !0,
|
|
39
40
|
blurRadius: 15,
|
|
40
41
|
spreadRadius: 5,
|
|
41
42
|
opacity: 0.3
|
|
42
43
|
}
|
|
43
|
-
}),
|
|
44
|
+
}), r = new J({
|
|
44
45
|
props: {
|
|
45
46
|
icon: (
|
|
46
47
|
/*url*/
|
|
47
|
-
|
|
48
|
+
e[2]
|
|
48
49
|
),
|
|
49
50
|
width: (
|
|
50
51
|
/*width*/
|
|
51
|
-
|
|
52
|
+
e[1]
|
|
52
53
|
)
|
|
53
54
|
}
|
|
54
|
-
}),
|
|
55
|
+
}), r.$on(
|
|
55
56
|
"iconLoaded",
|
|
56
57
|
/*iconLoaded_handler*/
|
|
57
|
-
|
|
58
|
+
e[7]
|
|
58
59
|
), {
|
|
59
60
|
c() {
|
|
60
|
-
|
|
61
|
-
|
|
61
|
+
o = h("div"), a = h("div"), u = _(), S(p.$$.fragment), c = _(), d = h("div"), w = _(), t = h("div"), S(r.$$.fragment), z(a, "class", "tag-point-click-helper svelte-7aiuwz"), z(d, "class", "tag-unfolded-point svelte-7aiuwz"), y(
|
|
62
|
+
d,
|
|
62
63
|
"transition-delay",
|
|
63
64
|
/*folded*/
|
|
64
|
-
(
|
|
65
|
+
(e[3] ? (
|
|
65
66
|
/*foldDelay*/
|
|
66
|
-
|
|
67
|
+
e[5]
|
|
67
68
|
) : 0) + "ms"
|
|
68
|
-
), z(
|
|
69
|
-
|
|
69
|
+
), z(t, "class", "tag-folded-point svelte-7aiuwz"), y(
|
|
70
|
+
t,
|
|
70
71
|
"transition-delay",
|
|
71
72
|
/*folded*/
|
|
72
|
-
(
|
|
73
|
+
(e[3] ? (
|
|
73
74
|
/*foldDelay*/
|
|
74
|
-
|
|
75
|
+
e[5]
|
|
75
76
|
) : 0) + "ms"
|
|
76
|
-
), z(
|
|
77
|
-
|
|
77
|
+
), z(o, "class", "tag-point-wrapper svelte-7aiuwz"), b(
|
|
78
|
+
o,
|
|
78
79
|
"unfolded",
|
|
79
80
|
/*unfolded*/
|
|
80
|
-
|
|
81
|
+
e[0]
|
|
81
82
|
), b(
|
|
82
|
-
|
|
83
|
+
o,
|
|
83
84
|
"folded",
|
|
84
85
|
/*folded*/
|
|
85
|
-
|
|
86
|
+
e[3]
|
|
86
87
|
);
|
|
87
88
|
},
|
|
88
|
-
m(
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
m(i, s) {
|
|
90
|
+
W(i, o, s), m(o, a), m(o, u), A(p, o, null), m(o, c), m(o, d), m(o, w), m(o, t), A(r, t, null), l = !0, g || (v = X(
|
|
91
|
+
a,
|
|
91
92
|
"click",
|
|
92
93
|
/*handlePointClick*/
|
|
93
|
-
|
|
94
|
+
e[4]
|
|
94
95
|
), g = !0);
|
|
95
96
|
},
|
|
96
|
-
p(
|
|
97
|
+
p(i, [s]) {
|
|
97
98
|
s & /*folded*/
|
|
98
99
|
8 && y(
|
|
99
|
-
|
|
100
|
+
d,
|
|
100
101
|
"transition-delay",
|
|
101
102
|
/*folded*/
|
|
102
|
-
(
|
|
103
|
+
(i[3] ? (
|
|
103
104
|
/*foldDelay*/
|
|
104
|
-
|
|
105
|
+
i[5]
|
|
105
106
|
) : 0) + "ms"
|
|
106
107
|
);
|
|
107
108
|
const n = {};
|
|
108
109
|
s & /*url*/
|
|
109
110
|
4 && (n.icon = /*url*/
|
|
110
|
-
|
|
111
|
+
i[2]), s & /*width*/
|
|
111
112
|
2 && (n.width = /*width*/
|
|
112
|
-
|
|
113
|
+
i[1]), r.$set(n), s & /*folded*/
|
|
113
114
|
8 && y(
|
|
114
|
-
|
|
115
|
+
t,
|
|
115
116
|
"transition-delay",
|
|
116
117
|
/*folded*/
|
|
117
|
-
(
|
|
118
|
+
(i[3] ? (
|
|
118
119
|
/*foldDelay*/
|
|
119
|
-
|
|
120
|
+
i[5]
|
|
120
121
|
) : 0) + "ms"
|
|
121
122
|
), (!l || s & /*unfolded*/
|
|
122
123
|
1) && b(
|
|
123
|
-
|
|
124
|
+
o,
|
|
124
125
|
"unfolded",
|
|
125
126
|
/*unfolded*/
|
|
126
|
-
|
|
127
|
+
i[0]
|
|
127
128
|
), (!l || s & /*folded*/
|
|
128
129
|
8) && b(
|
|
129
|
-
|
|
130
|
+
o,
|
|
130
131
|
"folded",
|
|
131
132
|
/*folded*/
|
|
132
|
-
|
|
133
|
+
i[3]
|
|
133
134
|
);
|
|
134
135
|
},
|
|
135
|
-
i(
|
|
136
|
-
l || (
|
|
136
|
+
i(i) {
|
|
137
|
+
l || (D(p.$$.fragment, i), D(r.$$.fragment, i), l = !0);
|
|
137
138
|
},
|
|
138
|
-
o(
|
|
139
|
-
|
|
139
|
+
o(i) {
|
|
140
|
+
I(p.$$.fragment, i), I(r.$$.fragment, i), l = !1;
|
|
140
141
|
},
|
|
141
|
-
d(
|
|
142
|
-
|
|
142
|
+
d(i) {
|
|
143
|
+
i && B(o), R(p), R(r), g = !1, v();
|
|
143
144
|
}
|
|
144
145
|
};
|
|
145
146
|
}
|
|
146
|
-
function
|
|
147
|
-
let
|
|
148
|
-
const w =
|
|
149
|
-
let { tag:
|
|
147
|
+
function Y(e, o, a) {
|
|
148
|
+
let u, p, c, d;
|
|
149
|
+
const w = E("hooks");
|
|
150
|
+
let { tag: t } = o, r, l = !1;
|
|
150
151
|
const g = () => {
|
|
151
|
-
|
|
152
|
+
r !== void 0 && clearTimeout(r), l = !0, r = setTimeout(
|
|
152
153
|
() => {
|
|
153
154
|
l = !1;
|
|
154
155
|
},
|
|
155
156
|
800
|
|
156
157
|
);
|
|
157
158
|
}, v = (n) => {
|
|
158
|
-
l || w.emit("click", { event: n, target: "TagPoint", tag:
|
|
159
|
-
},
|
|
159
|
+
l || (console.log("handleClick", t.entryFromModel), t.entryFromModel && N(t.five.state.mode) ? t.find({ targetMode: "Panorama" }).then(() => t.unfoldAndFoldOthers()) : w.emit("click", { event: n, target: "TagPoint", tag: t }));
|
|
160
|
+
}, i = (() => t.contentType === "Text" && t.data.appearance === "plane" ? 500 : 800)();
|
|
160
161
|
function s(n) {
|
|
161
|
-
|
|
162
|
+
G.call(this, e, n);
|
|
162
163
|
}
|
|
163
|
-
return
|
|
164
|
-
"tag" in n &&
|
|
165
|
-
},
|
|
164
|
+
return e.$$set = (n) => {
|
|
165
|
+
"tag" in n && a(6, t = n.tag);
|
|
166
|
+
}, e.$$.update = () => {
|
|
166
167
|
var n, k, T, L;
|
|
167
|
-
|
|
168
|
-
64 &&
|
|
169
|
-
1 &&
|
|
170
|
-
64 &&
|
|
171
|
-
64 &&
|
|
172
|
-
var
|
|
173
|
-
const
|
|
174
|
-
if (typeof
|
|
175
|
-
return
|
|
176
|
-
const f = (
|
|
168
|
+
e.$$.dirty & /*tag*/
|
|
169
|
+
64 && a(0, u = (n = t.state) == null ? void 0 : n.unfolded), e.$$.dirty & /*unfolded*/
|
|
170
|
+
1 && a(3, p = !u), e.$$.dirty & /*tag*/
|
|
171
|
+
64 && a(2, c = (T = (k = t.style) == null ? void 0 : k.point) != null && T.url ? (L = t.style) == null ? void 0 : L.point : { url: K }), e.$$.dirty & /*tag*/
|
|
172
|
+
64 && a(1, d = (() => {
|
|
173
|
+
var P, C, F, $;
|
|
174
|
+
const M = (C = (P = t.style) == null ? void 0 : P.point) == null ? void 0 : C.width;
|
|
175
|
+
if (typeof M == "number")
|
|
176
|
+
return M;
|
|
177
|
+
const f = ($ = (F = t.style) == null ? void 0 : F.point) == null ? void 0 : $.size;
|
|
177
178
|
if (typeof f == "number")
|
|
178
179
|
return f;
|
|
179
180
|
if (f === "S")
|
|
@@ -186,21 +187,21 @@ function V(t, i, r) {
|
|
|
186
187
|
return 28;
|
|
187
188
|
})());
|
|
188
189
|
}, g(), [
|
|
189
|
-
d,
|
|
190
190
|
u,
|
|
191
|
+
d,
|
|
191
192
|
c,
|
|
192
193
|
p,
|
|
193
194
|
v,
|
|
194
|
-
|
|
195
|
-
|
|
195
|
+
i,
|
|
196
|
+
t,
|
|
196
197
|
s
|
|
197
198
|
];
|
|
198
199
|
}
|
|
199
|
-
class
|
|
200
|
-
constructor(
|
|
201
|
-
super(),
|
|
200
|
+
class Ft extends j {
|
|
201
|
+
constructor(o) {
|
|
202
|
+
super(), q(this, o, Y, V, O, { tag: 6 }, Q);
|
|
202
203
|
}
|
|
203
204
|
}
|
|
204
205
|
export {
|
|
205
|
-
|
|
206
|
+
Ft as default
|
|
206
207
|
};
|