@realsee/dnalogel 2.1.0-alpha.27 → 2.1.0-alpha.29
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 +556 -0
- package/dist/index.es.js +8387 -8231
- package/dist/index.js +8387 -8231
- package/dist/index.umd.js +556 -0
- package/docs/classes/CruisePluginController.html +14 -14
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/classes/Object3DHelperController.html +9 -9
- package/docs/classes/PaintBrush.html +3 -3
- package/docs/classes/PanoTagPluginController.html +23 -23
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/ContentType.html +7 -7
- package/docs/enums/DIRECTION.html +1 -1
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/DimensionType.html +1 -1
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/LinkType.html +1 -1
- package/docs/enums/PaintBrushTypeEnum.html +1 -1
- package/docs/enums/PointType.html +1 -1
- package/docs/enums/Rotation.html +2 -2
- package/docs/index.html +1 -1
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/ContentTypeMap.html +3 -3
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +7 -7
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +6 -6
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +1 -1
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
- package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
- package/docs/interfaces/FloorplanServerEntrance.html +7 -7
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +1 -1
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/LineJson.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
- package/docs/interfaces/ModelViewPluginExportType.html +1 -1
- package/docs/interfaces/Object3DHelperState.html +1 -1
- package/docs/interfaces/OpenParameter.html +2 -2
- package/docs/interfaces/PaintBrushAction.html +7 -7
- package/docs/interfaces/PaintBrushConfigs.html +1 -1
- package/docs/interfaces/PaintBrushState.html +1 -1
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +2 -2
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginState.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
- package/docs/interfaces/Point.html +1 -1
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/Room.html +1 -1
- package/docs/interfaces/RoomInfo.html +1 -1
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +5 -5
- package/docs/interfaces/TagConfig.html +3 -3
- package/docs/interfaces/Tags.html +3 -3
- package/docs/modules.html +21 -21
- package/libs/CSS3DRenderPlugin/CSS3DRender.d.ts +15 -4
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +197 -143
- package/libs/CSS3DRenderPlugin/Controller.d.ts +2 -0
- package/libs/CSS3DRenderPlugin/Controller.js +47 -26
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.d.ts +22 -4
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +56 -37
- package/libs/Object3DHelperPlugin/Controller.js +24 -23
- package/libs/PanoTagPlugin/Components/Common/Audio.js +39 -41
- package/libs/PanoTagPlugin/Components/Common/Media.js +1060 -1031
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +49 -57
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +27 -27
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +22 -22
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +7 -7
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +64 -66
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +100 -99
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +35 -33
- package/libs/PanoTagPlugin/Components/Tag/index.js +60 -63
- package/libs/PanoTagPlugin/Components/TagContainer.js +187 -0
- package/libs/PanoTagPlugin/Components/TagWrapper.js +61 -62
- package/libs/PanoTagPlugin/controller/TagComputer.js +1 -1
- package/libs/PanoTagPlugin/controller/index.d.ts +2 -1
- package/libs/PanoTagPlugin/controller/index.js +52 -42
- package/libs/PanoTagPlugin/index.js +2 -2
- package/libs/PanoTagPlugin/tag.config.js +1 -0
- package/libs/{TagComputer.0920083a.js → TagComputer.92e6d9a9.js} +0 -0
- package/libs/index.js +2 -2
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +63 -53
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +12 -13
- package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +43 -45
- package/libs/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +16 -10
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +43 -43
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +2 -2
- package/libs/shared-utils/Object3DHelper/index.js +12 -12
- package/package.json +2 -2
- package/libs/PanoTagPlugin/Components/PointTag.js +0 -162
|
@@ -1,48 +1,67 @@
|
|
|
1
1
|
var P = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var
|
|
2
|
+
var k = (p, h, t) => h in p ? P(p, h, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[h] = t;
|
|
3
|
+
var s = (p, h, t) => (k(p, typeof h != "symbol" ? h + "" : h, t), t);
|
|
4
4
|
import { CSS3DObject as D } from "three/examples/jsm/renderers/CSS3DRenderer";
|
|
5
|
-
import { Vector3 as
|
|
6
|
-
import { evenNumber as
|
|
7
|
-
import { centerPoint as
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
import { Vector3 as n } from "three";
|
|
6
|
+
import { evenNumber as f } from "./evenNumber.js";
|
|
7
|
+
import { centerPoint as W } from "./centerPoint.js";
|
|
8
|
+
import { Subscribe as j } from "../../shared-utils/Subscribe.js";
|
|
9
|
+
const w = "1.0.2", v = `CSS3DObjectPlus@${w}`, C = 216e-5, E = 3e-3;
|
|
10
|
+
class z extends D {
|
|
11
|
+
constructor(t, e, o = E, x = 1, M = "front") {
|
|
12
|
+
const l = Math.max(C, o), d = e[0].distanceTo(e[1]), m = e[1].distanceTo(e[2]), c = f(d / o * x), a = f(m / o * x), r = W(...e);
|
|
13
|
+
let u;
|
|
14
|
+
if (l === o)
|
|
15
|
+
t.style.width = `${c}px`, t.style.height = `${a}px`, u = t;
|
|
15
16
|
else {
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
const b =
|
|
19
|
-
t.style.position = "absolute", t.style.left = "0", t.style.top = "0", t.style.width = `${b *
|
|
17
|
+
const i = document.createElement("div");
|
|
18
|
+
i.style.width = `${c}px`, i.style.height = `${a}px`, i.style.pointerEvents = "none";
|
|
19
|
+
const b = o / l;
|
|
20
|
+
t.style.position = "absolute", t.style.left = "0", t.style.top = "0", t.style.width = `${b * c}px`, t.style.height = `${b * a}px`, i.appendChild(t), u = i;
|
|
20
21
|
}
|
|
21
|
-
super(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
22
|
+
super(u);
|
|
23
|
+
s(this, "version", w);
|
|
24
|
+
s(this, "width");
|
|
25
|
+
s(this, "height");
|
|
26
|
+
s(this, "domWidthPx");
|
|
27
|
+
s(this, "domHeightPx");
|
|
28
|
+
s(this, "cornerPoints");
|
|
29
|
+
s(this, "ratio");
|
|
30
|
+
s(this, "container");
|
|
31
|
+
s(this, "centerPosition");
|
|
32
|
+
s(this, "mode", "front");
|
|
33
|
+
s(this, "hooks", new j());
|
|
34
|
+
s(this, "isCSS3DObjectPlus", !0);
|
|
35
|
+
if (this.scale.set(l, l, l), this.cornerPoints = e, this.ratio = o, this.container = t, this.mode = M, l === o)
|
|
36
|
+
this.width = d, this.height = m, this.domWidthPx = c, this.domHeightPx = a, this.centerPosition = r;
|
|
33
37
|
else {
|
|
34
|
-
const
|
|
35
|
-
this.width =
|
|
38
|
+
const i = o / l;
|
|
39
|
+
this.width = i * d, this.height = i * m, this.domWidthPx = i * c, this.domHeightPx = i * a, this.centerPosition = new n().subVectors(r, e[0]).multiplyScalar(i).add(e[0]);
|
|
36
40
|
}
|
|
37
|
-
t.classList.add(`${
|
|
38
|
-
const
|
|
41
|
+
t.classList.add(`${v}__container`);
|
|
42
|
+
const V = new n().subVectors(e[1], e[0]), y = new n().subVectors(e[3], e[0]), $ = new n().crossVectors(V, y).normalize();
|
|
39
43
|
this.lookAt($);
|
|
40
|
-
const
|
|
41
|
-
this.rotateOnWorldAxis(O,
|
|
44
|
+
const g = this.up.clone().applyQuaternion(this.quaternion), S = y.clone(), O = new n().crossVectors(g, S).normalize();
|
|
45
|
+
this.rotateOnWorldAxis(O, g.angleTo(S)), this.position.copy(r);
|
|
46
|
+
}
|
|
47
|
+
changeMode(t, e) {
|
|
48
|
+
if (t === this.mode)
|
|
49
|
+
return;
|
|
50
|
+
const o = this.mode;
|
|
51
|
+
this.mode = t, this.hooks.emit("changeMode", t, o, e);
|
|
52
|
+
}
|
|
53
|
+
applyScaleMatrix4(t) {
|
|
54
|
+
this.scale.applyMatrix4(t), this.hooks.emit("applyScaleMatrix4", t);
|
|
55
|
+
}
|
|
56
|
+
applyMatrix4(t) {
|
|
57
|
+
super.applyMatrix4(t), this.hooks.emit("applyMatrix4", t);
|
|
58
|
+
}
|
|
59
|
+
applyQuaternion(t) {
|
|
60
|
+
return super.applyQuaternion(t), this.hooks.emit("applyQuaternion", t), this;
|
|
42
61
|
}
|
|
43
62
|
}
|
|
44
63
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
64
|
+
z as CSS3DObjectPlus,
|
|
65
|
+
E as DefaultRatio,
|
|
66
|
+
C as MinRatio
|
|
48
67
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var C = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var n = (
|
|
4
|
-
import { Controller as
|
|
2
|
+
var S = (o, i, e) => i in o ? C(o, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[i] = e;
|
|
3
|
+
var n = (o, i, e) => (S(o, typeof i != "symbol" ? i + "" : i, e), e);
|
|
4
|
+
import { Controller as g } from "../base/BasePlugin.js";
|
|
5
5
|
import "three";
|
|
6
|
-
import { MoveHelper as
|
|
6
|
+
import { MoveHelper as w } from "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
7
7
|
import { RotateHelper as E } from "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
8
8
|
import { RectangleScaleHelper as M } from "../shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js";
|
|
9
9
|
import "../shared-utils/Object3DHelper/Helper/OutlineHelper.js";
|
|
10
10
|
import { MoveController as O } from "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
11
11
|
import { ControllerWrapper as p } from "./FiveControllerWrapper.js";
|
|
12
|
-
import { Object3DHelper as
|
|
13
|
-
import { RotateController as
|
|
12
|
+
import { Object3DHelper as D } from "../shared-utils/Object3DHelper/index.js";
|
|
13
|
+
import { RotateController as y } from "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
14
14
|
import { CSS3DScaleController as I } from "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
15
15
|
import "../shared-utils/Subscribe.js";
|
|
16
16
|
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
@@ -33,14 +33,14 @@ import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
|
33
33
|
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
34
34
|
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
35
35
|
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
36
|
-
const f = "v1.0.0", d = "Object3DHelperPlugin", h = `${d}@${f}`,
|
|
36
|
+
const f = "v1.0.0", d = "Object3DHelperPlugin", h = `${d}@${f}`, k = () => {
|
|
37
37
|
console.error(`${h} is disposed`);
|
|
38
|
-
},
|
|
38
|
+
}, F = () => {
|
|
39
39
|
console.warn(`${h} is disabled`);
|
|
40
|
-
},
|
|
40
|
+
}, P = () => {
|
|
41
41
|
console.error(`${h} is disabled`);
|
|
42
42
|
};
|
|
43
|
-
class he extends
|
|
43
|
+
class he extends g {
|
|
44
44
|
constructor(e) {
|
|
45
45
|
super(e);
|
|
46
46
|
n(this, "version", f);
|
|
@@ -51,7 +51,7 @@ class he extends S {
|
|
|
51
51
|
disposed: !1
|
|
52
52
|
});
|
|
53
53
|
n(this, "objectHelperMap", /* @__PURE__ */ new Map());
|
|
54
|
-
this.five = e, Object.assign(window, { [`__${d.toUpperCase()}_DEBUG__`]: this });
|
|
54
|
+
this.five = e, console.warn("Object3DHelper: \u4F7F\u7528\u6B64\u63D2\u4EF6\u9700\u8981\u5728\u521D\u59CB\u5316five\u65F6\uFF0C\u8BBE\u7F6Efive\u53C2\u6570: { backgroundAlpha: 0, backgroundColor: 0x000000 }"), Object.assign(window, { [`__${d.toUpperCase()}_DEBUG__`]: this });
|
|
55
55
|
}
|
|
56
56
|
async show(e) {
|
|
57
57
|
this.setState({ visible: !0 }, e);
|
|
@@ -70,9 +70,9 @@ class he extends S {
|
|
|
70
70
|
}
|
|
71
71
|
setState(e, t) {
|
|
72
72
|
if (this.state.disposed)
|
|
73
|
-
return
|
|
73
|
+
return k();
|
|
74
74
|
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
75
|
-
return
|
|
75
|
+
return P();
|
|
76
76
|
const r = { ...this.state };
|
|
77
77
|
this.state = { ...this.state, ...e }, e.disposed !== void 0 && e.disposed !== r.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== r.visible && this.handleVisible(e.visible), e.enabled !== void 0 && e.enabled !== r.enabled && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: r });
|
|
78
78
|
}
|
|
@@ -84,30 +84,31 @@ class he extends S {
|
|
|
84
84
|
if (!e)
|
|
85
85
|
return console.error("Object3D is undefined");
|
|
86
86
|
if (this.objectHelperMap.has(e)) {
|
|
87
|
-
console.warn(`Object3DHelperPlugin: object3D ${e.name} already has helper`);
|
|
87
|
+
console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
90
|
-
const r = new
|
|
90
|
+
const r = new D();
|
|
91
91
|
this.objectHelperMap.set(e, r);
|
|
92
|
-
const a = (c = this.five.getElement()) == null ? void 0 : c.parentElement, m = this.five.camera, { moveHelper: b = !0, rotateHelper:
|
|
92
|
+
const a = (c = this.five.getElement()) == null ? void 0 : c.parentElement, m = this.five.camera, { moveHelper: b = !0, rotateHelper: u = !0, scaleHelper: v = !0 } = t;
|
|
93
93
|
if (b) {
|
|
94
|
-
const s = new
|
|
94
|
+
const s = new w(e), l = new p(this.five, O, e, s);
|
|
95
95
|
r.addControllers({ moveController: l.helperController });
|
|
96
96
|
}
|
|
97
|
-
if (
|
|
97
|
+
if (u) {
|
|
98
98
|
let s;
|
|
99
99
|
a && m && (s = { container: a });
|
|
100
|
-
const l = new E(e, s),
|
|
101
|
-
r.addControllers({ rotateController:
|
|
100
|
+
const l = new E(e, s), H = new p(this.five, y, e, l);
|
|
101
|
+
r.addControllers({ rotateController: H.helperController });
|
|
102
102
|
}
|
|
103
|
-
if (
|
|
103
|
+
if (v && a) {
|
|
104
104
|
const s = new M(e, a, m, this.five.scene), l = new p(this.five, I, e, s);
|
|
105
105
|
r.addControllers({ scaleController: l.helperController });
|
|
106
106
|
}
|
|
107
|
+
e.isCSS3DObjectPlus && e.changeMode("behind", this.five.scene);
|
|
107
108
|
}
|
|
108
109
|
removeObject3DHelper(e) {
|
|
109
110
|
const t = this.objectHelperMap.get(e);
|
|
110
|
-
!t || (this.objectHelperMap.delete(e), t.dispose());
|
|
111
|
+
!t || (e.isCSS3DObjectPlus && e.changeMode("front"), this.objectHelperMap.delete(e), t.dispose());
|
|
111
112
|
}
|
|
112
113
|
handleEnable(e, t = !0) {
|
|
113
114
|
e ? (this.everyHelperDo((r) => r.enable()), this.hooks.emit("enable", { userAction: t })) : (this.everyHelperDo((r) => r.disable()), this.hooks.emit("disable", { userAction: t })), this.state.enabled = e;
|
|
@@ -126,7 +127,7 @@ class he extends S {
|
|
|
126
127
|
actionIfStateIsEnabled(e, t) {
|
|
127
128
|
if (this.state.enabled)
|
|
128
129
|
return e();
|
|
129
|
-
t != null && t.warnLog &&
|
|
130
|
+
t != null && t.warnLog && F();
|
|
130
131
|
}
|
|
131
132
|
}
|
|
132
133
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
import { f as
|
|
3
|
-
import { a as
|
|
1
|
+
import { S as B, i as L, s as O, a as q, r as R, c as S, f as v, t as C, d as T, g as j, V as z, e as y, j as G, o as E, b as h, l as F, I as A, m as K, p, K as b, W as N, z as P, M as U, T as V, k as W, L as H, h as J, G as Q } from "../../../index.164f1850.js";
|
|
2
|
+
import { f as I } from "../../../index.dca207cb.js";
|
|
3
|
+
import { a as D } from "../../../index.6a0eead1.js";
|
|
4
4
|
import X from "./Shadow.js";
|
|
5
5
|
function Y(t) {
|
|
6
|
-
|
|
6
|
+
q(t, "svelte-1ku3wt4", `.audio.svelte-1ku3wt4.svelte-1ku3wt4{position:relative;width:100%;height:100%;cursor:pointer}@keyframes svelte-1ku3wt4-playing{25%{background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='9' cy='9' r='8' transform='translate(-1 -1)' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}50%{background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM5.533 6.685L4.169 8.049l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}75%{background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm-.656 4.874l-.906.905A3.35 3.35 0 0 1 7.369 8.1c0 .875-.333 1.67-.88 2.268l.906.906A4.628 4.628 0 0 0 8.65 8.101a4.627 4.627 0 0 0-1.306-3.227zm-1.811 1.81L4.169 8.05l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}}.paused.svelte-1ku3wt4 .audio-icon.svelte-1ku3wt4{animation:none}.audio-icon.svelte-1ku3wt4.svelte-1ku3wt4{width:100%;height:100%;border-radius:50%;background-size:100%;animation:svelte-1ku3wt4-playing 2s steps(1) infinite;background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm1.428 2.79l-.953.952a6.222 6.222 0 0 1 1.775 4.36c0 1.571-.58 3.006-1.538 4.103l-.184.202.793.794a7.344 7.344 0 0 0 2.21-5.26A7.341 7.341 0 0 0 9.428 2.79zM7.344 4.873l-.906.905A3.35 3.35 0 0 1 7.369 8.1c0 .802-.28 1.537-.748 2.115l-.132.153.906.906A4.628 4.628 0 0 0 8.65 8.101a4.627 4.627 0 0 0-1.306-3.227zm-1.811 1.81L4.169 8.05l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}`);
|
|
7
7
|
}
|
|
8
|
-
function
|
|
9
|
-
let e, n, i, l, r, o,
|
|
8
|
+
function M(t) {
|
|
9
|
+
let e, n, i, l, r, o, f, d = !0, c, g, a, m, w;
|
|
10
10
|
return n = new X({
|
|
11
11
|
props: {
|
|
12
12
|
center: !0,
|
|
@@ -15,73 +15,73 @@ function S(t) {
|
|
|
15
15
|
}
|
|
16
16
|
}), {
|
|
17
17
|
c() {
|
|
18
|
-
e = y("div"), G(n.$$.fragment), i =
|
|
18
|
+
e = y("div"), G(n.$$.fragment), i = E(), l = y("div"), r = E(), o = y("audio"), h(l, "class", "audio-icon svelte-1ku3wt4"), o.controls = !1, h(o, "playsinline", ""), F(o.src, f = t[3]) || h(o, "src", f), h(e, "class", "audio svelte-1ku3wt4"), A(e, "paused", t[6]);
|
|
19
19
|
},
|
|
20
20
|
m(u, _) {
|
|
21
|
-
|
|
22
|
-
b(o, "play", t[
|
|
23
|
-
b(o, "pause", t[
|
|
21
|
+
S(u, e, _), K(n, e, null), p(e, i), p(e, l), p(e, r), p(e, o), t[9](o), a = !0, m || (w = [
|
|
22
|
+
b(o, "play", t[10]),
|
|
23
|
+
b(o, "pause", t[10]),
|
|
24
24
|
b(e, "click", N(t[7]))
|
|
25
25
|
], m = !0);
|
|
26
26
|
},
|
|
27
27
|
p(u, _) {
|
|
28
|
-
t = u, (!a || _ & 8 && !
|
|
28
|
+
t = u, (!a || _ & 8 && !F(o.src, f = t[3])) && h(o, "src", f), _ & 64 && d !== (d = t[6]) && o[d ? "pause" : "play"](), (!a || _ & 64) && A(e, "paused", t[6]);
|
|
29
29
|
},
|
|
30
30
|
i(u) {
|
|
31
|
-
a || (
|
|
32
|
-
|
|
31
|
+
a || (v(n.$$.fragment, u), u && P(() => {
|
|
32
|
+
g && g.end(1), c = U(e, I, {
|
|
33
33
|
duration: t[2],
|
|
34
34
|
delay: t[0],
|
|
35
|
-
easing:
|
|
36
|
-
}),
|
|
35
|
+
easing: D
|
|
36
|
+
}), c.start();
|
|
37
37
|
}), a = !0);
|
|
38
38
|
},
|
|
39
39
|
o(u) {
|
|
40
|
-
C(n.$$.fragment, u),
|
|
40
|
+
C(n.$$.fragment, u), c && c.invalidate(), u && (g = V(e, I, {
|
|
41
41
|
duration: t[2],
|
|
42
42
|
delay: t[1],
|
|
43
|
-
easing:
|
|
43
|
+
easing: D
|
|
44
44
|
})), a = !1;
|
|
45
45
|
},
|
|
46
46
|
d(u) {
|
|
47
|
-
u &&
|
|
47
|
+
u && j(e), W(n), t[9](null), u && g && g.end(), m = !1, H(w);
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
function Z(t) {
|
|
52
|
-
let e, n, i = t[4] &&
|
|
52
|
+
let e, n, i = t[4] && M(t);
|
|
53
53
|
return {
|
|
54
54
|
c() {
|
|
55
|
-
i && i.c(), e =
|
|
55
|
+
i && i.c(), e = R();
|
|
56
56
|
},
|
|
57
57
|
m(l, r) {
|
|
58
|
-
i && i.m(l, r),
|
|
58
|
+
i && i.m(l, r), S(l, e, r), n = !0;
|
|
59
59
|
},
|
|
60
60
|
p(l, [r]) {
|
|
61
|
-
l[4] ? i ? (i.p(l, r), r & 16 &&
|
|
61
|
+
l[4] ? i ? (i.p(l, r), r & 16 && v(i, 1)) : (i = M(l), i.c(), v(i, 1), i.m(e.parentNode, e)) : i && (J(), C(i, 1, 1, () => {
|
|
62
62
|
i = null;
|
|
63
|
-
}),
|
|
63
|
+
}), T());
|
|
64
64
|
},
|
|
65
65
|
i(l) {
|
|
66
|
-
n || (
|
|
66
|
+
n || (v(i), n = !0);
|
|
67
67
|
},
|
|
68
68
|
o(l) {
|
|
69
69
|
C(i), n = !1;
|
|
70
70
|
},
|
|
71
71
|
d(l) {
|
|
72
|
-
i && i.d(l), l &&
|
|
72
|
+
i && i.d(l), l && j(e);
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
function x(t, e, n) {
|
|
77
|
-
let { inDelay: i = 0 } = e, { outDelay: l = 0 } = e, { duration: r = 0 } = e, { url: o } = e, { unfolded:
|
|
78
|
-
const
|
|
77
|
+
let { inDelay: i = 0 } = e, { outDelay: l = 0 } = e, { duration: r = 0 } = e, { url: o } = e, { unfolded: f } = e, { hooksInfo: d = {} } = e;
|
|
78
|
+
const c = z("hooks"), g = z("mediaStore");
|
|
79
79
|
let a, m = !0;
|
|
80
80
|
g.subscribe(({ currentMediaUrl: s }) => {
|
|
81
81
|
s !== o && (a == null || a.pause());
|
|
82
82
|
});
|
|
83
83
|
function w(s) {
|
|
84
|
-
g.set({ currentMediaUrl: o }), a && (
|
|
84
|
+
g.set({ currentMediaUrl: o }), a && (c.emit("click", Object.assign(
|
|
85
85
|
{
|
|
86
86
|
event: s,
|
|
87
87
|
target: "AudioTagPlayIcon",
|
|
@@ -90,9 +90,9 @@ function x(t, e, n) {
|
|
|
90
90
|
d
|
|
91
91
|
)), a.paused ? a.play() : a.pause(), n(
|
|
92
92
|
5,
|
|
93
|
-
a.onplay = (
|
|
93
|
+
a.onplay = (k) => c.emit("playStateChange", Object.assign(
|
|
94
94
|
{
|
|
95
|
-
event:
|
|
95
|
+
event: k,
|
|
96
96
|
state: "playing",
|
|
97
97
|
mediaInstance: a
|
|
98
98
|
},
|
|
@@ -101,9 +101,9 @@ function x(t, e, n) {
|
|
|
101
101
|
a
|
|
102
102
|
), n(
|
|
103
103
|
5,
|
|
104
|
-
a.onpause = (
|
|
104
|
+
a.onpause = (k) => c.emit("playStateChange", Object.assign(
|
|
105
105
|
{
|
|
106
|
-
event:
|
|
106
|
+
event: k,
|
|
107
107
|
state: "paused",
|
|
108
108
|
mediaInstance: a
|
|
109
109
|
},
|
|
@@ -121,40 +121,38 @@ function x(t, e, n) {
|
|
|
121
121
|
m = this.paused, n(6, m);
|
|
122
122
|
}
|
|
123
123
|
return t.$$set = (s) => {
|
|
124
|
-
"inDelay" in s && n(0, i = s.inDelay), "outDelay" in s && n(1, l = s.outDelay), "duration" in s && n(2, r = s.duration), "url" in s && n(3, o = s.url), "unfolded" in s && n(4,
|
|
124
|
+
"inDelay" in s && n(0, i = s.inDelay), "outDelay" in s && n(1, l = s.outDelay), "duration" in s && n(2, r = s.duration), "url" in s && n(3, o = s.url), "unfolded" in s && n(4, f = s.unfolded), "hooksInfo" in s && n(8, d = s.hooksInfo);
|
|
125
125
|
}, t.$$.update = () => {
|
|
126
|
-
t.$$.dirty & 48 && (
|
|
126
|
+
t.$$.dirty & 48 && (f || a == null || a.pause());
|
|
127
127
|
}, [
|
|
128
128
|
i,
|
|
129
129
|
l,
|
|
130
130
|
r,
|
|
131
131
|
o,
|
|
132
|
-
|
|
132
|
+
f,
|
|
133
133
|
a,
|
|
134
134
|
m,
|
|
135
135
|
w,
|
|
136
|
-
g,
|
|
137
136
|
d,
|
|
138
137
|
u,
|
|
139
138
|
_
|
|
140
139
|
];
|
|
141
140
|
}
|
|
142
|
-
class ie extends
|
|
141
|
+
class ie extends B {
|
|
143
142
|
constructor(e) {
|
|
144
|
-
super(),
|
|
143
|
+
super(), L(
|
|
145
144
|
this,
|
|
146
145
|
e,
|
|
147
146
|
x,
|
|
148
147
|
Z,
|
|
149
|
-
|
|
148
|
+
O,
|
|
150
149
|
{
|
|
151
150
|
inDelay: 0,
|
|
152
151
|
outDelay: 1,
|
|
153
152
|
duration: 2,
|
|
154
153
|
url: 3,
|
|
155
154
|
unfolded: 4,
|
|
156
|
-
|
|
157
|
-
hooksInfo: 9
|
|
155
|
+
hooksInfo: 8
|
|
158
156
|
},
|
|
159
157
|
Y
|
|
160
158
|
);
|