@netless/app-slide 0.2.31-beta.1 → 0.2.31-beta.2
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/main.cjs.js +4 -4
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +9 -9
- package/dist/main.es.js.map +1 -1
- package/dist/main.iife.js +4 -4
- package/dist/main.iife.js.map +1 -1
- package/package.json +2 -2
package/dist/main.es.js
CHANGED
|
@@ -31294,11 +31294,11 @@ void main(void){
|
|
|
31294
31294
|
this.fullscreenStatus ? (this.fullScreenButton.style.display = "none", this.exitFullScreenButton.style.display = "block", this.mediaController.style.display = "flex", this.mediaController.style.opacity = n2) : (this.fullScreenButton.style.display = "block", this.exitFullScreenButton.style.display = "none", this.mediaController.style.display = "none", this.mediaController.style.opacity = r2);
|
|
31295
31295
|
}
|
|
31296
31296
|
bindEvent() {
|
|
31297
|
-
this.mediaController.addEventListener("
|
|
31297
|
+
this.mediaController.addEventListener("pointerover", this.showController, false), this.mediaController.addEventListener("pointerout", this.onMouseOut, false), this.progress.addEventListener("pointerdown", this.changeMediaProgress, false), this.playButton.addEventListener("click", this._playMediaFromCtrl, false), this.pauseButton.addEventListener("click", this._pauseMediaFromCtrl, false), this.media.on("durationchange", this.getMediaDuration, false), this.media.on("timeupdate", this.mediaTimeUpdate, false), this.media.on("pause", this.onPauseMedia, false), this.media.on("play", this.onPlayMedia, false), this.isVideo && (this.ctx.globalEventHub.on("onFullscreenChange", this.onFullScreenChange), this.ctx.globalEventHub.on("controllerShowStatusChange", this.onControllerShowStatusChange), this.fullScreenButton.addEventListener("click", this.onClickFullScreenButtonHandle, false), this.exitFullScreenButton.addEventListener("click", this.onClickCancelFullScreenButtonHandle, false), this.containerObserver = new MutationObserver(this.onContainerSizeChange), this.container && this.containerObserver.observe(this.container, { attributes: true, attributeFilter: ["data-scale", "style"] }));
|
|
31298
31298
|
}
|
|
31299
31299
|
unbindEvent() {
|
|
31300
31300
|
var t2;
|
|
31301
|
-
this.mediaController.removeEventListener("
|
|
31301
|
+
this.mediaController.removeEventListener("pointerover", this.showController, false), this.mediaController.removeEventListener("pointerout", this.onMouseOut, false), this.progress.removeEventListener("pointerdown", this.changeMediaProgress, false), this.playButton.removeEventListener("click", this._playMediaFromCtrl, false), this.pauseButton.removeEventListener("click", this._pauseMediaFromCtrl, false), this.media.removeAllListeners(), this.isVideo && (this.ctx.globalEventHub.removeListener("onFullscreenChange", this.onFullScreenChange), this.ctx.globalEventHub.removeListener("controllerShowStatusChange", this.onControllerShowStatusChange), this.fullScreenButton.removeEventListener("click", this.onClickFullScreenButtonHandle, false), this.exitFullScreenButton.removeEventListener("click", this.onClickCancelFullScreenButtonHandle, false), (t2 = this.containerObserver) === null || t2 === void 0 || t2.disconnect());
|
|
31302
31302
|
}
|
|
31303
31303
|
show() {
|
|
31304
31304
|
this.setControllerPosition(), this.mediaController.style.opacity = t_.hoverOpacity, this.fullscreenStatus || (this.mediaController.style.display = "flex");
|
|
@@ -33629,15 +33629,15 @@ void main(void){
|
|
|
33629
33629
|
const r2 = { handleEvent: () => {
|
|
33630
33630
|
this.globalEventHub.emit("controllerShowStatusChange", { slideIndex: i3, targetId: n3, status: true });
|
|
33631
33631
|
} };
|
|
33632
|
-
this.app.view.addEventListener("
|
|
33632
|
+
this.app.view.addEventListener("pointerover", r2, false);
|
|
33633
33633
|
const o2 = { handleEvent: () => {
|
|
33634
33634
|
this.fullscreenOnMousemove({ index: i3, targetId: n3 });
|
|
33635
33635
|
} };
|
|
33636
|
-
this.app.view.addEventListener("
|
|
33636
|
+
this.app.view.addEventListener("pointermove", o2, false);
|
|
33637
33637
|
const s2 = { handleEvent: () => {
|
|
33638
33638
|
this.fullscreenOnMouseleave({ index: i3, targetId: n3 });
|
|
33639
33639
|
} };
|
|
33640
|
-
this.app.view.addEventListener("
|
|
33640
|
+
this.app.view.addEventListener("pointerout", s2, false), (this.cacheFunctionMap.has("move") || this.cacheFunctionMap.has("out") || this.cacheFunctionMap.has("over")) && this.clearFullscreenEventListenersWithAppView(), this.cacheFunctionMap.set("over", r2), this.cacheFunctionMap.set("move", o2), this.cacheFunctionMap.set("out", s2);
|
|
33641
33641
|
}, this.onRequestCancelFullscreenVideo = (t3 = false) => {
|
|
33642
33642
|
var e3, i3;
|
|
33643
33643
|
this.globalVideoSprite.texture.destroy(false), this.app.stage.removeChild(this.globalVideoSprite), this.globalEventHub.emit("onFullscreenChange", { status: false, slideIndex: this.currentIndex, targetId: (e3 = this.currentStage) === null || e3 === void 0 ? void 0 : e3.ctx.latestChangeFullscreenTargetId }), this.clearFullscreenEventListenersWithAppView(), t3 && this.emit(Gy.changeLocalFullscreenState, { status: false, slideIndex: this.currentIndex, targetId: (i3 = this.currentStage) === null || i3 === void 0 ? void 0 : i3.ctx.latestChangeFullscreenTargetId });
|
|
@@ -33940,7 +33940,7 @@ void main(void){
|
|
|
33940
33940
|
});
|
|
33941
33941
|
}
|
|
33942
33942
|
clearFullscreenEventListenersWithAppView() {
|
|
33943
|
-
this.cacheFunctionMap.has("move") && (this.app.view.removeEventListener("
|
|
33943
|
+
this.cacheFunctionMap.has("move") && (this.app.view.removeEventListener("pointermove", this.cacheFunctionMap.get("move"), false), this.cacheFunctionMap.delete("move")), this.cacheFunctionMap.has("out") && (this.app.view.removeEventListener("pointerout", this.cacheFunctionMap.get("out"), false), this.cacheFunctionMap.delete("out")), this.cacheFunctionMap.has("over") && (this.app.view.removeEventListener("pointerover", this.cacheFunctionMap.get("over"), false), this.cacheFunctionMap.delete("over"));
|
|
33944
33944
|
}
|
|
33945
33945
|
syncFullscreenVideoState(t2) {
|
|
33946
33946
|
this.globalEventHub.emit("syncFullscreenVideoState", t2);
|
|
@@ -35661,9 +35661,9 @@ void main(void){
|
|
|
35661
35661
|
}
|
|
35662
35662
|
var lT = { syncDispatch: "syncDispatch", syncReceive: "syncReceive", syncEventLag: "syncEventLag", renderStart: "renderStart", renderEnd: "renderEnd", renderError: "renderError", slideChange: "slideChange", mainSeqStepStart: "mainSeqStepStart", mainSeqStepEnd: "mainSeqStepEnd", animateStart: "animateStart", animateEnd: "animateEnd", stateChange: "stateChange", slideStepEnd: "slideEnd", slideStepStart: "slideStart" }, hT = { taskId: "", url: "", currentSlideIndex: -1, mainSeqStep: -1, mainSeqState: null, mediaState: /* @__PURE__ */ Object.create(null), interactiveSeqState: /* @__PURE__ */ Object.create(null) }, uT = "";
|
|
35663
35663
|
try {
|
|
35664
|
-
uT = "0.10.
|
|
35664
|
+
uT = "0.10.3-beta.1";
|
|
35665
35665
|
} catch (t2) {
|
|
35666
|
-
uT = "dev";
|
|
35666
|
+
uT = "dev-";
|
|
35667
35667
|
}
|
|
35668
35668
|
var cT = null;
|
|
35669
35669
|
try {
|
|
@@ -38731,7 +38731,7 @@ class SlidePreviewer {
|
|
|
38731
38731
|
}
|
|
38732
38732
|
}
|
|
38733
38733
|
const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
|
|
38734
|
-
const version = "0.2.31-beta.
|
|
38734
|
+
const version = "0.2.31-beta.2";
|
|
38735
38735
|
const SlideApp = {
|
|
38736
38736
|
kind: "Slide",
|
|
38737
38737
|
setup(context) {
|