@realsee/dnalogel 3.74.1 → 3.74.3
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 +9 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.js +12 -5
- package/dist/index.umd.js +18 -18
- package/libs/PanoTagPlugin/Components/TagContainer.js +107 -102
- package/libs/Sculpt/Meshes/Point.js +3 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as P, init as Z, safe_not_equal as j, append_styles as A, empty as q, insert as
|
|
1
|
+
import { SvelteComponent as P, init as Z, safe_not_equal as j, append_styles as A, empty as q, insert as g, transition_in as d, transition_out as c, check_outros as E, detach as b, setContext as z, onMount as B, element as D, attr as h, toggle_class as C, set_style as _, group_outros as N, update_keyed_each as F, outro_and_destroy_block as G, add_render_callback as H, create_in_transition as J, create_component as K, mount_component as L, destroy_component as Q, binding_callbacks as R } from "../../vendor/svelte/internal/index.js";
|
|
2
2
|
import U from "./TagItem.js";
|
|
3
3
|
import { fade as V } from "../../vendor/svelte/transition/index.js";
|
|
4
4
|
import { getOrCreatePopoverContainer as W } from "../utils/popoverContainer.js";
|
|
@@ -190,25 +190,25 @@ import "./Common/AudioPlayer.js";
|
|
|
190
190
|
import "./Common/TagPopover/TagPopoverToolBar.js";
|
|
191
191
|
import "./Common/TagPopover/ArrowRightIcon.js";
|
|
192
192
|
import "./Common/TagPopover/ShareIcon.js";
|
|
193
|
-
function X(
|
|
194
|
-
A(
|
|
193
|
+
function X(m) {
|
|
194
|
+
A(m, "svelte-9ehqs9", ".tag--container.svelte-9ehqs9{box-sizing:border-box;position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;opacity:1;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform:translate3d(0, 0, 0);transition:opacity 0.2s linear;overflow:hidden}.tag--container.hide.svelte-9ehqs9{opacity:0 !important;pointer-events:none}.tag--container.hide.svelte-9ehqs9 *{pointer-events:none !important}");
|
|
195
195
|
}
|
|
196
|
-
function w(
|
|
197
|
-
const i =
|
|
196
|
+
function w(m, t, o) {
|
|
197
|
+
const i = m.slice();
|
|
198
198
|
return i[12] = t[o], i;
|
|
199
199
|
}
|
|
200
|
-
function T(
|
|
201
|
-
let t, o = [], i = /* @__PURE__ */ new Map(),
|
|
200
|
+
function T(m) {
|
|
201
|
+
let t, o = [], i = /* @__PURE__ */ new Map(), p, n, a, s = (
|
|
202
202
|
/*tags*/
|
|
203
|
-
|
|
203
|
+
m[0]
|
|
204
204
|
);
|
|
205
205
|
const u = (e) => (
|
|
206
206
|
/*tag*/
|
|
207
207
|
e[12].id
|
|
208
208
|
);
|
|
209
|
-
for (let e = 0; e <
|
|
210
|
-
let r = w(
|
|
211
|
-
i.set(
|
|
209
|
+
for (let e = 0; e < s.length; e += 1) {
|
|
210
|
+
let r = w(m, s, e), f = u(r);
|
|
211
|
+
i.set(f, o[e] = I(f, r));
|
|
212
212
|
}
|
|
213
213
|
return {
|
|
214
214
|
c() {
|
|
@@ -216,65 +216,70 @@ function T(n) {
|
|
|
216
216
|
t = D("div");
|
|
217
217
|
for (let r = 0; r < o.length; r += 1)
|
|
218
218
|
o[r].c();
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
219
|
+
h(t, "class", "tag--container svelte-9ehqs9"), h(t, "data-infive", p = !/*state*/
|
|
220
|
+
m[4].visible || !/*temporaryState*/
|
|
221
|
+
m[5].visible ? "1" : "0"), C(t, "hide", !/*state*/
|
|
222
|
+
m[4].visible || !/*temporaryState*/
|
|
223
|
+
m[5].visible), _(
|
|
224
224
|
t,
|
|
225
225
|
"z-index",
|
|
226
226
|
/*zIndex*/
|
|
227
|
-
(e =
|
|
228
|
-
)
|
|
227
|
+
(e = m[6]) != null ? e : ""
|
|
228
|
+
), _(t, "opacity", !/*state*/
|
|
229
|
+
m[4].visible || !/*temporaryState*/
|
|
230
|
+
m[5].visible ? null : 1);
|
|
229
231
|
},
|
|
230
232
|
m(e, r) {
|
|
231
|
-
|
|
232
|
-
for (let
|
|
233
|
-
o[
|
|
234
|
-
|
|
233
|
+
g(e, t, r);
|
|
234
|
+
for (let f = 0; f < o.length; f += 1)
|
|
235
|
+
o[f] && o[f].m(t, null);
|
|
236
|
+
m[10](t), a = !0;
|
|
235
237
|
},
|
|
236
238
|
p(e, r) {
|
|
237
|
-
var
|
|
239
|
+
var f;
|
|
238
240
|
r & /*state, temporaryState, tags, mediaStore, rendererMap, contentTypeMap, wrapperElement, popoverContainerEl*/
|
|
239
|
-
447 && (
|
|
240
|
-
e[0], N(), o = F(o, r, u, 1, e,
|
|
241
|
-
48 &&
|
|
241
|
+
447 && (s = /*tags*/
|
|
242
|
+
e[0], N(), o = F(o, r, u, 1, e, s, i, t, G, I, null, w), E()), (!a || r & /*state, temporaryState*/
|
|
243
|
+
48 && p !== (p = !/*state*/
|
|
242
244
|
e[4].visible || !/*temporaryState*/
|
|
243
|
-
e[5].visible ? "1" : "0")) &&
|
|
244
|
-
48) &&
|
|
245
|
+
e[5].visible ? "1" : "0")) && h(t, "data-infive", p), (!a || r & /*state, temporaryState*/
|
|
246
|
+
48) && C(t, "hide", !/*state*/
|
|
245
247
|
e[4].visible || !/*temporaryState*/
|
|
246
248
|
e[5].visible), r & /*zIndex*/
|
|
247
|
-
64 &&
|
|
249
|
+
64 && _(
|
|
248
250
|
t,
|
|
249
251
|
"z-index",
|
|
250
252
|
/*zIndex*/
|
|
251
|
-
(
|
|
252
|
-
)
|
|
253
|
+
(f = e[6]) != null ? f : ""
|
|
254
|
+
), r & /*state, temporaryState*/
|
|
255
|
+
48 && _(t, "opacity", !/*state*/
|
|
256
|
+
e[4].visible || !/*temporaryState*/
|
|
257
|
+
e[5].visible ? null : 1);
|
|
253
258
|
},
|
|
254
259
|
i(e) {
|
|
255
|
-
if (!
|
|
256
|
-
for (let r = 0; r <
|
|
260
|
+
if (!a) {
|
|
261
|
+
for (let r = 0; r < s.length; r += 1)
|
|
257
262
|
d(o[r]);
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
}),
|
|
263
|
+
n || H(() => {
|
|
264
|
+
n = J(t, V, {}), n.start();
|
|
265
|
+
}), a = !0;
|
|
261
266
|
}
|
|
262
267
|
},
|
|
263
268
|
o(e) {
|
|
264
269
|
for (let r = 0; r < o.length; r += 1)
|
|
265
|
-
|
|
266
|
-
|
|
270
|
+
c(o[r]);
|
|
271
|
+
a = !1;
|
|
267
272
|
},
|
|
268
273
|
d(e) {
|
|
269
|
-
e &&
|
|
274
|
+
e && b(t);
|
|
270
275
|
for (let r = 0; r < o.length; r += 1)
|
|
271
276
|
o[r].d();
|
|
272
|
-
|
|
277
|
+
m[10](null);
|
|
273
278
|
}
|
|
274
279
|
};
|
|
275
280
|
}
|
|
276
|
-
function I(
|
|
277
|
-
let o, i,
|
|
281
|
+
function I(m, t) {
|
|
282
|
+
let o, i, p;
|
|
278
283
|
return i = new U({
|
|
279
284
|
props: {
|
|
280
285
|
state: (
|
|
@@ -311,103 +316,103 @@ function I(n, t) {
|
|
|
311
316
|
)
|
|
312
317
|
}
|
|
313
318
|
}), {
|
|
314
|
-
key:
|
|
319
|
+
key: m,
|
|
315
320
|
first: null,
|
|
316
321
|
c() {
|
|
317
322
|
o = q(), K(i.$$.fragment), this.first = o;
|
|
318
323
|
},
|
|
319
|
-
m(
|
|
320
|
-
|
|
324
|
+
m(n, a) {
|
|
325
|
+
g(n, o, a), L(i, n, a), p = !0;
|
|
321
326
|
},
|
|
322
|
-
p(
|
|
323
|
-
t =
|
|
324
|
-
const
|
|
325
|
-
|
|
326
|
-
16 && (
|
|
327
|
-
t[4]),
|
|
328
|
-
32 && (
|
|
329
|
-
t[5]),
|
|
330
|
-
1 && (
|
|
331
|
-
t[12]),
|
|
332
|
-
2 && (
|
|
333
|
-
t[1]),
|
|
334
|
-
4 && (
|
|
335
|
-
t[2]),
|
|
336
|
-
8 && (
|
|
337
|
-
t[3]),
|
|
338
|
-
128 && (
|
|
339
|
-
t[7]),
|
|
340
|
-
256 && (
|
|
341
|
-
t[8]), i.$set(
|
|
327
|
+
p(n, a) {
|
|
328
|
+
t = n;
|
|
329
|
+
const s = {};
|
|
330
|
+
a & /*state*/
|
|
331
|
+
16 && (s.state = /*state*/
|
|
332
|
+
t[4]), a & /*temporaryState*/
|
|
333
|
+
32 && (s.temporaryState = /*temporaryState*/
|
|
334
|
+
t[5]), a & /*tags*/
|
|
335
|
+
1 && (s.tag = /*tag*/
|
|
336
|
+
t[12]), a & /*mediaStore*/
|
|
337
|
+
2 && (s.mediaStore = /*mediaStore*/
|
|
338
|
+
t[1]), a & /*rendererMap*/
|
|
339
|
+
4 && (s.rendererMap = /*rendererMap*/
|
|
340
|
+
t[2]), a & /*contentTypeMap*/
|
|
341
|
+
8 && (s.contentTypeMap = /*contentTypeMap*/
|
|
342
|
+
t[3]), a & /*wrapperElement*/
|
|
343
|
+
128 && (s.wrapperElement = /*wrapperElement*/
|
|
344
|
+
t[7]), a & /*popoverContainerEl*/
|
|
345
|
+
256 && (s.popoverContainer = /*popoverContainerEl*/
|
|
346
|
+
t[8]), i.$set(s);
|
|
342
347
|
},
|
|
343
|
-
i(
|
|
344
|
-
|
|
348
|
+
i(n) {
|
|
349
|
+
p || (d(i.$$.fragment, n), p = !0);
|
|
345
350
|
},
|
|
346
|
-
o(
|
|
347
|
-
|
|
351
|
+
o(n) {
|
|
352
|
+
c(i.$$.fragment, n), p = !1;
|
|
348
353
|
},
|
|
349
|
-
d(
|
|
350
|
-
|
|
354
|
+
d(n) {
|
|
355
|
+
n && b(o), Q(i, n);
|
|
351
356
|
}
|
|
352
357
|
};
|
|
353
358
|
}
|
|
354
|
-
function Y(
|
|
359
|
+
function Y(m) {
|
|
355
360
|
let t, o, i = (
|
|
356
361
|
/*state*/
|
|
357
|
-
|
|
362
|
+
m[4].enabled && T(m)
|
|
358
363
|
);
|
|
359
364
|
return {
|
|
360
365
|
c() {
|
|
361
366
|
i && i.c(), t = q();
|
|
362
367
|
},
|
|
363
|
-
m(
|
|
364
|
-
i && i.m(
|
|
368
|
+
m(p, n) {
|
|
369
|
+
i && i.m(p, n), g(p, t, n), o = !0;
|
|
365
370
|
},
|
|
366
|
-
p(
|
|
371
|
+
p(p, [n]) {
|
|
367
372
|
/*state*/
|
|
368
|
-
|
|
369
|
-
16 && d(i, 1)) : (i = T(
|
|
373
|
+
p[4].enabled ? i ? (i.p(p, n), n & /*state*/
|
|
374
|
+
16 && d(i, 1)) : (i = T(p), i.c(), d(i, 1), i.m(t.parentNode, t)) : i && (N(), c(i, 1, 1, () => {
|
|
370
375
|
i = null;
|
|
371
376
|
}), E());
|
|
372
377
|
},
|
|
373
|
-
i(
|
|
378
|
+
i(p) {
|
|
374
379
|
o || (d(i), o = !0);
|
|
375
380
|
},
|
|
376
|
-
o(
|
|
377
|
-
|
|
381
|
+
o(p) {
|
|
382
|
+
c(i), o = !1;
|
|
378
383
|
},
|
|
379
|
-
d(
|
|
380
|
-
i && i.d(
|
|
384
|
+
d(p) {
|
|
385
|
+
i && i.d(p), p && b(t);
|
|
381
386
|
}
|
|
382
387
|
};
|
|
383
388
|
}
|
|
384
|
-
function x(
|
|
385
|
-
let { tags: i = [] } = t, { hooks:
|
|
386
|
-
|
|
387
|
-
o(8,
|
|
389
|
+
function x(m, t, o) {
|
|
390
|
+
let { tags: i = [] } = t, { hooks: p } = t, { mediaStore: n } = t, { rendererMap: a } = t, { contentTypeMap: s } = t, { state: u } = t, { temporaryState: e } = t, { zIndex: r = void 0 } = t, f = null, v = null, k = 2e3;
|
|
391
|
+
z("hooks", p), z("mediaStore", n), B(() => {
|
|
392
|
+
o(8, v = W(k));
|
|
388
393
|
});
|
|
389
|
-
function O(
|
|
390
|
-
R[
|
|
391
|
-
|
|
394
|
+
function O(l) {
|
|
395
|
+
R[l ? "unshift" : "push"](() => {
|
|
396
|
+
f = l, o(7, f);
|
|
392
397
|
});
|
|
393
398
|
}
|
|
394
|
-
return
|
|
395
|
-
"tags" in
|
|
396
|
-
},
|
|
397
|
-
var
|
|
398
|
-
|
|
399
|
-
1 && i && i.length > 0 && (
|
|
399
|
+
return m.$$set = (l) => {
|
|
400
|
+
"tags" in l && o(0, i = l.tags), "hooks" in l && o(9, p = l.hooks), "mediaStore" in l && o(1, n = l.mediaStore), "rendererMap" in l && o(2, a = l.rendererMap), "contentTypeMap" in l && o(3, s = l.contentTypeMap), "state" in l && o(4, u = l.state), "temporaryState" in l && o(5, e = l.temporaryState), "zIndex" in l && o(6, r = l.zIndex);
|
|
401
|
+
}, m.$$.update = () => {
|
|
402
|
+
var l, y, M, S;
|
|
403
|
+
m.$$.dirty & /*tags*/
|
|
404
|
+
1 && i && i.length > 0 && (k = (S = (M = (y = (l = i[0]) == null ? void 0 : l.config) == null ? void 0 : y.popoverConfig) == null ? void 0 : M.zIndex) != null ? S : 2e6);
|
|
400
405
|
}, [
|
|
401
406
|
i,
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
407
|
+
n,
|
|
408
|
+
a,
|
|
409
|
+
s,
|
|
405
410
|
u,
|
|
406
411
|
e,
|
|
407
412
|
r,
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
413
|
+
f,
|
|
414
|
+
v,
|
|
415
|
+
p,
|
|
411
416
|
O
|
|
412
417
|
];
|
|
413
418
|
}
|
|
@@ -134,7 +134,9 @@ class st extends T {
|
|
|
134
134
|
t && !this.dom && (this.dom = new B(this.five), this.dom.intersectCheck = !1, this.dom.simulate3D = !0, this.dom.container.style.display = this.visible ? "block" : "none");
|
|
135
135
|
const o = (h) => {
|
|
136
136
|
this.dom && this.dom.__text !== h && (this.dom.__text = h, h instanceof HTMLElement ? (this.dom.container.innerHTML = "", this.dom.container.appendChild(h)) : h ? this.dom.container.innerHTML = H(h, {
|
|
137
|
-
style: ""
|
|
137
|
+
style: "",
|
|
138
|
+
offsetY: -20
|
|
139
|
+
// 移动label到点的上方,否则会遮挡鼠标选点
|
|
138
140
|
}) : this.dom.container.innerHTML = "");
|
|
139
141
|
};
|
|
140
142
|
t ? (o(t), this.dom.setPosition(this.position.clone())) : o(null);
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.74.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.74.3",
|
|
4
4
|
[
|
|
5
5
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
6
6
|
"background-repeat: no-repeat",
|