@netless/app-slide 0.2.6 → 0.2.7
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 +67 -67
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +9 -6
- package/dist/main.es.js.map +1 -1
- package/dist/main.iife.js +87 -87
- package/dist/main.iife.js.map +1 -1
- package/package.json +3 -3
package/dist/main.es.js
CHANGED
|
@@ -31325,7 +31325,7 @@ void main(void){
|
|
|
31325
31325
|
}
|
|
31326
31326
|
destroy() {
|
|
31327
31327
|
var t2;
|
|
31328
|
-
this.sprite.interactive = false, this.sprite.destroy({ texture: true, baseTexture: true }), (t2 = this.videoResource) === null || t2 === void 0 || t2.destroy(), this.rtcAudio.destroy(), this.controller.destroy(), this.ctx.activeMedia.delete(this);
|
|
31328
|
+
this.ctx.volumeAdjuster.removeListener("update", this.updateVolume), this.sprite.interactive = false, this.sprite.destroy({ texture: true, baseTexture: true }), (t2 = this.videoResource) === null || t2 === void 0 || t2.destroy(), this.rtcAudio.destroy(), this.controller.destroy(), this.ctx.activeMedia.delete(this);
|
|
31329
31329
|
}
|
|
31330
31330
|
}
|
|
31331
31331
|
var ZA = function(t2, e2, n2, i2) {
|
|
@@ -34994,7 +34994,7 @@ void main(void){
|
|
|
34994
34994
|
}
|
|
34995
34995
|
var cI = { syncDispatch: "syncDispatch", syncReceive: "syncReceive", syncEventLag: "syncEventLag", renderStart: "renderStart", renderEnd: "renderEnd", renderError: "renderError", slideChange: "slideChange", mainSeqStepStart: "mainSeqStepStart", mainSeqStepEnd: "mainSeqStepEnd", animateStart: "animateStart", animateEnd: "animateEnd", stateChange: "stateChange" }, dI = { taskId: "", url: "", currentSlideIndex: -1, mainSeqStep: -1, mainSeqState: null, mediaState: /* @__PURE__ */ Object.create(null), interactiveSeqState: /* @__PURE__ */ Object.create(null) }, pI = "";
|
|
34996
34996
|
try {
|
|
34997
|
-
pI = "0.
|
|
34997
|
+
pI = "0.6.0";
|
|
34998
34998
|
} catch (t2) {
|
|
34999
34999
|
pI = "development";
|
|
35000
35000
|
}
|
|
@@ -35547,9 +35547,9 @@ void main(void){
|
|
|
35547
35547
|
}, 9e3);
|
|
35548
35548
|
}]);
|
|
35549
35549
|
const SOUP = "!#%()*+,-./:;=?@[]^_`{|}~ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
35550
|
-
const SOUP_LEN =
|
|
35550
|
+
const SOUP_LEN = 87;
|
|
35551
35551
|
const ID_LEN = 20;
|
|
35552
|
-
const reusedIdCarrier =
|
|
35552
|
+
const reusedIdCarrier = [];
|
|
35553
35553
|
const genUID = () => {
|
|
35554
35554
|
for (let i = 0; i < ID_LEN; i++) {
|
|
35555
35555
|
reusedIdCarrier[i] = SOUP.charAt(Math.random() * SOUP_LEN);
|
|
@@ -35570,7 +35570,7 @@ class SideEffectManager {
|
|
|
35570
35570
|
}
|
|
35571
35571
|
addDisposer(disposer, disposerID = this.genUID()) {
|
|
35572
35572
|
this.flush(disposerID);
|
|
35573
|
-
this.disposers.set(disposerID, Array.isArray(disposer) ? (
|
|
35573
|
+
this.disposers.set(disposerID, Array.isArray(disposer) ? joinDisposers(disposer) : disposer);
|
|
35574
35574
|
return disposerID;
|
|
35575
35575
|
}
|
|
35576
35576
|
add(executor, disposerID = this.genUID()) {
|
|
@@ -35620,6 +35620,9 @@ class SideEffectManager {
|
|
|
35620
35620
|
return uid;
|
|
35621
35621
|
}
|
|
35622
35622
|
}
|
|
35623
|
+
function joinDisposers(disposers) {
|
|
35624
|
+
return () => disposers.forEach(invoke);
|
|
35625
|
+
}
|
|
35623
35626
|
function clamp$1(value, min, max) {
|
|
35624
35627
|
return Math.min(Math.max(value, min), max);
|
|
35625
35628
|
}
|
|
@@ -37723,7 +37726,7 @@ class SlidePreviewer {
|
|
|
37723
37726
|
}
|
|
37724
37727
|
}
|
|
37725
37728
|
const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
|
|
37726
|
-
const version = "0.2.
|
|
37729
|
+
const version = "0.2.7";
|
|
37727
37730
|
const SlideApp = {
|
|
37728
37731
|
kind: "Slide",
|
|
37729
37732
|
setup(context) {
|