@realsee/dnalogel 2.3.9-alpha.7 → 2.3.9-alpha.8
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.cjs.js +38 -38
- package/dist/index.js +1724 -1749
- package/dist/index.umd.js +26 -26
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +41 -41
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +16 -16
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +15 -15
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.html +7 -7
- package/docs/interfaces/MinMax.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/PointJson.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/TagCache.html +10 -10
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/TagIconUrl.html +9 -9
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/AudioAppearance.html +5 -5
- package/docs/types/AudioTagTypeConfigKey.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeySplit.html +5 -5
- package/docs/types/ContentTypeMap.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/LoadTagConfig.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/MediaStore.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoIndex.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PlaneTagElement.html +5 -5
- package/docs/types/Point2DElement.html +5 -5
- package/docs/types/Point2DTag.html +5 -5
- package/docs/types/Point3DElement.html +5 -5
- package/docs/types/Point3DTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/PointTagElement.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/StickType.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagContentType.html +5 -5
- package/docs/types/TagDimensionType.html +5 -5
- package/docs/types/TagElement.html +5 -5
- package/docs/types/TagEvents.html +5 -5
- package/docs/types/TagHooks.html +5 -5
- package/docs/types/TagIconSize.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TagPointType.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/WorkCode.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/VERSION.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +96 -119
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +15 -17
- package/libs/PanoTagPlugin/Components/Tag/index.js +2 -3
- package/libs/PanoTagPlugin/Components/TagContainer.js +2 -3
- package/libs/PanoTagPlugin/Components/TagItem.js +2 -3
- package/libs/PanoTagPlugin/controller/index.js +5 -6
- package/libs/PanoTagPlugin/index.js +11 -12
- package/libs/index.js +92 -93
- package/libs/shared-utils/audio.js +31 -31
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as g, init as $, safe_not_equal as k, empty as b, insert as y, transition_out as
|
|
1
|
+
import { SvelteComponent as g, init as $, safe_not_equal as k, empty as b, insert as y, transition_out as l, check_outros as h, transition_in as m, detach as A, group_outros as R, create_component as s, mount_component as _, destroy_component as d } from "../../../../vendor/svelte/internal/index.js";
|
|
2
2
|
import T from "./AudioTag.js";
|
|
3
3
|
import w from "./AudioPlaneTag.js";
|
|
4
4
|
import "../../../../vendor/svelte/easing/index.js";
|
|
@@ -22,8 +22,6 @@ import "../../../utils/doUtil.js";
|
|
|
22
22
|
import "../../Common/Icon/audioIcon.js";
|
|
23
23
|
import "../../../utils/px2rem.js";
|
|
24
24
|
import "../../Common/Text/MText.js";
|
|
25
|
-
import "../../../utils/timeToString.js";
|
|
26
|
-
import "../../../utils/noTypecheck.js";
|
|
27
25
|
import "../../../utils/color.js";
|
|
28
26
|
function q(n) {
|
|
29
27
|
let t, o;
|
|
@@ -39,10 +37,10 @@ function q(n) {
|
|
|
39
37
|
r & 1 && (a.tag = e[0]), t.$set(a);
|
|
40
38
|
},
|
|
41
39
|
i(e) {
|
|
42
|
-
o || (
|
|
40
|
+
o || (m(t.$$.fragment, e), o = !0);
|
|
43
41
|
},
|
|
44
42
|
o(e) {
|
|
45
|
-
|
|
43
|
+
l(t.$$.fragment, e), o = !1;
|
|
46
44
|
},
|
|
47
45
|
d(e) {
|
|
48
46
|
d(t, e);
|
|
@@ -63,10 +61,10 @@ function v(n) {
|
|
|
63
61
|
r & 1 && (a.tag = e[0]), t.$set(a);
|
|
64
62
|
},
|
|
65
63
|
i(e) {
|
|
66
|
-
o || (
|
|
64
|
+
o || (m(t.$$.fragment, e), o = !0);
|
|
67
65
|
},
|
|
68
66
|
o(e) {
|
|
69
|
-
|
|
67
|
+
l(t.$$.fragment, e), o = !1;
|
|
70
68
|
},
|
|
71
69
|
d(e) {
|
|
72
70
|
d(t, e);
|
|
@@ -76,27 +74,27 @@ function v(n) {
|
|
|
76
74
|
function C(n) {
|
|
77
75
|
let t, o, e, r;
|
|
78
76
|
const a = [v, q], p = [];
|
|
79
|
-
function u(i,
|
|
77
|
+
function u(i, f) {
|
|
80
78
|
return i[1] === "line" ? 0 : i[1] === "plane" ? 1 : -1;
|
|
81
79
|
}
|
|
82
80
|
return ~(t = u(n)) && (o = p[t] = a[t](n)), {
|
|
83
81
|
c() {
|
|
84
82
|
o && o.c(), e = b();
|
|
85
83
|
},
|
|
86
|
-
m(i,
|
|
87
|
-
~t && p[t].m(i,
|
|
84
|
+
m(i, f) {
|
|
85
|
+
~t && p[t].m(i, f), y(i, e, f), r = !0;
|
|
88
86
|
},
|
|
89
|
-
p(i, [
|
|
87
|
+
p(i, [f]) {
|
|
90
88
|
let c = t;
|
|
91
|
-
t = u(i), t === c ? ~t && p[t].p(i,
|
|
89
|
+
t = u(i), t === c ? ~t && p[t].p(i, f) : (o && (R(), l(p[c], 1, 1, () => {
|
|
92
90
|
p[c] = null;
|
|
93
|
-
}), h()), ~t ? (o = p[t], o ? o.p(i,
|
|
91
|
+
}), h()), ~t ? (o = p[t], o ? o.p(i, f) : (o = p[t] = a[t](i), o.c()), m(o, 1), o.m(e.parentNode, e)) : o = null);
|
|
94
92
|
},
|
|
95
93
|
i(i) {
|
|
96
|
-
r || (
|
|
94
|
+
r || (m(o), r = !0);
|
|
97
95
|
},
|
|
98
96
|
o(i) {
|
|
99
|
-
|
|
97
|
+
l(o), r = !1;
|
|
100
98
|
},
|
|
101
99
|
d(i) {
|
|
102
100
|
~t && p[t].d(i), i && A(e);
|
|
@@ -115,11 +113,11 @@ function N(n, t, o) {
|
|
|
115
113
|
n.$$.dirty & 1 && o(1, e = (u = r.data.appearance) != null ? u : "line");
|
|
116
114
|
}, [r, e, p];
|
|
117
115
|
}
|
|
118
|
-
class
|
|
116
|
+
class et extends g {
|
|
119
117
|
constructor(t) {
|
|
120
118
|
super(), $(this, t, N, C, k, { tag: 0 });
|
|
121
119
|
}
|
|
122
120
|
}
|
|
123
121
|
export {
|
|
124
|
-
|
|
122
|
+
et as default
|
|
125
123
|
};
|
|
@@ -65,7 +65,6 @@ import "../../../shared-utils/audio.js";
|
|
|
65
65
|
import "../../utils/audio/SharedAudio.js";
|
|
66
66
|
import "../Common/Icon/audioIcon.js";
|
|
67
67
|
import "./AudioTag/AudioPlaneTag.js";
|
|
68
|
-
import "../../utils/timeToString.js";
|
|
69
68
|
import "../../utils/color.js";
|
|
70
69
|
import "../Common/Icon/Icon.js";
|
|
71
70
|
import "../../utils/getImageInfo.js";
|
|
@@ -372,7 +371,7 @@ function BA(o, A, t) {
|
|
|
372
371
|
E
|
|
373
372
|
];
|
|
374
373
|
}
|
|
375
|
-
class
|
|
374
|
+
class Je extends V {
|
|
376
375
|
constructor(A) {
|
|
377
376
|
super(), N(
|
|
378
377
|
this,
|
|
@@ -393,5 +392,5 @@ class Pe extends V {
|
|
|
393
392
|
}
|
|
394
393
|
}
|
|
395
394
|
export {
|
|
396
|
-
|
|
395
|
+
Je as default
|
|
397
396
|
};
|
|
@@ -64,7 +64,6 @@ import "../../shared-utils/audio.js";
|
|
|
64
64
|
import "../utils/audio/SharedAudio.js";
|
|
65
65
|
import "./Common/Icon/audioIcon.js";
|
|
66
66
|
import "./Tag/AudioTag/AudioPlaneTag.js";
|
|
67
|
-
import "../utils/timeToString.js";
|
|
68
67
|
import "../utils/color.js";
|
|
69
68
|
import "./Tag/MediaPlane.js";
|
|
70
69
|
import "./Tag/LinkTag.js";
|
|
@@ -187,7 +186,7 @@ function F(l, t, o) {
|
|
|
187
186
|
"withAnimation" in a && o(0, e = a.withAnimation), "tags" in a && o(1, n = a.tags), "hooks" in a && o(5, r = a.hooks), "mediaStore" in a && o(2, p = a.mediaStore), "state" in a && o(3, i = a.state), "temporaryState" in a && o(4, m = a.temporaryState);
|
|
188
187
|
}, [e, n, p, i, m, r];
|
|
189
188
|
}
|
|
190
|
-
class
|
|
189
|
+
class ie extends S {
|
|
191
190
|
constructor(t) {
|
|
192
191
|
super(), v(
|
|
193
192
|
this,
|
|
@@ -208,5 +207,5 @@ class oe extends S {
|
|
|
208
207
|
}
|
|
209
208
|
}
|
|
210
209
|
export {
|
|
211
|
-
|
|
210
|
+
ie as default
|
|
212
211
|
};
|
|
@@ -64,7 +64,6 @@ import "../../shared-utils/audio.js";
|
|
|
64
64
|
import "../utils/audio/SharedAudio.js";
|
|
65
65
|
import "./Common/Icon/audioIcon.js";
|
|
66
66
|
import "./Tag/AudioTag/AudioPlaneTag.js";
|
|
67
|
-
import "../utils/timeToString.js";
|
|
68
67
|
import "../utils/color.js";
|
|
69
68
|
import "./Tag/MediaPlane.js";
|
|
70
69
|
import "./Tag/LinkTag.js";
|
|
@@ -230,7 +229,7 @@ function it(o, e, t) {
|
|
|
230
229
|
m
|
|
231
230
|
];
|
|
232
231
|
}
|
|
233
|
-
class
|
|
232
|
+
class ve extends K {
|
|
234
233
|
constructor(e) {
|
|
235
234
|
super(), M(
|
|
236
235
|
this,
|
|
@@ -250,5 +249,5 @@ class Se extends K {
|
|
|
250
249
|
}
|
|
251
250
|
}
|
|
252
251
|
export {
|
|
253
|
-
|
|
252
|
+
ve as default
|
|
254
253
|
};
|
|
@@ -109,7 +109,6 @@ import "../Components/Common/Audio.js";
|
|
|
109
109
|
import "../utils/audio/SharedAudio.js";
|
|
110
110
|
import "../Components/Common/Icon/audioIcon.js";
|
|
111
111
|
import "../Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
112
|
-
import "../utils/timeToString.js";
|
|
113
112
|
import "../utils/color.js";
|
|
114
113
|
import "../Components/Tag/MediaPlane.js";
|
|
115
114
|
import "../Components/Tag/LinkTag.js";
|
|
@@ -122,8 +121,8 @@ import "./TagCacheController.js";
|
|
|
122
121
|
import "../../base/BasePlugin.js";
|
|
123
122
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
124
123
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
125
|
-
const y = "2.0.5", v = `DnalogelPlugin-PanoTagPlugin@${y}`, G = !1,
|
|
126
|
-
class
|
|
124
|
+
const y = "2.0.5", v = `DnalogelPlugin-PanoTagPlugin@${y}`, G = !1, Lt = (h) => `${v}--${h}`;
|
|
125
|
+
class Ot extends W {
|
|
127
126
|
constructor(e, t) {
|
|
128
127
|
super(e);
|
|
129
128
|
d(this, "version", y);
|
|
@@ -466,7 +465,7 @@ class It extends W {
|
|
|
466
465
|
}
|
|
467
466
|
}
|
|
468
467
|
export {
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
468
|
+
Ot as PanoTagPluginController,
|
|
469
|
+
Ot as default,
|
|
470
|
+
Lt as pluginFlag
|
|
472
471
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./controller/index.js";
|
|
2
|
-
import { default as
|
|
3
|
-
import { ContentType as
|
|
4
|
-
import { DimensionType as
|
|
2
|
+
import { default as Wo, pluginFlag as Xo } from "./controller/index.js";
|
|
3
|
+
import { ContentType as Zo } from "./typings/tag/TagData.js";
|
|
4
|
+
import { DimensionType as $o, PointType as or } from "./typings/tag/Utils.js";
|
|
5
5
|
import "@realsee/five";
|
|
6
6
|
import "three";
|
|
7
7
|
import "object-assign-deep";
|
|
@@ -71,7 +71,6 @@ import "../shared-utils/audio.js";
|
|
|
71
71
|
import "./utils/audio/SharedAudio.js";
|
|
72
72
|
import "./Components/Common/Icon/audioIcon.js";
|
|
73
73
|
import "./Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
74
|
-
import "./utils/timeToString.js";
|
|
75
74
|
import "./utils/color.js";
|
|
76
75
|
import "./Components/Tag/MediaPlane.js";
|
|
77
76
|
import "./Components/Tag/LinkTag.js";
|
|
@@ -97,13 +96,13 @@ import "../CSS3DRenderPlugin/index.js";
|
|
|
97
96
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
98
97
|
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
99
98
|
import "./utils/tag/format.js";
|
|
100
|
-
const
|
|
99
|
+
const So = (o, r) => new t(o, r);
|
|
101
100
|
export {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
101
|
+
Zo as ContentType,
|
|
102
|
+
$o as DimensionType,
|
|
103
|
+
So as PanoTagPlugin,
|
|
104
|
+
Wo as PanoTagPluginController,
|
|
105
|
+
or as PointType,
|
|
106
|
+
So as default,
|
|
107
|
+
Xo as pluginFlag
|
|
109
108
|
};
|
package/libs/index.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { PaintBrush as
|
|
2
|
-
import { PaintBrushTypeEnum as
|
|
3
|
-
import { ModelViewPlugin as
|
|
4
|
-
import { CSS3DRenderPlugin as
|
|
5
|
-
import { PanoCursorRaycasterPlugin as
|
|
6
|
-
import { ModelRoomLabelPlugin as
|
|
7
|
-
import { FLOOR_PLAN_ATTACHED_TO as
|
|
8
|
-
import { ModelFloorplanPlugin as
|
|
9
|
-
import { MapviewFloorplanPlugin as
|
|
10
|
-
import { TopviewFloorplanPlugin as
|
|
11
|
-
import { PanoFloorplanRadarPlugin as
|
|
12
|
-
import { FLOOR_TYPE_MAP as
|
|
13
|
-
import { ModelChassisCompassPlugin as
|
|
14
|
-
import { ModelEntryDoorGuidePlugin as
|
|
15
|
-
import { CameraMovementPlugin as
|
|
16
|
-
import { CameraMovementEffect as
|
|
17
|
-
import { PanoRulerPlugin as
|
|
18
|
-
import { PanoRulerProPlugin as
|
|
19
|
-
import { PanoCompassPlugin as
|
|
20
|
-
import { PanoMeasurePlugin as
|
|
21
|
-
import { PanoSpatialTagPlugin as
|
|
22
|
-
import { modelItemLabelPluginServerParams as
|
|
23
|
-
import { ModelTVVideoPlugin as
|
|
24
|
-
import { DIRECTION as
|
|
25
|
-
import { itemLabelPluginServerParams as
|
|
26
|
-
import { PanoDoorLabelPlugin as
|
|
27
|
-
import { GuideLinePlugin as
|
|
28
|
-
import { CruisePlugin as
|
|
29
|
-
import { PanoTagPlugin as
|
|
30
|
-
import { Object3DHelperPlugin as
|
|
31
|
-
import { index as
|
|
32
|
-
import { CSS3DRender as
|
|
33
|
-
import { default as
|
|
34
|
-
import { DISPLAY_STRATEGY_TYPE as
|
|
35
|
-
import { ModelItemLabelPlugin as
|
|
36
|
-
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as
|
|
37
|
-
import { Plugin as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
import { ContentType as
|
|
41
|
-
import { DimensionType as
|
|
42
|
-
import { Object3DHelperController as
|
|
1
|
+
import { PaintBrush as ip } from "./components/PaintBrush/index.js";
|
|
2
|
+
import { PaintBrushTypeEnum as lp } from "./components/PaintBrush/typings.js";
|
|
3
|
+
import { ModelViewPlugin as Pp } from "./ModelViewPlugin/Plugin.js";
|
|
4
|
+
import { CSS3DRenderPlugin as fp } from "./CSS3DRenderPlugin/index.js";
|
|
5
|
+
import { PanoCursorRaycasterPlugin as xp } from "./PanoCursorRaycasterPlugin/index.js";
|
|
6
|
+
import { ModelRoomLabelPlugin as Tp, modelRoomLabelPluginServerParams as sp } from "./ModelRoomLabelPlugin/index.js";
|
|
7
|
+
import { FLOOR_PLAN_ATTACHED_TO as Lp } from "./floorplan/constant.js";
|
|
8
|
+
import { ModelFloorplanPlugin as Ep } from "./floorplan/ModelFloorplanPlugin/index.js";
|
|
9
|
+
import { MapviewFloorplanPlugin as _p } from "./floorplan/MapviewFloorplanPlugin/index.js";
|
|
10
|
+
import { TopviewFloorplanPlugin as Op } from "./floorplan/TopviewFloorplanPlugin/index.js";
|
|
11
|
+
import { PanoFloorplanRadarPlugin as Ip } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
|
|
12
|
+
import { FLOOR_TYPE_MAP as Dp, ROOM_FETILE_TYPE_MAP as bp, ROOM_TYPE_MAP as Yp } from "./floorplan/typings/floorplanServerData.js";
|
|
13
|
+
import { ModelChassisCompassPlugin as vp } from "./ModelChassisCompassPlugin/Plugin.js";
|
|
14
|
+
import { ModelEntryDoorGuidePlugin as Gp } from "./ModelEntryDoorGuidePlugin/Plugin.js";
|
|
15
|
+
import { CameraMovementPlugin as cp } from "./CameraMovementPlugin/CameraMovementPlugin.js";
|
|
16
|
+
import { CameraMovementEffect as hp, Rotation as wp } from "./CameraMovementPlugin/typing.js";
|
|
17
|
+
import { PanoRulerPlugin as Hp } from "./PanoRulerPlugin/Plugin.js";
|
|
18
|
+
import { PanoRulerProPlugin as jp } from "./PanoRulerProPlugin/index.js";
|
|
19
|
+
import { PanoCompassPlugin as qp } from "./PanoCompassPlugin/index.js";
|
|
20
|
+
import { PanoMeasurePlugin as Jp } from "./PanoMeasurePlugin/index.js";
|
|
21
|
+
import { PanoSpatialTagPlugin as Qp } from "./PanoSpatialTagPlugin/Plugin.js";
|
|
22
|
+
import { modelItemLabelPluginServerParams as Xp } from "./ModelItemLabelPlugin/index.js";
|
|
23
|
+
import { ModelTVVideoPlugin as $p } from "./ModelTVVideoPlugin/Plugin.js";
|
|
24
|
+
import { DIRECTION as ri } from "./ModelTVVideoPlugin/typings.js";
|
|
25
|
+
import { itemLabelPluginServerParams as mi } from "./ItemLabelPlugin/index.js";
|
|
26
|
+
import { PanoDoorLabelPlugin as ii } from "./PanoDoorLabelPlugin/index.js";
|
|
27
|
+
import { GuideLinePlugin as li } from "./GuideLinePlugin/index.js";
|
|
28
|
+
import { CruisePlugin as Pi } from "./CruisePlugin/index.js";
|
|
29
|
+
import { PanoTagPlugin as fi } from "./PanoTagPlugin/index.js";
|
|
30
|
+
import { Object3DHelperPlugin as xi } from "./Object3DHelperPlugin/index.js";
|
|
31
|
+
import { index as Ti } from "./shared-utils/index.js";
|
|
32
|
+
import { CSS3DRender as di } from "./CSS3DRenderPlugin/CSS3DRender.js";
|
|
33
|
+
import { default as Mi } from "./PanoMeasurePlugin/Modules/Magnifier.js";
|
|
34
|
+
import { DISPLAY_STRATEGY_TYPE as Ri } from "./ModelItemLabelPlugin/typings.js";
|
|
35
|
+
import { ModelItemLabelPlugin as Ci } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
|
|
36
|
+
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as Si } from "./ItemLabelPlugin/typings.js";
|
|
37
|
+
import { Plugin as Ai } from "./ItemLabelPlugin/Plugin.js";
|
|
38
|
+
import { default as bi } from "./CruisePlugin/Controller.js";
|
|
39
|
+
import { default as Fi, pluginFlag as vi } from "./PanoTagPlugin/controller/index.js";
|
|
40
|
+
import { ContentType as Gi } from "./PanoTagPlugin/typings/tag/TagData.js";
|
|
41
|
+
import { DimensionType as ci, PointType as Vi } from "./PanoTagPlugin/typings/tag/Utils.js";
|
|
42
|
+
import { Object3DHelperController as wi, PLUGIN as Bi, VERSION as Hi } from "./Object3DHelperPlugin/Controller.js";
|
|
43
43
|
import "./components/PaintBrush/Controller.js";
|
|
44
44
|
import "./components/PaintBrush/utils.js";
|
|
45
45
|
import "./components/PaintBrush/tween.js";
|
|
@@ -259,7 +259,6 @@ import "./shared-utils/audio.js";
|
|
|
259
259
|
import "./PanoTagPlugin/utils/audio/SharedAudio.js";
|
|
260
260
|
import "./PanoTagPlugin/Components/Common/Icon/audioIcon.js";
|
|
261
261
|
import "./PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
262
|
-
import "./PanoTagPlugin/utils/timeToString.js";
|
|
263
262
|
import "./PanoTagPlugin/utils/color.js";
|
|
264
263
|
import "./PanoTagPlugin/Components/Tag/MediaPlane.js";
|
|
265
264
|
import "./PanoTagPlugin/Components/Tag/LinkTag.js";
|
|
@@ -314,54 +313,54 @@ import "./shared-utils/three/Assets/index.js";
|
|
|
314
313
|
import "./shared-utils/three/PointDomHelper.js";
|
|
315
314
|
import "./shared-utils/three/FivePointSelector.js";
|
|
316
315
|
export {
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
316
|
+
di as CSS3DRender,
|
|
317
|
+
fp as CSS3DRenderPlugin,
|
|
318
|
+
hp as CameraMovementEffect,
|
|
319
|
+
cp as CameraMovementPlugin,
|
|
320
|
+
Gi as ContentType,
|
|
321
|
+
Pi as CruisePlugin,
|
|
322
|
+
bi as CruisePluginController,
|
|
323
|
+
ri as DIRECTION,
|
|
324
|
+
Ri as DISPLAY_STRATEGY_TYPE,
|
|
325
|
+
ci as DimensionType,
|
|
326
|
+
Lp as FLOOR_PLAN_ATTACHED_TO,
|
|
327
|
+
Dp as FLOOR_TYPE_MAP,
|
|
328
|
+
li as GuideLinePlugin,
|
|
329
|
+
Si as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
|
|
330
|
+
Ai as ItemLabelPlugin,
|
|
331
|
+
Mi as Magnifier,
|
|
332
|
+
_p as MapviewFloorplanPlugin,
|
|
333
|
+
vp as ModelChassisCompassPlugin,
|
|
334
|
+
Gp as ModelEntryDoorGuidePlugin,
|
|
335
|
+
Ep as ModelFloorplanPlugin,
|
|
336
|
+
Ci as ModelItemLabelPlugin,
|
|
337
|
+
Tp as ModelRoomLabelPlugin,
|
|
338
|
+
$p as ModelTVVideoPlugin,
|
|
339
|
+
Pp as ModelViewPlugin,
|
|
340
|
+
wi as Object3DHelperController,
|
|
341
|
+
xi as Object3DHelperPlugin,
|
|
342
|
+
Bi as PLUGIN,
|
|
343
|
+
ip as PaintBrush,
|
|
344
|
+
lp as PaintBrushTypeEnum,
|
|
345
|
+
qp as PanoCompassPlugin,
|
|
346
|
+
xp as PanoCursorRaycasterPlugin,
|
|
347
|
+
ii as PanoDoorLabelPlugin,
|
|
348
|
+
Ip as PanoFloorplanRadarPlugin,
|
|
349
|
+
Jp as PanoMeasurePlugin,
|
|
350
|
+
Hp as PanoRulerPlugin,
|
|
351
|
+
jp as PanoRulerProPlugin,
|
|
352
|
+
Qp as PanoSpatialTagPlugin,
|
|
353
|
+
fi as PanoTagPlugin,
|
|
354
|
+
Fi as PanoTagPluginController,
|
|
355
|
+
Vi as PointType,
|
|
356
|
+
bp as ROOM_FETILE_TYPE_MAP,
|
|
357
|
+
Yp as ROOM_TYPE_MAP,
|
|
358
|
+
wp as Rotation,
|
|
359
|
+
Op as TopviewFloorplanPlugin,
|
|
360
|
+
Ti as Util,
|
|
361
|
+
Hi as VERSION,
|
|
362
|
+
mi as itemLabelPluginServerParams,
|
|
363
|
+
Xp as modelItemLabelPluginServerParams,
|
|
364
|
+
sp as modelRoomLabelPluginServerParams,
|
|
365
|
+
vi as pluginFlag
|
|
367
366
|
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
var l = Object.defineProperty;
|
|
2
2
|
var f = (e, V, A) => V in e ? l(e, V, { enumerable: !0, configurable: !0, writable: !0, value: A }) : e[V] = A;
|
|
3
3
|
var r = (e, V, A) => (f(e, typeof V != "symbol" ? V + "" : V, A), A);
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var c = (e, V, A) => new Promise((t, i) => {
|
|
5
|
+
var n = (u) => {
|
|
6
6
|
try {
|
|
7
|
-
d(A.next(
|
|
8
|
-
} catch (
|
|
9
|
-
|
|
7
|
+
d(A.next(u));
|
|
8
|
+
} catch (q) {
|
|
9
|
+
i(q);
|
|
10
10
|
}
|
|
11
|
-
}, h = (
|
|
11
|
+
}, h = (u) => {
|
|
12
12
|
try {
|
|
13
|
-
d(A.throw(
|
|
14
|
-
} catch (
|
|
15
|
-
|
|
13
|
+
d(A.throw(u));
|
|
14
|
+
} catch (q) {
|
|
15
|
+
i(q);
|
|
16
16
|
}
|
|
17
|
-
}, d = (
|
|
17
|
+
}, d = (u) => u.done ? t(u.value) : Promise.resolve(u.value).then(n, h);
|
|
18
18
|
d((A = A.apply(e, V)).next());
|
|
19
19
|
});
|
|
20
|
-
const
|
|
20
|
+
const o = "data:audio/mpeg;base64,//uQxAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAADAAAGhgBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr///////////////////////////////////////////8AAAA5TEFNRTMuOThyAc0AAAAAAAAAABSAJAiqQgAAgAAABobxtI73AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//uQxAACFEII9ACZ/sJZwWEoEb8w/////N//////JcxjHjf+7/v/H2PzCCFAiDtGeyBCIx7bJJ1mmEEMy6g8mm2c8nrGABB4h2Mkmn//4z/73u773R5qHHu/j/w7Kxkzh5lWRWdsifCkNAnY9Zc1HvDAhjhSHdFkHFzLmabt/AQxSg2wwzLhHIJOBnAWwVY4zrhIYhhc2kvhYDfQ4hDi2Gmh5KyFn8EcGIrHAngNgIwVIEMf5bzbAiTRoAD///8z/KVhkkWEle6IX+d/z4fvH3BShK1e5kmjkCMoxVmXhd4ROlTKo3iipasvTilY21q19ta30/v/0/idPX1v8PNxJL6ramnOVsdvMv2akO0iSYIzdJFirtzWXCZicS9vHqvSKyqm5XJBdqBwPxyfJdykhWTZ0G0ZyTZGpLKxsNwwoRhsx3tZfhwmeOBVISm3impAC/IT/8hP/EKEM1KMdVdVKM2rHV4x7HVXZvbVVKN/qq8CiV9VL9jjH/6l6qf7MBCjZmOqsAibjcP+qqqv0oxqpa/NVW286hPo1nz2L/h8+jXt//uSxCmDU2IK/ECN98KKtE5IYzNoCfbw+u9i5r8PoadUMFPKqWL4LK3T/LCraMSHGkW4bpLXR/E6LlHOVQxmslKVJ8IULktMN06N0FKCpHCoYsjC4F+Z0NVqdNFoGSTjSiyjzLdnZ2fNqTi2eHKONONKLMPMKLONKLMPQRJGlFxZRoKcJFAYEeIFiRQkUWUeYfef//Ko04soswso40UJAgMw8wosososy0EalnZyjQUGBRQGIFggOWUacWUeYmuadrZziQKKEgQsQLAhQkUJAgMQDghltLO1onp0cpkNInSFMqlYeSEJ5AHsqFdOwy1DA2sRmRJKxdKRfLhfLw5BzUxBTUUzLjk4LjJVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUxBTUUzLjk4LjJVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVf/7ksRRA8AAAaQAAAAgAAA0gAAABFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVU=", s = {};
|
|
21
21
|
var L = /* @__PURE__ */ ((e) => (e.Default = "default", e.GetAudioDuration = "getAudioDuration", e.PlayAudio = "playAudio", e))(L || {});
|
|
22
|
-
function
|
|
22
|
+
function g(e, V) {
|
|
23
23
|
const A = (V == null ? void 0 : V.namespace) || "default", t = s[A] || (s[A] = []);
|
|
24
|
-
let
|
|
25
|
-
return
|
|
24
|
+
let i = t.find((n) => !n.realSrc || n.realSrc === o);
|
|
25
|
+
return i || (console.warn("\u672A\u627E\u5230\u7F13\u5B58\u97F3\u9891\uFF0C\u5DF2\u65B0\u5EFA", s), i = new a(o), t.push(i)), e && (i.src = e), i;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
return
|
|
29
|
-
const V = (() => e instanceof
|
|
27
|
+
function K(e) {
|
|
28
|
+
return c(this, null, function* () {
|
|
29
|
+
const V = (() => e instanceof a ? e : g(e, { namespace: "getAudioDuration" }))(), A = yield new Promise((t) => {
|
|
30
30
|
V.duration ? V.isBlankAudio ? t(0) : t(V.duration) : (V.addEventListener("loadedmetadata", () => {
|
|
31
31
|
V.isBlankAudio ? t(0) : t(V.duration);
|
|
32
32
|
}), V.addEventListener("canplaythrough", () => {
|
|
@@ -36,13 +36,13 @@ function g(e) {
|
|
|
36
36
|
return typeof e == "string" && V.clear(), A;
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
const A = (V == null ? void 0 : V.namespace) || "default", t = s[A] || (s[A] = []),
|
|
41
|
-
if (!(
|
|
42
|
-
for (let
|
|
43
|
-
t.push(new
|
|
39
|
+
function k(e, V) {
|
|
40
|
+
const A = (V == null ? void 0 : V.namespace) || "default", t = s[A] || (s[A] = []), i = e - t.length;
|
|
41
|
+
if (!(i <= 0))
|
|
42
|
+
for (let n = 0; n < i; n++)
|
|
43
|
+
t.push(new a(o));
|
|
44
44
|
}
|
|
45
|
-
class
|
|
45
|
+
class a extends Audio {
|
|
46
46
|
constructor(A) {
|
|
47
47
|
super(A);
|
|
48
48
|
r(this, "preload", "auto");
|
|
@@ -53,12 +53,12 @@ class c extends Audio {
|
|
|
53
53
|
this.src = "";
|
|
54
54
|
});
|
|
55
55
|
const t = this.initAudio.bind(this);
|
|
56
|
-
document.addEventListener("
|
|
57
|
-
document.removeEventListener("
|
|
56
|
+
document.addEventListener("click", t), this.removeDocumentEventListener = () => {
|
|
57
|
+
document.removeEventListener("click", t);
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
get isBlankAudio() {
|
|
61
|
-
return this.realSrc ===
|
|
61
|
+
return this.realSrc === o || !this.realSrc;
|
|
62
62
|
}
|
|
63
63
|
get src() {
|
|
64
64
|
return super.src;
|
|
@@ -67,15 +67,15 @@ class c extends Audio {
|
|
|
67
67
|
super.src = A, this.realSrc = A;
|
|
68
68
|
}
|
|
69
69
|
clear() {
|
|
70
|
-
this.src =
|
|
70
|
+
this.src = o, this.currentTime = 0;
|
|
71
71
|
}
|
|
72
72
|
initAudio() {
|
|
73
|
-
this.inited || (this.src && (this.inited = !0, this.removeDocumentEventListener()), this.src ===
|
|
73
|
+
this.inited || (this.src && (this.inited = !0, this.removeDocumentEventListener()), this.src === o && this.play());
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
export {
|
|
77
77
|
L as AudioNamespace,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
k as generateBlankAudio,
|
|
79
|
+
g as getAudio,
|
|
80
|
+
K as getAudioDuration
|
|
81
81
|
};
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
8
8
|
"description": "如视 VR 看房插件合集",
|
|
9
9
|
"private": false,
|
|
10
|
-
"version": "2.3.9-alpha.
|
|
10
|
+
"version": "2.3.9-alpha.8",
|
|
11
11
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|