@realsee/dnalogel 3.79.0-alpha.0 → 3.79.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 +832 -832
- package/dist/GuideLinePlugin/Controller.d.ts +34 -2
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +7 -2
- package/dist/PanoTagPlugin/Components/Common/Arrow.svelte.d.ts +1 -0
- package/dist/PanoTagPlugin/Components/Common/Line/Polyline.svelte.d.ts +1 -0
- package/dist/PanoTagPlugin/Components/Common/Line/Straight.svelte.d.ts +1 -0
- package/dist/PanoTagPlugin/Components/Common/Text/FlyMText.svelte.d.ts +1 -0
- package/dist/PanoTagPlugin/Components/Common/Text/FlyText.svelte.d.ts +1 -0
- package/dist/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.svelte.d.ts +1 -0
- package/dist/PanoTagPlugin/Components/Tag/ImageTextTag.svelte.d.ts +1 -0
- package/dist/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.svelte.d.ts +1 -0
- package/dist/PanoTagPlugin/Components/Tag/TextTag/TextTag.svelte.d.ts +1 -0
- package/dist/PanoTagPlugin/Components/Tag/TextTag/index.svelte.d.ts +1 -0
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +0 -6
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +3 -2
- package/dist/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoTagPlugin/utils/doUtil.d.ts +1 -0
- package/dist/index.cjs.js +102 -97
- package/dist/index.js +16607 -14562
- package/dist/index.umd.js +95 -90
- package/libs/CruisePlugin/Move.js +27 -14
- package/libs/CruisePlugin/Work.js +74 -61
- package/libs/CruisePlugin/index.js +31 -18
- package/libs/GuideLinePlugin/Components/Tag.js +151 -163
- package/libs/GuideLinePlugin/Controller.d.ts +34 -2
- package/libs/GuideLinePlugin/Controller.js +85 -38
- package/libs/GuideLinePlugin/GuideLineItem.js +27 -14
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +76 -69
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +7 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +27 -14
- package/libs/GuideLinePlugin/index.js +31 -18
- package/libs/PanoTagPlugin/Components/Common/TagPopover/PopoverContent.js +77 -87
- package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopoverToolBar.js +135 -189
- package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopup.js +432 -460
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +198 -0
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.svelte.d.ts +1 -0
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +258 -0
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.svelte.d.ts +1 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +358 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.svelte.d.ts +1 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +126 -38
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +259 -0
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.svelte.d.ts +1 -0
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +216 -0
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.svelte.d.ts +1 -0
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +219 -0
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.svelte.d.ts +1 -0
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +134 -0
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.svelte.d.ts +1 -0
- package/libs/PanoTagPlugin/Components/Tag/index.js +393 -292
- package/libs/PanoTagPlugin/Components/TagContainer.js +135 -125
- package/libs/PanoTagPlugin/Components/TagItem.js +321 -318
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +74 -61
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +108 -95
- package/libs/PanoTagPlugin/controller/index.js +54 -41
- package/libs/PanoTagPlugin/index.js +36 -23
- package/libs/PanoTagPlugin/tag.config.js +1 -31
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +0 -6
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +3 -2
- package/libs/base/BasePlugin.js +5 -5
- package/libs/index.js +182 -169
- package/libs/shared-utils/logger.js +1 -1
- package/libs/vendor/svelte/internal/index.js +225 -235
- package/package.json +2 -1
|
@@ -10,8 +10,8 @@ var b = (l, p, e) => p in l ? w(l, p, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
B.call(p, e) && b(l, e, p[e]);
|
|
11
11
|
return l;
|
|
12
12
|
}, C = (l, p) => F(l, _(p));
|
|
13
|
-
var
|
|
14
|
-
var
|
|
13
|
+
var m = (l, p, e) => (b(l, typeof p != "symbol" ? p + "" : p, e), e);
|
|
14
|
+
var d = (l, p, e) => new Promise((t, i) => {
|
|
15
15
|
var o = (s) => {
|
|
16
16
|
try {
|
|
17
17
|
a(e.next(s));
|
|
@@ -155,23 +155,25 @@ import "../../shared-utils/three/GLTFLoader.js";
|
|
|
155
155
|
import "@realsee/five/gltf-loader";
|
|
156
156
|
import "../utils/planeNormal.js";
|
|
157
157
|
import "../Components/Tag/index.js";
|
|
158
|
-
import "../Components/Tag/
|
|
159
|
-
import "../
|
|
160
|
-
import "../Components/Common/
|
|
158
|
+
import "../Components/Tag/TextTag/index.js";
|
|
159
|
+
import "../Components/Tag/TextTag/TextTag.js";
|
|
160
|
+
import "../Components/Common/Line/Straight.js";
|
|
161
161
|
import "../../vendor/svelte/transition/index.js";
|
|
162
162
|
import "../../vendor/svelte/easing/index.js";
|
|
163
|
+
import "../Components/Common/Shadow.js";
|
|
164
|
+
import "../Components/Common/Text/FlyMText.js";
|
|
165
|
+
import "../Components/Common/Text/FlyText.js";
|
|
166
|
+
import "../utils/search.js";
|
|
167
|
+
import "../utils/constants.js";
|
|
168
|
+
import "../Components/Common/Arrow.js";
|
|
169
|
+
import "../utils/doUtil.js";
|
|
163
170
|
import "../../shared-utils/svelte/resizeObserver.js";
|
|
164
171
|
import "../../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
165
|
-
import "../Components/Tag/
|
|
166
|
-
import "../utils/noTypecheck.js";
|
|
167
|
-
import "../Components/Tag/AudioTag/index.js";
|
|
168
|
-
import "../Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
169
|
-
import "../Components/Common/Icon/audioIcon.js";
|
|
172
|
+
import "../Components/Tag/TextTag/TextPlaneTag.js";
|
|
170
173
|
import "../Components/Common/Text/MText.js";
|
|
171
|
-
import "../
|
|
172
|
-
import "../
|
|
173
|
-
import "../
|
|
174
|
-
import "../Components/Tag/MediaPlane.js";
|
|
174
|
+
import "../utils/px2rem.js";
|
|
175
|
+
import "../Components/Tag/ImageTextTag.js";
|
|
176
|
+
import "../Components/Common/Line/Polyline.js";
|
|
175
177
|
import "../Components/Common/Media.js";
|
|
176
178
|
import "../../vendor/svelte-carousel/src/components/Carousel/Carousel.js";
|
|
177
179
|
import "../../vendor/svelte-carousel/src/components/Dots/Dots.js";
|
|
@@ -204,6 +206,17 @@ import "../../vendor/svelte-carousel/src/utils/lazy.js";
|
|
|
204
206
|
import "../../vendor/svelte-carousel/src/utils/ProgressManager.js";
|
|
205
207
|
import "../../vendor/svelte-carousel/src/utils/interval.js";
|
|
206
208
|
import "../Components/Common/MediaItem.js";
|
|
209
|
+
import "../Components/Tag/MarketingTag.js";
|
|
210
|
+
import "../Components/Tag/Assets/marketingIcon.js";
|
|
211
|
+
import "../utils/noTypecheck.js";
|
|
212
|
+
import "../Components/Tag/AudioTag/index.js";
|
|
213
|
+
import "../Components/Tag/AudioTag/AudioTag.js";
|
|
214
|
+
import "../Components/Common/Audio.js";
|
|
215
|
+
import "../utils/audio/SharedAudio.js";
|
|
216
|
+
import "../utils/audio/AudioDiagnostics.js";
|
|
217
|
+
import "../Components/Common/Icon/audioIcon.js";
|
|
218
|
+
import "../Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
219
|
+
import "../Components/Tag/MediaPlane.js";
|
|
207
220
|
import "../Components/Tag/LinkTag.js";
|
|
208
221
|
import "../Components/Common/Icon/Icon.js";
|
|
209
222
|
import "../utils/getImageInfo.js";
|
|
@@ -322,23 +335,23 @@ import "../Components/Common/TagPopover/TagPopoverToolBar.js";
|
|
|
322
335
|
import "../Components/Common/TagPopover/ArrowRightIcon.js";
|
|
323
336
|
import "../Components/Common/TagPopover/ShareIcon.js";
|
|
324
337
|
import "../utils/popoverContainer.js";
|
|
325
|
-
const I = "Dnalogel-PanoTagPlugin",
|
|
326
|
-
class
|
|
338
|
+
const I = "Dnalogel-PanoTagPlugin", Vs = (l) => `${I}--${l}`;
|
|
339
|
+
class zs extends $ {
|
|
327
340
|
constructor(e, t) {
|
|
328
341
|
super(e);
|
|
329
342
|
/** state */
|
|
330
|
-
|
|
343
|
+
m(this, "state", { enabled: !0, visible: !0 });
|
|
331
344
|
/** debug */
|
|
332
|
-
|
|
333
|
-
|
|
345
|
+
m(this, "debug");
|
|
346
|
+
m(this, "debugUtil", new W(this));
|
|
334
347
|
/** 全局 hover 启用状态,默认 true */
|
|
335
|
-
|
|
348
|
+
m(this, "globalHoverEnabled", !0);
|
|
336
349
|
/** 更改 tag 模型 */
|
|
337
|
-
|
|
350
|
+
m(this, "changeTagModel", (e, t) => d(this, null, function* () {
|
|
338
351
|
var i;
|
|
339
352
|
e.data = v({}, e.data, t), yield (i = e.loadModel) == null ? void 0 : i.call(e);
|
|
340
353
|
}));
|
|
341
|
-
|
|
354
|
+
m(this, "handleFiveModeChange", (e) => {
|
|
342
355
|
const t = () => {
|
|
343
356
|
this.filter2DPointTag.forEach((i) => {
|
|
344
357
|
i.state.visible = !1, i.applyVisible();
|
|
@@ -352,7 +365,7 @@ class Us extends $ {
|
|
|
352
365
|
};
|
|
353
366
|
this.tags.length < 500 ? t() : this.five.ready().then(() => t());
|
|
354
367
|
});
|
|
355
|
-
|
|
368
|
+
m(this, "handleFiveWantsMoveToPano", () => {
|
|
356
369
|
if (this.tags.length > 500) {
|
|
357
370
|
this.temporaryState.visible = !1, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] });
|
|
358
371
|
return;
|
|
@@ -361,18 +374,18 @@ class Us extends $ {
|
|
|
361
374
|
e.temporaryState.visible = !0;
|
|
362
375
|
}), this.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.tags.forEach((e) => e.applyVisible());
|
|
363
376
|
});
|
|
364
|
-
|
|
377
|
+
m(this, "clickhandler", (e) => {
|
|
365
378
|
e.tag.onClick(e);
|
|
366
379
|
});
|
|
367
|
-
|
|
380
|
+
m(this, "handleFiveCameraUpdate", () => {
|
|
368
381
|
this.filterPointTag.forEach((e) => e.updateScreenPosition());
|
|
369
382
|
});
|
|
370
|
-
|
|
383
|
+
m(this, "handleFiveCameraFovUpdate", () => {
|
|
371
384
|
this.handleFiveCameraUpdate(), this.five.off("render.prepare", this.handleFiveCameraUpdate), this.five.on("render.prepare", this.handleFiveCameraUpdate), setTimeout(() => {
|
|
372
385
|
this.five.off("render.prepare", this.handleFiveCameraUpdate);
|
|
373
386
|
}, 1e3);
|
|
374
387
|
});
|
|
375
|
-
|
|
388
|
+
m(this, "handleFivePanoArrived", () => d(this, null, function* () {
|
|
376
389
|
this.filter2DPointTag.forEach((e) => {
|
|
377
390
|
e.state.visible = !1, e.applyVisible();
|
|
378
391
|
}), this.tagsDo(this.tags, (e) => {
|
|
@@ -395,16 +408,16 @@ class Us extends $ {
|
|
|
395
408
|
});
|
|
396
409
|
}));
|
|
397
410
|
/** 楼层切换时,需要更新标签可见性 */
|
|
398
|
-
|
|
411
|
+
m(this, "handleFiveModelShownFloorChange", () => {
|
|
399
412
|
this.tagsDo(this.tags, (e) => e.updateVisible());
|
|
400
413
|
});
|
|
401
|
-
|
|
414
|
+
m(this, "onFiveRefined", D(() => {
|
|
402
415
|
A(this.five.getCurrentState().mode) ? this.setUnfoldedByCamera() : this.tags.forEach((e) => e.cache.clear()), this.tagsDo(this.tags, (e) => e.updateVisible());
|
|
403
416
|
}));
|
|
404
|
-
|
|
417
|
+
m(this, "onFiveEveryReady", () => {
|
|
405
418
|
this.setUnfoldedByCamera(), A(this.five.getCurrentState().mode) && this.tagsDo(this.tags, (e) => e.updateVisible());
|
|
406
419
|
});
|
|
407
|
-
|
|
420
|
+
m(this, "render", () => {
|
|
408
421
|
this.renderQueue.forEach((e, t) => {
|
|
409
422
|
const { keys: i } = e;
|
|
410
423
|
if (t === "TagContainerSvelte") {
|
|
@@ -460,7 +473,7 @@ class Us extends $ {
|
|
|
460
473
|
* @description 加载数据
|
|
461
474
|
*/
|
|
462
475
|
load(e) {
|
|
463
|
-
return
|
|
476
|
+
return d(this, null, function* () {
|
|
464
477
|
var o, n;
|
|
465
478
|
c.clearSharedMeshRegistry(), this.clearTags();
|
|
466
479
|
try {
|
|
@@ -496,7 +509,7 @@ class Us extends $ {
|
|
|
496
509
|
* @param options.updateMaskUrl 是否更新 mask。若为 true 且该 panoIndex 已有 Mask 标签,仅更新其 maskUrl(不变 color、style),并添加新标签
|
|
497
510
|
*/
|
|
498
511
|
addTag(e, t) {
|
|
499
|
-
return
|
|
512
|
+
return d(this, null, function* () {
|
|
500
513
|
var a, s;
|
|
501
514
|
const o = (Array.isArray(e) ? e : [e]).filter((r) => r.stickType === "3DBox" || r.stickType === "Mask" || r.position);
|
|
502
515
|
if (t != null && t.updateMaskUrl && o.length === 1 && o[0].stickType === "Mask") {
|
|
@@ -510,7 +523,7 @@ class Us extends $ {
|
|
|
510
523
|
const h = N(r);
|
|
511
524
|
return h === "2DPoint" || h === "3DPoint" ? new q(this, r) : h === "Model" ? new J(this, r) : h === "Plane" ? new Z(this, r) : h === "3DBox" ? new Y(this, r) : h === "Polygon" ? new K(this, r) : h === "Mask" ? new c(this, r) : null;
|
|
512
525
|
});
|
|
513
|
-
return n.forEach((r) => x(r)), this.tags.push(...n), this.tagsLengthWillUpdate = !0, j(this.five).then(() =>
|
|
526
|
+
return n.forEach((r) => x(r)), this.tags.push(...n), this.tagsLengthWillUpdate = !0, j(this.five).then(() => d(this, null, function* () {
|
|
514
527
|
var r, h;
|
|
515
528
|
this.store.eventListenerDisposer && ((h = (r = this.store).eventListenerDisposer) == null || h.call(r)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.tagsDo(n, (f) => {
|
|
516
529
|
this.tags.includes(f) && (f.updateVisible(), f.updateZIndex());
|
|
@@ -547,7 +560,7 @@ class Us extends $ {
|
|
|
547
560
|
});
|
|
548
561
|
}
|
|
549
562
|
show(e) {
|
|
550
|
-
return
|
|
563
|
+
return d(this, null, function* () {
|
|
551
564
|
if (this.checkDisposed())
|
|
552
565
|
return;
|
|
553
566
|
const { userAction: t = !0 } = e != null ? e : {};
|
|
@@ -555,7 +568,7 @@ class Us extends $ {
|
|
|
555
568
|
});
|
|
556
569
|
}
|
|
557
570
|
hide(e) {
|
|
558
|
-
return
|
|
571
|
+
return d(this, null, function* () {
|
|
559
572
|
if (this.checkDisposed())
|
|
560
573
|
return;
|
|
561
574
|
const { userAction: t = !0 } = e != null ? e : {};
|
|
@@ -599,7 +612,7 @@ class Us extends $ {
|
|
|
599
612
|
* @param {Partial<anime.AnimeParams>} animeConfig
|
|
600
613
|
*/
|
|
601
614
|
blinkTagById(e, t) {
|
|
602
|
-
return
|
|
615
|
+
return d(this, null, function* () {
|
|
603
616
|
var i;
|
|
604
617
|
return (i = this.getTagById(e)) == null ? void 0 : i.blink(t);
|
|
605
618
|
});
|
|
@@ -734,7 +747,7 @@ class Us extends $ {
|
|
|
734
747
|
* @description 设置 unfolded
|
|
735
748
|
*/
|
|
736
749
|
setUnfolded() {
|
|
737
|
-
return
|
|
750
|
+
return d(this, null, function* () {
|
|
738
751
|
return new Promise((e) => {
|
|
739
752
|
setTimeout(() => {
|
|
740
753
|
this.setUnfoldedByCamera(), e();
|
|
@@ -904,7 +917,7 @@ class Us extends $ {
|
|
|
904
917
|
}
|
|
905
918
|
}
|
|
906
919
|
export {
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
920
|
+
zs as PanoTagPluginController,
|
|
921
|
+
zs as default,
|
|
922
|
+
Vs as pluginFlag
|
|
910
923
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import r from "./controller/index.js";
|
|
2
|
-
import { pluginFlag as
|
|
3
|
-
import { defaultGlobalConfig as
|
|
4
|
-
import { ContentType as
|
|
2
|
+
import { pluginFlag as Si } from "./controller/index.js";
|
|
3
|
+
import { defaultGlobalConfig as Vi } from "./typings/tag/TagConfig.js";
|
|
4
|
+
import { ContentType as Xi, DimensionType as Yi, PointType as Zi } from "./Archive/deprecated.js";
|
|
5
5
|
import "three";
|
|
6
6
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
7
7
|
import "../shared-utils/positionToVector3.js";
|
|
@@ -122,23 +122,25 @@ import "../shared-utils/three/GLTFLoader.js";
|
|
|
122
122
|
import "@realsee/five/gltf-loader";
|
|
123
123
|
import "./utils/planeNormal.js";
|
|
124
124
|
import "./Components/Tag/index.js";
|
|
125
|
-
import "./Components/Tag/
|
|
126
|
-
import "./
|
|
127
|
-
import "./Components/Common/
|
|
125
|
+
import "./Components/Tag/TextTag/index.js";
|
|
126
|
+
import "./Components/Tag/TextTag/TextTag.js";
|
|
127
|
+
import "./Components/Common/Line/Straight.js";
|
|
128
128
|
import "../vendor/svelte/transition/index.js";
|
|
129
129
|
import "../vendor/svelte/easing/index.js";
|
|
130
|
+
import "./Components/Common/Shadow.js";
|
|
131
|
+
import "./Components/Common/Text/FlyMText.js";
|
|
132
|
+
import "./Components/Common/Text/FlyText.js";
|
|
133
|
+
import "./utils/search.js";
|
|
134
|
+
import "./utils/constants.js";
|
|
135
|
+
import "./Components/Common/Arrow.js";
|
|
136
|
+
import "./utils/doUtil.js";
|
|
130
137
|
import "../shared-utils/svelte/resizeObserver.js";
|
|
131
138
|
import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
132
|
-
import "./Components/Tag/
|
|
133
|
-
import "./utils/noTypecheck.js";
|
|
134
|
-
import "./Components/Tag/AudioTag/index.js";
|
|
135
|
-
import "./Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
136
|
-
import "./Components/Common/Icon/audioIcon.js";
|
|
139
|
+
import "./Components/Tag/TextTag/TextPlaneTag.js";
|
|
137
140
|
import "./Components/Common/Text/MText.js";
|
|
138
|
-
import "./
|
|
139
|
-
import "./
|
|
140
|
-
import "./
|
|
141
|
-
import "./Components/Tag/MediaPlane.js";
|
|
141
|
+
import "./utils/px2rem.js";
|
|
142
|
+
import "./Components/Tag/ImageTextTag.js";
|
|
143
|
+
import "./Components/Common/Line/Polyline.js";
|
|
142
144
|
import "./Components/Common/Media.js";
|
|
143
145
|
import "../vendor/svelte-carousel/src/components/Carousel/Carousel.js";
|
|
144
146
|
import "../vendor/svelte-carousel/src/components/Dots/Dots.js";
|
|
@@ -171,6 +173,17 @@ import "../vendor/svelte-carousel/src/utils/lazy.js";
|
|
|
171
173
|
import "../vendor/svelte-carousel/src/utils/ProgressManager.js";
|
|
172
174
|
import "../vendor/svelte-carousel/src/utils/interval.js";
|
|
173
175
|
import "./Components/Common/MediaItem.js";
|
|
176
|
+
import "./Components/Tag/MarketingTag.js";
|
|
177
|
+
import "./Components/Tag/Assets/marketingIcon.js";
|
|
178
|
+
import "./utils/noTypecheck.js";
|
|
179
|
+
import "./Components/Tag/AudioTag/index.js";
|
|
180
|
+
import "./Components/Tag/AudioTag/AudioTag.js";
|
|
181
|
+
import "./Components/Common/Audio.js";
|
|
182
|
+
import "./utils/audio/SharedAudio.js";
|
|
183
|
+
import "./utils/audio/AudioDiagnostics.js";
|
|
184
|
+
import "./Components/Common/Icon/audioIcon.js";
|
|
185
|
+
import "./Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
186
|
+
import "./Components/Tag/MediaPlane.js";
|
|
174
187
|
import "./Components/Tag/LinkTag.js";
|
|
175
188
|
import "./Components/Common/Icon/Icon.js";
|
|
176
189
|
import "./utils/getImageInfo.js";
|
|
@@ -296,14 +309,14 @@ import "./Components/Common/TagPopover/ArrowRightIcon.js";
|
|
|
296
309
|
import "./Components/Common/TagPopover/ShareIcon.js";
|
|
297
310
|
import "./utils/popoverContainer.js";
|
|
298
311
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
299
|
-
const
|
|
312
|
+
const Oi = (o, t) => new r(o, t);
|
|
300
313
|
export {
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
314
|
+
Xi as ContentType,
|
|
315
|
+
Yi as DimensionType,
|
|
316
|
+
Oi as PanoTagPlugin,
|
|
304
317
|
r as PanoTagPluginController,
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
318
|
+
Zi as PointType,
|
|
319
|
+
Oi as default,
|
|
320
|
+
Vi as defaultGlobalConfig,
|
|
321
|
+
Si as pluginFlag
|
|
309
322
|
};
|
|
@@ -14,7 +14,7 @@ const e = {
|
|
|
14
14
|
ratio: 35e-4
|
|
15
15
|
},
|
|
16
16
|
popoverConfig: {
|
|
17
|
-
enabled: !
|
|
17
|
+
enabled: !1,
|
|
18
18
|
// debug: true,
|
|
19
19
|
trigger: "hover",
|
|
20
20
|
triggerDelay: 500,
|
|
@@ -63,50 +63,30 @@ const e = {
|
|
|
63
63
|
unfoldedConfig: {
|
|
64
64
|
// VR 跳转标签没有收起状态
|
|
65
65
|
keep: "unfolded"
|
|
66
|
-
},
|
|
67
|
-
popoverConfig: {
|
|
68
|
-
enabled: !1
|
|
69
66
|
}
|
|
70
67
|
},
|
|
71
68
|
Panorama: {
|
|
72
69
|
unfoldedConfig: {
|
|
73
70
|
// VR 跳转标签没有收起状态
|
|
74
71
|
keep: "unfolded"
|
|
75
|
-
},
|
|
76
|
-
popoverConfig: {
|
|
77
|
-
enabled: !1
|
|
78
72
|
}
|
|
79
73
|
},
|
|
80
74
|
VRLink: {
|
|
81
75
|
unfoldedConfig: {
|
|
82
76
|
// VR 跳转标签没有收起状态
|
|
83
77
|
keep: "unfolded"
|
|
84
|
-
},
|
|
85
|
-
popoverConfig: {
|
|
86
|
-
enabled: !1
|
|
87
78
|
}
|
|
88
79
|
},
|
|
89
80
|
PanoLink: {
|
|
90
81
|
unfoldedConfig: {
|
|
91
82
|
// VR 跳转标签没有收起状态
|
|
92
83
|
keep: "unfolded"
|
|
93
|
-
},
|
|
94
|
-
popoverConfig: {
|
|
95
|
-
enabled: !1
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
Sticker: {
|
|
99
|
-
popoverConfig: {
|
|
100
|
-
enabled: !1
|
|
101
84
|
}
|
|
102
85
|
},
|
|
103
86
|
MediaPlane: {
|
|
104
87
|
unfoldedConfig: {
|
|
105
88
|
keep: "unfolded"
|
|
106
89
|
},
|
|
107
|
-
popoverConfig: {
|
|
108
|
-
enabled: !1
|
|
109
|
-
},
|
|
110
90
|
initialData: {
|
|
111
91
|
autoplayConfig: {
|
|
112
92
|
autoplayCarousel: !0,
|
|
@@ -121,9 +101,6 @@ const e = {
|
|
|
121
101
|
},
|
|
122
102
|
visibleConfig: {
|
|
123
103
|
visibleFiveMode: "all"
|
|
124
|
-
},
|
|
125
|
-
popoverConfig: {
|
|
126
|
-
enabled: !1
|
|
127
104
|
}
|
|
128
105
|
},
|
|
129
106
|
Marketing: {
|
|
@@ -137,13 +114,6 @@ const e = {
|
|
|
137
114
|
showMore: !1
|
|
138
115
|
}
|
|
139
116
|
}
|
|
140
|
-
},
|
|
141
|
-
Text: {
|
|
142
|
-
popoverConfig: {
|
|
143
|
-
toolbar: {
|
|
144
|
-
showMore: !1
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
117
|
}
|
|
148
118
|
}
|
|
149
119
|
};
|
|
@@ -351,12 +351,6 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
|
|
|
351
351
|
* @default '查看更多'
|
|
352
352
|
*/
|
|
353
353
|
viewMoreText?: string;
|
|
354
|
-
/**
|
|
355
|
-
* @description 仅显示分享按钮时(showMore: false)展示在分享图标旁边的文案
|
|
356
|
-
* @description 用于 i18n 场景,由业务侧传入,如 "立即分享"
|
|
357
|
-
* @default undefined(不显示文案)
|
|
358
|
-
*/
|
|
359
|
-
shareText?: string;
|
|
360
354
|
/**
|
|
361
355
|
* @description 鼠标悬停前的拦截函数,返回 true 允许 hover,false 阻止 hover
|
|
362
356
|
*/
|
|
@@ -21,7 +21,7 @@ export type TagContentType = keyof typeof ContentType;
|
|
|
21
21
|
export interface ContentTypeMapInterface {
|
|
22
22
|
/** 文字标签 */
|
|
23
23
|
Text: {
|
|
24
|
-
appearance?: 'plane';
|
|
24
|
+
appearance?: 'line' | 'plane';
|
|
25
25
|
/** @deprecated: please use 'title' */
|
|
26
26
|
text?: string;
|
|
27
27
|
title?: string;
|
|
@@ -52,7 +52,8 @@ export interface ContentTypeMapInterface {
|
|
|
52
52
|
/** @deprecated: 'text' replace by title */
|
|
53
53
|
text?: string;
|
|
54
54
|
title?: string;
|
|
55
|
-
|
|
55
|
+
/** @description 'line' 是旧的那种有一条线的,默认为'line', 'plane' 是新的那种圆形的 */
|
|
56
|
+
appearance?: 'line' | 'plane';
|
|
56
57
|
theme?: 'dark' | 'light';
|
|
57
58
|
audioUrl: string;
|
|
58
59
|
};
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var e = Object.defineProperty;
|
|
2
2
|
var s = (o, t, i) => t in o ? e(o, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : o[t] = i;
|
|
3
3
|
var r = (o, t, i) => (s(o, typeof t != "symbol" ? t + "" : t, i), i);
|
|
4
|
-
import { Subscribe as
|
|
4
|
+
import { Subscribe as m } from "../shared-utils/Subscribe.js";
|
|
5
5
|
import "../shared-utils/tag.js";
|
|
6
6
|
import "three";
|
|
7
7
|
import "../vendor/hammerjs/hammer.js";
|
|
@@ -15,7 +15,7 @@ import "../shared-utils/three/blink.js";
|
|
|
15
15
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
16
16
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
17
17
|
import "../vendor/earcut/src/earcut.js";
|
|
18
|
-
import { FiveUtil as
|
|
18
|
+
import { FiveUtil as l } from "../shared-utils/Utils/FiveUtil.js";
|
|
19
19
|
import { DEFAULT_STATIC_PREFIX as p } from "../shared-utils/url/defaultUrls.js";
|
|
20
20
|
import "../shared-utils/five/FivePuppet.js";
|
|
21
21
|
let I = class {
|
|
@@ -23,7 +23,7 @@ let I = class {
|
|
|
23
23
|
/**
|
|
24
24
|
* @realsee/dnalogel 版本号
|
|
25
25
|
*/
|
|
26
|
-
r(this, "VERSION", "3.79.0
|
|
26
|
+
r(this, "VERSION", "3.79.0");
|
|
27
27
|
r(this, "NAME");
|
|
28
28
|
r(this, "five");
|
|
29
29
|
r(this, "workUtil");
|
|
@@ -31,9 +31,9 @@ let I = class {
|
|
|
31
31
|
/**
|
|
32
32
|
* @description: 插件事件钩子
|
|
33
33
|
*/
|
|
34
|
-
r(this, "hooks", new
|
|
34
|
+
r(this, "hooks", new m());
|
|
35
35
|
r(this, "staticPrefix", p);
|
|
36
|
-
this.five = t, this.fiveUtil = new
|
|
36
|
+
this.five = t, this.fiveUtil = new l(t), this.workUtil = this.fiveUtil.workUtil, i != null && i.staticPrefix && (this.staticPrefix = i.staticPrefix);
|
|
37
37
|
}
|
|
38
38
|
set workCode(t) {
|
|
39
39
|
this.workUtil.workCode = t, this.onWorkCodeChange();
|