@realsee/dnalogel 2.3.9-alpha.2 → 2.3.9-alpha.4
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 +54 -54
- package/dist/index.js +4548 -4501
- package/dist/index.umd.js +47 -47
- package/dist/shared-utils/audio.d.ts +19 -0
- 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/CruisePlugin/Controller.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Audio.js +131 -132
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +66 -64
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +17 -16
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +46 -46
- package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
- package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
- package/libs/PanoTagPlugin/Components/TagItem.js +3 -2
- package/libs/PanoTagPlugin/controller/index.js +12 -11
- package/libs/PanoTagPlugin/index.js +12 -11
- package/libs/index.js +93 -92
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +25 -32
- package/libs/shared-utils/audio.d.ts +19 -0
- package/libs/shared-utils/audio.js +77 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as S, init as A, safe_not_equal as P, append_styles as U, empty as R, insert as
|
|
1
|
+
import { SvelteComponent as S, init as A, safe_not_equal as P, append_styles as U, empty as R, insert as f, transition_in as m, transition_out as c, check_outros as W, detach as u, element as d, create_component as _, attr as s, set_style as g, append as j, mount_component as b, destroy_component as h, group_outros as q, text as T, set_data as y } from "../../../../vendor/svelte/internal/index.js";
|
|
2
2
|
import E from "../../Common/Icon/audioIcon.js";
|
|
3
3
|
import F from "../../Common/Text/MText.js";
|
|
4
4
|
import G from "../../Common/Audio.js";
|
|
@@ -10,62 +10,64 @@ import "../../../utils/px2rem.js";
|
|
|
10
10
|
import "../../Common/Shadow.js";
|
|
11
11
|
import "../../../../vendor/svelte/transition/index.js";
|
|
12
12
|
import "../../../../vendor/svelte/easing/index.js";
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
import "../../../../shared-utils/audio.js";
|
|
14
|
+
function N(n) {
|
|
15
|
+
U(n, "svelte-1fezrt1", ".audio-tag__wrapper.svelte-1fezrt1{position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.audio-tag.svelte-1fezrt1{position:relative;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;padding:0.1875rem;padding-right:0.625rem;border-radius:624999.9375rem;border:0.03125rem solid rgba(255, 255, 255, 0.2)}.currentTime.svelte-1fezrt1{font-family:TG-TYPE, PingFangSC, Segoe UI, Rototo, sans-serif;margin-left:0.25rem}.text.svelte-1fezrt1{font-weight:bold;font-size:0.75rem;margin-left:0.125rem}.audio-icon__wrapper.svelte-1fezrt1{position:relative;vertical-align:top;pointer-events:none;width:1.375rem;height:1.375rem}");
|
|
15
16
|
}
|
|
16
|
-
function z(
|
|
17
|
+
function z(n) {
|
|
17
18
|
let o, t, e, r;
|
|
18
19
|
return e = new G({
|
|
19
20
|
props: {
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
paused: !n[0].state.visible,
|
|
22
|
+
url: n[0].data.audioUrl,
|
|
23
|
+
hooksInfo: { tag: n[0] },
|
|
22
24
|
style: "width: max-content; height: max-content;",
|
|
23
25
|
slotWrapperStyle: "display: flex; align-items: center; justify-content: center;",
|
|
24
26
|
$$slots: {
|
|
25
27
|
currentTime: [
|
|
26
28
|
H,
|
|
27
|
-
({ duration:
|
|
28
|
-
({ duration:
|
|
29
|
+
({ duration: i, currentTime: a, playing: l }) => ({ 4: i, 5: a, 6: l }),
|
|
30
|
+
({ duration: i, currentTime: a, playing: l }) => (i ? 16 : 0) | (a ? 32 : 0) | (l ? 64 : 0)
|
|
29
31
|
],
|
|
30
32
|
audioIcon: [
|
|
31
33
|
D,
|
|
32
|
-
({ playing:
|
|
33
|
-
({ playing:
|
|
34
|
+
({ playing: i }) => ({ 6: i }),
|
|
35
|
+
({ playing: i }) => i ? 64 : 0
|
|
34
36
|
],
|
|
35
37
|
default: [B]
|
|
36
38
|
},
|
|
37
|
-
$$scope: { ctx:
|
|
39
|
+
$$scope: { ctx: n }
|
|
38
40
|
}
|
|
39
41
|
}), {
|
|
40
42
|
c() {
|
|
41
|
-
o = d("div"), t = d("div"), _(e.$$.fragment),
|
|
43
|
+
o = d("div"), t = d("div"), _(e.$$.fragment), s(t, "class", "audio-tag svelte-1fezrt1"), g(t, "background-color", n[1]), g(t, "color", n[2]), s(o, "class", "audio-tag__wrapper svelte-1fezrt1");
|
|
42
44
|
},
|
|
43
|
-
m(
|
|
44
|
-
|
|
45
|
+
m(i, a) {
|
|
46
|
+
f(i, o, a), j(o, t), b(e, t, null), r = !0;
|
|
45
47
|
},
|
|
46
|
-
p(
|
|
48
|
+
p(i, a) {
|
|
47
49
|
const l = {};
|
|
48
|
-
a & 1 && (l.url =
|
|
50
|
+
a & 1 && (l.paused = !i[0].state.visible), a & 1 && (l.url = i[0].data.audioUrl), a & 1 && (l.hooksInfo = { tag: i[0] }), a & 248 && (l.$$scope = { dirty: a, ctx: i }), e.$set(l), a & 2 && g(t, "background-color", i[1]), a & 4 && g(t, "color", i[2]);
|
|
49
51
|
},
|
|
50
|
-
i(
|
|
51
|
-
r || (m(e.$$.fragment,
|
|
52
|
+
i(i) {
|
|
53
|
+
r || (m(e.$$.fragment, i), r = !0);
|
|
52
54
|
},
|
|
53
|
-
o(
|
|
54
|
-
c(e.$$.fragment,
|
|
55
|
+
o(i) {
|
|
56
|
+
c(e.$$.fragment, i), r = !1;
|
|
55
57
|
},
|
|
56
|
-
d(
|
|
57
|
-
|
|
58
|
+
d(i) {
|
|
59
|
+
i && u(o), h(e);
|
|
58
60
|
}
|
|
59
61
|
};
|
|
60
62
|
}
|
|
61
|
-
function Y(
|
|
63
|
+
function Y(n) {
|
|
62
64
|
let o;
|
|
63
65
|
return {
|
|
64
66
|
c() {
|
|
65
|
-
o = T(
|
|
67
|
+
o = T(n[3]);
|
|
66
68
|
},
|
|
67
69
|
m(t, e) {
|
|
68
|
-
|
|
70
|
+
f(t, o, e);
|
|
69
71
|
},
|
|
70
72
|
p(t, e) {
|
|
71
73
|
e & 8 && y(o, t[3]);
|
|
@@ -75,24 +77,24 @@ function Y(i) {
|
|
|
75
77
|
}
|
|
76
78
|
};
|
|
77
79
|
}
|
|
78
|
-
function B(
|
|
80
|
+
function B(n) {
|
|
79
81
|
let o, t, e;
|
|
80
82
|
return t = new F({
|
|
81
83
|
props: {
|
|
82
84
|
maxWidth: 72,
|
|
83
85
|
$$slots: { default: [Y] },
|
|
84
|
-
$$scope: { ctx:
|
|
86
|
+
$$scope: { ctx: n }
|
|
85
87
|
}
|
|
86
88
|
}), {
|
|
87
89
|
c() {
|
|
88
|
-
o = d("div"), _(t.$$.fragment),
|
|
90
|
+
o = d("div"), _(t.$$.fragment), s(o, "class", "text svelte-1fezrt1");
|
|
89
91
|
},
|
|
90
|
-
m(r,
|
|
91
|
-
|
|
92
|
+
m(r, i) {
|
|
93
|
+
f(r, o, i), b(t, o, null), e = !0;
|
|
92
94
|
},
|
|
93
|
-
p(r,
|
|
95
|
+
p(r, i) {
|
|
94
96
|
const a = {};
|
|
95
|
-
|
|
97
|
+
i & 136 && (a.$$scope = { dirty: i, ctx: r }), t.$set(a);
|
|
96
98
|
},
|
|
97
99
|
i(r) {
|
|
98
100
|
e || (m(t.$$.fragment, r), e = !0);
|
|
@@ -101,22 +103,22 @@ function B(i) {
|
|
|
101
103
|
c(t.$$.fragment, r), e = !1;
|
|
102
104
|
},
|
|
103
105
|
d(r) {
|
|
104
|
-
r && u(o),
|
|
106
|
+
r && u(o), h(t);
|
|
105
107
|
}
|
|
106
108
|
};
|
|
107
109
|
}
|
|
108
|
-
function D(
|
|
110
|
+
function D(n) {
|
|
109
111
|
let o, t, e;
|
|
110
|
-
return t = new E({ props: { playing:
|
|
112
|
+
return t = new E({ props: { playing: n[6] } }), {
|
|
111
113
|
c() {
|
|
112
|
-
o = d("div"), _(t.$$.fragment),
|
|
114
|
+
o = d("div"), _(t.$$.fragment), s(o, "slot", "audioIcon"), s(o, "class", "audio-icon__wrapper svelte-1fezrt1");
|
|
113
115
|
},
|
|
114
|
-
m(r,
|
|
115
|
-
|
|
116
|
+
m(r, i) {
|
|
117
|
+
f(r, o, i), b(t, o, null), e = !0;
|
|
116
118
|
},
|
|
117
|
-
p(r,
|
|
119
|
+
p(r, i) {
|
|
118
120
|
const a = {};
|
|
119
|
-
|
|
121
|
+
i & 64 && (a.playing = r[6]), t.$set(a);
|
|
120
122
|
},
|
|
121
123
|
i(r) {
|
|
122
124
|
e || (m(t.$$.fragment, r), e = !0);
|
|
@@ -125,18 +127,18 @@ function D(i) {
|
|
|
125
127
|
c(t.$$.fragment, r), e = !1;
|
|
126
128
|
},
|
|
127
129
|
d(r) {
|
|
128
|
-
r && u(o),
|
|
130
|
+
r && u(o), h(t);
|
|
129
131
|
}
|
|
130
132
|
};
|
|
131
133
|
}
|
|
132
|
-
function w(
|
|
133
|
-
let o = v(k(
|
|
134
|
+
function w(n) {
|
|
135
|
+
let o = v(k(n[6] ? n[5] : n[4])) + "", t;
|
|
134
136
|
return {
|
|
135
137
|
c() {
|
|
136
138
|
t = T(o);
|
|
137
139
|
},
|
|
138
140
|
m(e, r) {
|
|
139
|
-
|
|
141
|
+
f(e, t, r);
|
|
140
142
|
},
|
|
141
143
|
p(e, r) {
|
|
142
144
|
r & 112 && o !== (o = v(k(e[6] ? e[5] : e[4])) + "") && y(t, o);
|
|
@@ -146,14 +148,14 @@ function w(i) {
|
|
|
146
148
|
}
|
|
147
149
|
};
|
|
148
150
|
}
|
|
149
|
-
function H(
|
|
150
|
-
let o, t = typeof (
|
|
151
|
+
function H(n) {
|
|
152
|
+
let o, t = typeof (n[6] ? n[5] : n[4]) == "number" && w(n);
|
|
151
153
|
return {
|
|
152
154
|
c() {
|
|
153
|
-
o = d("div"), t && t.c(),
|
|
155
|
+
o = d("div"), t && t.c(), s(o, "slot", "currentTime"), s(o, "class", "currentTime svelte-1fezrt1");
|
|
154
156
|
},
|
|
155
157
|
m(e, r) {
|
|
156
|
-
|
|
158
|
+
f(e, o, r), t && t.m(o, null);
|
|
157
159
|
},
|
|
158
160
|
p(e, r) {
|
|
159
161
|
typeof (e[6] ? e[5] : e[4]) == "number" ? t ? t.p(e, r) : (t = w(e), t.c(), t.m(o, null)) : t && (t.d(1), t = null);
|
|
@@ -163,17 +165,17 @@ function H(i) {
|
|
|
163
165
|
}
|
|
164
166
|
};
|
|
165
167
|
}
|
|
166
|
-
function J(
|
|
167
|
-
let o, t, e =
|
|
168
|
+
function J(n) {
|
|
169
|
+
let o, t, e = n[0].state && z(n);
|
|
168
170
|
return {
|
|
169
171
|
c() {
|
|
170
172
|
e && e.c(), o = R();
|
|
171
173
|
},
|
|
172
|
-
m(r,
|
|
173
|
-
e && e.m(r,
|
|
174
|
+
m(r, i) {
|
|
175
|
+
e && e.m(r, i), f(r, o, i), t = !0;
|
|
174
176
|
},
|
|
175
|
-
p(r, [
|
|
176
|
-
r[0].state ? e ? (e.p(r,
|
|
177
|
+
p(r, [i]) {
|
|
178
|
+
r[0].state ? e ? (e.p(r, i), i & 1 && m(e, 1)) : (e = z(r), e.c(), m(e, 1), e.m(o.parentNode, o)) : e && (q(), c(e, 1, 1, () => {
|
|
177
179
|
e = null;
|
|
178
180
|
}), W());
|
|
179
181
|
},
|
|
@@ -188,26 +190,26 @@ function J(i) {
|
|
|
188
190
|
}
|
|
189
191
|
};
|
|
190
192
|
}
|
|
191
|
-
function K(
|
|
192
|
-
let e, r,
|
|
193
|
-
return
|
|
193
|
+
function K(n, o, t) {
|
|
194
|
+
let e, r, i, { tag: a } = o;
|
|
195
|
+
return n.$$set = (l) => {
|
|
194
196
|
"tag" in l && t(0, a = l.tag);
|
|
195
|
-
},
|
|
196
|
-
var l,
|
|
197
|
-
|
|
197
|
+
}, n.$$.update = () => {
|
|
198
|
+
var l, $;
|
|
199
|
+
n.$$.dirty & 1 && t(3, e = ($ = (l = a.data.title) != null ? l : a.data.text) != null ? $ : ""), n.$$.dirty & 1 && t(1, r = (() => {
|
|
198
200
|
var p;
|
|
199
201
|
return a.data.backgroundColor === "dark" ? "rgba(0, 0, 0, 0.3)" : a.data.backgroundColor === "light" ? "rgba(255, 255, 255, 0.3)" : (p = a.data.backgroundColor) != null ? p : "rgba(0, 0, 0, 0.3)";
|
|
200
|
-
})()),
|
|
202
|
+
})()), n.$$.dirty & 2 && t(2, i = (() => {
|
|
201
203
|
const { r: p, g: C, b: I } = M(r);
|
|
202
204
|
return (p * 299 + C * 587 + I * 114) / 1e3 >= 128 ? "rgba(0, 0, 0, 0.6)" : "white";
|
|
203
205
|
})());
|
|
204
|
-
}, [a, r,
|
|
206
|
+
}, [a, r, i, e];
|
|
205
207
|
}
|
|
206
|
-
class
|
|
208
|
+
class le extends S {
|
|
207
209
|
constructor(o) {
|
|
208
210
|
super(), A(this, o, K, J, P, { tag: 0 }, N);
|
|
209
211
|
}
|
|
210
212
|
}
|
|
211
213
|
export {
|
|
212
|
-
|
|
214
|
+
le as default
|
|
213
215
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as K, init as P, safe_not_equal as Q, append_styles as V, empty as X, insert as M, transition_in as g, transition_out as
|
|
1
|
+
import { SvelteComponent as K, init as P, safe_not_equal as Q, append_styles as V, empty as X, insert as M, transition_in as g, transition_out as _, check_outros as E, detach as R, element as w, create_component as b, space as U, attr as k, add_render_callback as G, set_style as Y, toggle_class as L, mount_component as I, append as $, add_resize_listener as Z, listen as x, group_outros as H, destroy_component as z, create_in_transition as ee, create_out_transition as te } from "../../../../vendor/svelte/internal/index.js";
|
|
2
2
|
import { cubicInOut as N } from "../../../../vendor/svelte/easing/index.js";
|
|
3
3
|
import { fade as O } from "../../../../vendor/svelte/transition/index.js";
|
|
4
4
|
import ie from "../../Common/Audio.js";
|
|
@@ -6,6 +6,7 @@ import ne from "../../Common/Line/Straight.js";
|
|
|
6
6
|
import J from "../../Common/Shadow.js";
|
|
7
7
|
import oe from "../../Common/Text/FlyMText.js";
|
|
8
8
|
import re from "../../Common/Icon/audioIcon.js";
|
|
9
|
+
import "../../../../shared-utils/audio.js";
|
|
9
10
|
import "../../../../shared-utils/uuid.js";
|
|
10
11
|
import "../../Common/Text/FlyText.js";
|
|
11
12
|
import "animejs";
|
|
@@ -22,7 +23,7 @@ function ae(e) {
|
|
|
22
23
|
}
|
|
23
24
|
function j(e) {
|
|
24
25
|
var T, W;
|
|
25
|
-
let t, n, o, i, a, s, m, r, f, u,
|
|
26
|
+
let t, n, o, i, a, s, m, r, f, u, h, c, v, A, S;
|
|
26
27
|
n = new J({
|
|
27
28
|
props: {
|
|
28
29
|
visible: e[5],
|
|
@@ -49,15 +50,15 @@ function j(e) {
|
|
|
49
50
|
}
|
|
50
51
|
}), {
|
|
51
52
|
c() {
|
|
52
|
-
t = w("div"), b(n.$$.fragment), o = U(), i = w("div"), a = w("div"), s = w("div"), d && d.c(), m = U(), r = w("div"), b(f.$$.fragment),
|
|
53
|
+
t = w("div"), b(n.$$.fragment), o = U(), i = w("div"), a = w("div"), s = w("div"), d && d.c(), m = U(), r = w("div"), b(f.$$.fragment), h = U(), b(c.$$.fragment), k(s, "class", "audio-icon svelte-1s6gk4a"), G(() => e[7].call(r)), Y(r, "display", "inline-block"), k(a, "class", "wrapper svelte-1s6gk4a"), k(i, "class", "content svelte-1s6gk4a"), k(t, "class", "audio-tag svelte-1s6gk4a"), L(t, "unfolded", e[5]);
|
|
53
54
|
},
|
|
54
55
|
m(l, p) {
|
|
55
|
-
M(l, t, p), I(n, t, null), $(t, o), $(t, i), $(i, a), $(a, s), d && d.m(s, null), $(a, m), $(a, r), I(f, r, null), u = Z(r, e[7].bind(r)), $(t,
|
|
56
|
+
M(l, t, p), I(n, t, null), $(t, o), $(t, i), $(i, a), $(a, s), d && d.m(s, null), $(a, m), $(a, r), I(f, r, null), u = Z(r, e[7].bind(r)), $(t, h), I(c, t, null), v = !0, A || (S = x(r, "click", e[6]), A = !0);
|
|
56
57
|
},
|
|
57
58
|
p(l, p) {
|
|
58
59
|
var q, F;
|
|
59
60
|
const C = {};
|
|
60
|
-
p & 32 && (C.visible = l[5]), p & 4 && (C.left = l[2] / 2 + "px"), n.$set(C), l[5] ? d ? (d.p(l, p), p & 32 && g(d, 1)) : (d = B(l), d.c(), g(d, 1), d.m(s, null)) : d && (H(),
|
|
61
|
+
p & 32 && (C.visible = l[5]), p & 4 && (C.left = l[2] / 2 + "px"), n.$set(C), l[5] ? d ? (d.p(l, p), p & 32 && g(d, 1)) : (d = B(l), d.c(), g(d, 1), d.m(s, null)) : d && (H(), _(d, 1, 1, () => {
|
|
61
62
|
d = null;
|
|
62
63
|
}), E());
|
|
63
64
|
const y = {};
|
|
@@ -69,7 +70,7 @@ function j(e) {
|
|
|
69
70
|
v || (g(n.$$.fragment, l), g(d), g(f.$$.fragment, l), g(c.$$.fragment, l), v = !0);
|
|
70
71
|
},
|
|
71
72
|
o(l) {
|
|
72
|
-
|
|
73
|
+
_(n.$$.fragment, l), _(d), _(f.$$.fragment, l), _(c.$$.fragment, l), v = !1;
|
|
73
74
|
},
|
|
74
75
|
d(l) {
|
|
75
76
|
l && R(t), z(n), d && d.d(), z(f), u(), z(c), A = !1, S();
|
|
@@ -121,7 +122,7 @@ function B(e) {
|
|
|
121
122
|
},
|
|
122
123
|
o(r) {
|
|
123
124
|
var f, u;
|
|
124
|
-
|
|
125
|
+
_(n.$$.fragment, r), _(i.$$.fragment, r), a && a.invalidate(), r && (s = te(t, O, {
|
|
125
126
|
duration: 1e3,
|
|
126
127
|
delay: 20 * Math.min((u = (f = e[4]) == null ? void 0 : f.length) != null ? u : 10, 15),
|
|
127
128
|
easing: N
|
|
@@ -149,7 +150,7 @@ function le(e) {
|
|
|
149
150
|
o || (g(n.$$.fragment, i), o = !0);
|
|
150
151
|
},
|
|
151
152
|
o(i) {
|
|
152
|
-
|
|
153
|
+
_(n.$$.fragment, i), o = !1;
|
|
153
154
|
},
|
|
154
155
|
d(i) {
|
|
155
156
|
i && R(t), z(n);
|
|
@@ -166,7 +167,7 @@ function se(e) {
|
|
|
166
167
|
o && o.m(i, a), M(i, t, a), n = !0;
|
|
167
168
|
},
|
|
168
169
|
p(i, [a]) {
|
|
169
|
-
i[0].state ? o ? (o.p(i, a), a & 1 && g(o, 1)) : (o = j(i), o.c(), g(o, 1), o.m(t.parentNode, t)) : o && (H(),
|
|
170
|
+
i[0].state ? o ? (o.p(i, a), a & 1 && g(o, 1)) : (o = j(i), o.c(), g(o, 1), o.m(t.parentNode, t)) : o && (H(), _(o, 1, 1, () => {
|
|
170
171
|
o = null;
|
|
171
172
|
}), E());
|
|
172
173
|
},
|
|
@@ -174,7 +175,7 @@ function se(e) {
|
|
|
174
175
|
n || (g(o), n = !0);
|
|
175
176
|
},
|
|
176
177
|
o(i) {
|
|
177
|
-
|
|
178
|
+
_(o), n = !1;
|
|
178
179
|
},
|
|
179
180
|
d(i) {
|
|
180
181
|
o && o.d(i), i && R(t);
|
|
@@ -189,11 +190,11 @@ function fe(e, t, n) {
|
|
|
189
190
|
function u() {
|
|
190
191
|
r = this.clientWidth, n(2, r);
|
|
191
192
|
}
|
|
192
|
-
return e.$$set = (
|
|
193
|
-
"tag" in
|
|
193
|
+
return e.$$set = (h) => {
|
|
194
|
+
"tag" in h && n(0, s = h.tag);
|
|
194
195
|
}, e.$$.update = () => {
|
|
195
|
-
var
|
|
196
|
-
e.$$.dirty & 1 && n(5, o = !!((
|
|
196
|
+
var h, c, v;
|
|
197
|
+
e.$$.dirty & 1 && n(5, o = !!((h = s.state) != null && h.unfolded)), e.$$.dirty & 1 && n(4, i = (v = (c = s.data.title) != null ? c : s.data.text) != null ? v : ""), e.$$.dirty & 2 && n(3, a = m ? 450 : 0);
|
|
197
198
|
}, [
|
|
198
199
|
s,
|
|
199
200
|
m,
|
|
@@ -205,11 +206,11 @@ function fe(e, t, n) {
|
|
|
205
206
|
u
|
|
206
207
|
];
|
|
207
208
|
}
|
|
208
|
-
class
|
|
209
|
+
class Ce extends K {
|
|
209
210
|
constructor(t) {
|
|
210
211
|
super(), P(this, t, fe, se, Q, { tag: 0 }, ae);
|
|
211
212
|
}
|
|
212
213
|
}
|
|
213
214
|
export {
|
|
214
|
-
|
|
215
|
+
Ce as default
|
|
215
216
|
};
|
|
@@ -4,6 +4,7 @@ import q from "./AudioPlaneTag.js";
|
|
|
4
4
|
import "../../../../vendor/svelte/easing/index.js";
|
|
5
5
|
import "../../../../vendor/svelte/transition/index.js";
|
|
6
6
|
import "../../Common/Audio.js";
|
|
7
|
+
import "../../../../shared-utils/audio.js";
|
|
7
8
|
import "../../Common/Line/Straight.js";
|
|
8
9
|
import "../../../../shared-utils/uuid.js";
|
|
9
10
|
import "../../Common/Shadow.js";
|
|
@@ -110,11 +111,11 @@ function P(a, t, r) {
|
|
|
110
111
|
a.$$.dirty & 1 && r(1, e = (n = o.data.appearance) != null ? n : "line");
|
|
111
112
|
}, [o, e];
|
|
112
113
|
}
|
|
113
|
-
class
|
|
114
|
+
class rt extends d {
|
|
114
115
|
constructor(t) {
|
|
115
116
|
super(), $(this, t, P, N, k, { tag: 0 });
|
|
116
117
|
}
|
|
117
118
|
}
|
|
118
119
|
export {
|
|
119
|
-
|
|
120
|
+
rt as default
|
|
120
121
|
};
|