@realsee/dnalogel 3.77.4 → 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.
- package/CHANGELOG.md +20 -11
- package/dist/DigitalPerformancePlugin/controller/index.d.ts +224 -0
- package/dist/DigitalPerformancePlugin/core/DigitalHuman.d.ts +55 -0
- package/dist/DigitalPerformancePlugin/core/DigitalPlayground.d.ts +40 -0
- package/dist/DigitalPerformancePlugin/core/DigitalStateMachine.d.ts +150 -0
- package/dist/DigitalPerformancePlugin/core/Trace.d.ts +9 -0
- package/dist/DigitalPerformancePlugin/index.d.ts +11 -0
- package/dist/DigitalPerformancePlugin/mock.d.ts +76 -0
- package/dist/DigitalPerformancePlugin/typings/index.d.ts +79 -0
- package/dist/PanoTagPlugin/controller/Tag/BaseTag.d.ts +5 -1
- package/dist/PanoTagPlugin/controller/Tag/BoxTag.d.ts +119 -0
- package/dist/PanoTagPlugin/controller/Tag/MaskTag.d.ts +257 -0
- package/dist/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +10 -0
- package/dist/PanoTagPlugin/controller/Tag/PolygonTag.d.ts +112 -0
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +1 -1
- package/dist/PanoTagPlugin/controller/index.d.ts +55 -2
- package/dist/PanoTagPlugin/typings/controller.d.ts +10 -0
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +8 -3
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +50 -1
- package/dist/PanoTagPlugin/utils/sculptDataToBoxPosition.d.ts +6 -0
- package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +6 -0
- package/dist/PanoTagPlugin/utils/tagPosition.d.ts +12 -3
- package/dist/index.cjs.js +188 -92
- package/dist/index.d.ts +1 -0
- package/dist/index.js +17508 -14249
- package/dist/index.umd.js +184 -88
- package/libs/CruisePlugin/Move.js +7 -2
- package/libs/CruisePlugin/Work.js +7 -2
- package/libs/CruisePlugin/index.js +11 -6
- package/libs/DigitalPerformancePlugin/controller/index.d.ts +2 -2
- package/libs/DigitalPerformancePlugin/controller/index.js +164 -173
- package/libs/DigitalPerformancePlugin/core/DigitalHuman.d.ts +16 -6
- package/libs/DigitalPerformancePlugin/core/DigitalHuman.js +128 -102
- package/libs/DigitalPerformancePlugin/core/DigitalPlayground.d.ts +11 -5
- package/libs/DigitalPerformancePlugin/core/DigitalPlayground.js +84 -74
- package/libs/DigitalPerformancePlugin/core/DigitalStateMachine.d.ts +7 -0
- package/libs/DigitalPerformancePlugin/mock.d.ts +6 -0
- package/libs/DigitalPerformancePlugin/mock.js +272 -274
- package/libs/GuideLinePlugin/Controller.js +9 -4
- package/libs/GuideLinePlugin/GuideLineItem.js +7 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +7 -2
- package/libs/GuideLinePlugin/index.js +11 -6
- package/libs/PanoTagPlugin/Components/TagItem.js +122 -122
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.d.ts +5 -1
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +320 -289
- package/libs/PanoTagPlugin/controller/Tag/BoxTag.d.ts +119 -0
- package/libs/PanoTagPlugin/controller/Tag/BoxTag.js +515 -0
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.d.ts +257 -0
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.js +815 -0
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +10 -0
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.js +94 -0
- package/libs/PanoTagPlugin/controller/Tag/PolygonTag.d.ts +112 -0
- package/libs/PanoTagPlugin/controller/Tag/PolygonTag.js +478 -0
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +1 -1
- package/libs/PanoTagPlugin/controller/TagUtil.js +19 -17
- package/libs/PanoTagPlugin/controller/index.d.ts +55 -2
- package/libs/PanoTagPlugin/controller/index.js +261 -148
- package/libs/PanoTagPlugin/index.js +16 -11
- package/libs/PanoTagPlugin/typings/controller.d.ts +10 -0
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +8 -3
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +50 -1
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +27 -13
- package/libs/PanoTagPlugin/utils/index.js +29 -26
- package/libs/PanoTagPlugin/utils/sculptDataToBoxPosition.d.ts +6 -0
- package/libs/PanoTagPlugin/utils/sculptDataToBoxPosition.js +18 -0
- package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +6 -0
- package/libs/PanoTagPlugin/utils/tag/tagCheck.js +26 -14
- package/libs/PanoTagPlugin/utils/tagPosition.d.ts +12 -3
- package/libs/PanoTagPlugin/utils/tagPosition.js +49 -16
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.d.ts +1 -0
- package/libs/index.js +166 -150
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as ve, init as
|
|
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(
|
|
192
|
-
Te(
|
|
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(
|
|
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(
|
|
204
|
-
const
|
|
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(
|
|
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
|
-
|
|
217
|
+
o[23]
|
|
218
218
|
), _(
|
|
219
219
|
e,
|
|
220
220
|
"data-tag-unfolded",
|
|
221
221
|
/*unfolded*/
|
|
222
|
-
|
|
222
|
+
o[8]
|
|
223
223
|
), _(e, "data-content-type", u = /*tag*/
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
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
|
-
|
|
230
|
+
o[0].config.clickable === !1
|
|
231
231
|
), H(
|
|
232
232
|
e,
|
|
233
233
|
"hide",
|
|
234
234
|
/*hide*/
|
|
235
|
-
|
|
235
|
+
o[21]
|
|
236
236
|
), H(
|
|
237
237
|
e,
|
|
238
238
|
"enableZIndex",
|
|
239
239
|
/*zIndex*/
|
|
240
|
-
|
|
241
|
-
),
|
|
240
|
+
o[18]
|
|
241
|
+
), B(
|
|
242
242
|
e,
|
|
243
243
|
"z-index",
|
|
244
244
|
/*zIndex*/
|
|
245
|
-
|
|
246
|
-
),
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
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),
|
|
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) : (
|
|
256
|
+
i = L(f), i === w ? v[i].p(f, s) : (V(), T(v[w], 1, 1, () => {
|
|
257
257
|
v[w] = null;
|
|
258
|
-
}),
|
|
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 ?
|
|
261
|
-
|
|
262
|
-
}),
|
|
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 &&
|
|
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 &&
|
|
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(),
|
|
317
|
+
f && Z(e), v[i].d(), k[r].d(), o[36](null);
|
|
318
318
|
}
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
|
-
function Le(
|
|
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(
|
|
338
|
+
function ze(o) {
|
|
339
339
|
let e, i, a;
|
|
340
340
|
function m(n) {
|
|
341
|
-
|
|
341
|
+
o[34](n);
|
|
342
342
|
}
|
|
343
343
|
let r = {
|
|
344
344
|
tag: (
|
|
345
345
|
/*tag*/
|
|
346
|
-
|
|
346
|
+
o[0]
|
|
347
347
|
),
|
|
348
348
|
handleMouseEnter: (
|
|
349
349
|
/*handleMouseEnter*/
|
|
350
|
-
|
|
350
|
+
o[30]
|
|
351
351
|
),
|
|
352
352
|
handleMouseLeave: (
|
|
353
353
|
/*handleMouseLeave*/
|
|
354
|
-
|
|
354
|
+
o[31]
|
|
355
355
|
),
|
|
356
356
|
handleTagPointClick: (
|
|
357
357
|
/*handleTagPointClick*/
|
|
358
|
-
|
|
358
|
+
o[32]
|
|
359
359
|
)
|
|
360
360
|
};
|
|
361
361
|
return (
|
|
362
362
|
/*tagPointClickHelper*/
|
|
363
|
-
|
|
364
|
-
|
|
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
|
-
|
|
367
|
+
o[27].audioInstanceReady
|
|
368
368
|
), e.$on(
|
|
369
369
|
"audioPlay",
|
|
370
370
|
/*audioEventHandlers*/
|
|
371
|
-
|
|
371
|
+
o[27].audioPlay
|
|
372
372
|
), e.$on(
|
|
373
373
|
"audioPause",
|
|
374
374
|
/*audioEventHandlers*/
|
|
375
|
-
|
|
375
|
+
o[27].audioPause
|
|
376
376
|
), e.$on(
|
|
377
377
|
"audioTimeUpdate",
|
|
378
378
|
/*audioEventHandlers*/
|
|
379
|
-
|
|
379
|
+
o[27].audioTimeUpdate
|
|
380
380
|
), e.$on(
|
|
381
381
|
"audioDuration",
|
|
382
382
|
/*audioEventHandlers*/
|
|
383
|
-
|
|
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
|
-
|
|
406
|
+
o[35](null), x(e, n);
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
409
|
);
|
|
410
410
|
}
|
|
411
|
-
function Ae(
|
|
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(
|
|
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
|
-
|
|
434
|
+
o[1]
|
|
435
435
|
),
|
|
436
436
|
tag: ie(
|
|
437
437
|
/*tag*/
|
|
438
|
-
|
|
438
|
+
o[0]
|
|
439
439
|
),
|
|
440
440
|
hooks: (
|
|
441
441
|
/*hooks*/
|
|
442
|
-
|
|
442
|
+
o[26]
|
|
443
443
|
),
|
|
444
444
|
state: (
|
|
445
445
|
/*state*/
|
|
446
|
-
|
|
446
|
+
o[4]
|
|
447
447
|
),
|
|
448
448
|
temporaryState: (
|
|
449
449
|
/*temporaryState*/
|
|
450
|
-
|
|
450
|
+
o[5]
|
|
451
451
|
),
|
|
452
452
|
rendererMap: (
|
|
453
453
|
/*rendererMap*/
|
|
454
|
-
|
|
454
|
+
o[2]
|
|
455
455
|
),
|
|
456
456
|
contentTypeMap: (
|
|
457
457
|
/*contentTypeMap*/
|
|
458
|
-
|
|
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(
|
|
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
|
-
|
|
504
|
+
o[0]
|
|
505
505
|
),
|
|
506
506
|
config: (
|
|
507
507
|
/*tag*/
|
|
508
|
-
|
|
508
|
+
o[0].config.popoverConfig
|
|
509
509
|
),
|
|
510
510
|
theme: (
|
|
511
511
|
/*tag*/
|
|
512
|
-
(a =
|
|
512
|
+
(a = o[0].config.popoverConfig) == null ? void 0 : a.theme
|
|
513
513
|
),
|
|
514
514
|
wrapperElement: (
|
|
515
515
|
/*wrapperElement*/
|
|
516
|
-
|
|
516
|
+
o[6]
|
|
517
517
|
),
|
|
518
518
|
triggerElement: (
|
|
519
519
|
/*tagPointClickHelper*/
|
|
520
|
-
|
|
520
|
+
o[12]
|
|
521
521
|
),
|
|
522
522
|
popoverContainer: (
|
|
523
523
|
/*popoverContainer*/
|
|
524
|
-
|
|
524
|
+
o[7]
|
|
525
525
|
),
|
|
526
526
|
visible: !0,
|
|
527
527
|
closePopover: (
|
|
528
528
|
/*closePopover*/
|
|
529
|
-
|
|
529
|
+
o[33]
|
|
530
530
|
),
|
|
531
531
|
audioInstance: (
|
|
532
532
|
/*audioInstance*/
|
|
533
|
-
|
|
533
|
+
o[14]
|
|
534
534
|
),
|
|
535
535
|
audioPlaying: (
|
|
536
536
|
/*audioPlaying*/
|
|
537
|
-
|
|
537
|
+
o[15]
|
|
538
538
|
),
|
|
539
539
|
audioCurrentTime: (
|
|
540
540
|
/*audioCurrentTime*/
|
|
541
|
-
|
|
541
|
+
o[16]
|
|
542
542
|
),
|
|
543
543
|
audioDuration: (
|
|
544
544
|
/*audioDuration*/
|
|
545
|
-
|
|
545
|
+
o[17]
|
|
546
546
|
)
|
|
547
547
|
}
|
|
548
548
|
}), e.$on(
|
|
549
549
|
"mouseenter",
|
|
550
550
|
/*handlePopoverMouseEnter*/
|
|
551
|
-
|
|
551
|
+
o[28]
|
|
552
552
|
), e.$on(
|
|
553
553
|
"mouseleave",
|
|
554
554
|
/*handlePopoverMouseLeave*/
|
|
555
|
-
|
|
555
|
+
o[29]
|
|
556
556
|
), e.$on(
|
|
557
557
|
"close",
|
|
558
558
|
/*closePopover*/
|
|
559
|
-
|
|
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(
|
|
603
|
+
function Ze(o) {
|
|
604
604
|
var u;
|
|
605
605
|
let e, i = (
|
|
606
606
|
/*tag*/
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
(
|
|
610
|
-
((u =
|
|
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
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
), n = i && ne(
|
|
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 && (
|
|
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
|
-
}),
|
|
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 && (
|
|
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
|
-
}),
|
|
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(
|
|
654
|
-
let a, m, r, n, u, l, g, d, U, v, L, { tag:
|
|
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,
|
|
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 =
|
|
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,
|
|
693
|
-
if (p.pointerType === "mouse" && (J = !0,
|
|
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 =
|
|
696
|
+
((M = (E = t.currentConfig) == null ? void 0 : E.popoverConfig) == null ? void 0 : M.triggerDelay) > 0 ? y = setTimeout(
|
|
697
697
|
() => {
|
|
698
|
-
q(!0),
|
|
698
|
+
q(!0), t.hooks.emit("hover", { event: p, tag: t }), y = void 0;
|
|
699
699
|
},
|
|
700
|
-
(A = (z =
|
|
701
|
-
) : (q(!0),
|
|
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,
|
|
705
|
-
p.pointerType === "mouse" && (J = !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
|
|
708
|
-
const c =
|
|
709
|
-
|
|
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
|
-
|
|
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
|
-
|
|
727
|
+
t.dom = p, i(0, t);
|
|
728
728
|
});
|
|
729
729
|
}
|
|
730
|
-
return
|
|
731
|
-
"tag" in p && i(0,
|
|
732
|
-
},
|
|
733
|
-
var p, c,
|
|
734
|
-
|
|
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 =
|
|
738
|
-
})()),
|
|
739
|
-
1025 && i(25, m = (() => !(
|
|
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
|
|
743
|
-
})()),
|
|
744
|
-
1 && i(23, n =
|
|
745
|
-
1 && i(9, u =
|
|
746
|
-
1 && i(22, l =
|
|
747
|
-
513 && i(21, g = !((p =
|
|
748
|
-
1 && i(8, d = ((
|
|
749
|
-
512 && i(20, U = (u == null ? void 0 : u.leftPx) + "px"),
|
|
750
|
-
512 && i(19, v = (u == null ? void 0 : u.topPx) + "px"),
|
|
751
|
-
257 && i(18, L = d ? ((E =
|
|
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
|
-
|
|
754
|
-
|
|
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
|
-
|
|
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(),
|
|
794
|
+
super(), ke(
|
|
795
795
|
this,
|
|
796
796
|
e,
|
|
797
797
|
Ne,
|
|
798
798
|
Ze,
|
|
799
|
-
|
|
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'];
|