@netless/app-slide 0.2.100 → 0.2.101
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.d.ts +1 -0
- package/dist/main.cjs.js +4 -4
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +47 -11
- 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
|
@@ -34848,7 +34848,37 @@ void main(void){
|
|
|
34848
34848
|
destroy() {
|
|
34849
34849
|
var t2;
|
|
34850
34850
|
try {
|
|
34851
|
-
this.clearAutoForwardTimer(), this.app.view.removeEventListener("webglcontextlost", this.onWebGLLost),
|
|
34851
|
+
this.clearAutoForwardTimer(), this.app.view.removeEventListener("webglcontextlost", this.onWebGLLost), tg.collectObjectByGroup(this.objPoolGroup), qy.collectObjectByGroup(this.objPoolGroup), null === (t2 = this.transactionPlayer) || void 0 === t2 || t2.destroy(), this.loader.destroy(), this.fps.destroy(), this.stagePool.destroyAllStage(), this.stagePool.destroy();
|
|
34852
|
+
} catch (t3) {
|
|
34853
|
+
}
|
|
34854
|
+
!function(t3) {
|
|
34855
|
+
var e2, i2, n2, r2, o2, s2, a2;
|
|
34856
|
+
let l2 = null, h2 = null;
|
|
34857
|
+
try {
|
|
34858
|
+
l2 = t3.view;
|
|
34859
|
+
} catch (t4) {
|
|
34860
|
+
}
|
|
34861
|
+
try {
|
|
34862
|
+
h2 = t3.renderer;
|
|
34863
|
+
} catch (t4) {
|
|
34864
|
+
}
|
|
34865
|
+
try {
|
|
34866
|
+
null === (n2 = null === (i2 = null === (e2 = null == h2 ? void 0 : h2.filter) || void 0 === e2 ? void 0 : e2.texturePool) || void 0 === i2 ? void 0 : i2.clear) || void 0 === n2 || n2.call(i2, true);
|
|
34867
|
+
} catch (t4) {
|
|
34868
|
+
}
|
|
34869
|
+
try {
|
|
34870
|
+
null === (a2 = null === (s2 = null === (o2 = null === (r2 = null == h2 ? void 0 : h2.gl) || void 0 === r2 ? void 0 : r2.getExtension) || void 0 === o2 ? void 0 : o2.call(r2, "WEBGL_lose_context")) || void 0 === s2 ? void 0 : s2.loseContext) || void 0 === a2 || a2.call(s2);
|
|
34871
|
+
} catch (t4) {
|
|
34872
|
+
}
|
|
34873
|
+
try {
|
|
34874
|
+
t3.destroy(true, { children: true, texture: true, baseTexture: true });
|
|
34875
|
+
} catch (t4) {
|
|
34876
|
+
} finally {
|
|
34877
|
+
(null == l2 ? void 0 : l2.parentNode) && l2.parentNode.removeChild(l2);
|
|
34878
|
+
}
|
|
34879
|
+
}(this.app);
|
|
34880
|
+
try {
|
|
34881
|
+
this.tracker({ name: "slidePlayerDestroy", result: "", reason: "", payload: {} });
|
|
34852
34882
|
} catch (t3) {
|
|
34853
34883
|
}
|
|
34854
34884
|
}
|
|
@@ -37053,7 +37083,7 @@ void main(void){
|
|
|
37053
37083
|
}
|
|
37054
37084
|
var PT = { 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", useraddLink: "useraddLink" }, OT = { taskId: "", url: "", currentSlideIndex: -1, mainSeqStep: -1, mainSeqState: null, mediaState: /* @__PURE__ */ Object.create(null), interactiveSeqState: /* @__PURE__ */ Object.create(null) }, LT = "";
|
|
37055
37085
|
try {
|
|
37056
|
-
LT = "1.4.
|
|
37086
|
+
LT = "1.4.56";
|
|
37057
37087
|
} catch (t2) {
|
|
37058
37088
|
LT = "-dev-";
|
|
37059
37089
|
}
|
|
@@ -37068,7 +37098,7 @@ void main(void){
|
|
|
37068
37098
|
var DT = function(t2) {
|
|
37069
37099
|
function e2(i3) {
|
|
37070
37100
|
var n3 = t2.call(this) || this;
|
|
37071
|
-
n3.iosResetCache = [], n3.version = LT, n3.__slideState = cx()(OT), n3.userInputTime = 0, n3.isSyncingSlideState = false, n3.frozenTaskManager = new mT(), n3.randomId = r(), n3.resize = false, n3.isAnimating = false, n3.renderingTaskManager = new tb(), n3.isLoading = false, n3.interactive = true, n3.syncCatchUpInputBlocked = false, n3.renderingIndex = 0, n3.frameWidth = 1, n3.frameHeight = 1, n3.frame = document.createElement("div"), n3.canvasContainer = document.createElement("div"), n3.medianController = document.createElement("div"), n3.frameResizeObserver = new CT(function() {
|
|
37101
|
+
n3.iosResetCache = [], n3.version = LT, n3.__slideState = cx()(OT), n3.userInputTime = 0, n3.isSyncingSlideState = false, n3.frozenTaskManager = new mT(), n3.randomId = r(), n3.resize = false, n3.isAnimating = false, n3.renderingTaskManager = new tb(), n3.isLoading = false, n3.isReleasing = false, n3.interactive = true, n3.syncCatchUpInputBlocked = false, n3.renderingIndex = 0, n3.frameWidth = 1, n3.frameHeight = 1, n3.frame = document.createElement("div"), n3.canvasContainer = document.createElement("div"), n3.medianController = document.createElement("div"), n3.frameResizeObserver = new CT(function() {
|
|
37072
37102
|
return n3.frameResizeHandler();
|
|
37073
37103
|
}), n3.timestamp = function() {
|
|
37074
37104
|
return Date.now();
|
|
@@ -37501,8 +37531,8 @@ void main(void){
|
|
|
37501
37531
|
return this.renderingIndex = t3, this.player && t3 === this.player.currentIndex ? [2] : ((nx.platform.isIOS() || nx.platform.isAndroid()) && this.iosResetCache.indexOf(t3) < 0 && this.iosResetCache.push(t3), this.flushDebounce(), [4, null === (e3 = this.player) || void 0 === e3 ? void 0 : e3.renderSlide(t3)]);
|
|
37502
37532
|
case 1:
|
|
37503
37533
|
return n3.sent(), this.__slideState.currentSlideIndex = t3, this._resizeView(), this.__slideState.interactiveSeqState = {}, this.__slideState.mediaState = {}, this.emitStateChange(), setTimeout(function() {
|
|
37504
|
-
var t4, e4;
|
|
37505
|
-
|
|
37534
|
+
var t4, e4, n4, r2;
|
|
37535
|
+
t4 = i3.isReleasing, e4 = i3.player, n4 = i3.frame, r2 = i3.cacheImage, !t4 && (null == e4 ? void 0 : e4.view) && ("hidden" === e4.view.style.visibility && (e4.view.style.visibility = "visible"), "hidden" === n4.style.visibility && (n4.style.visibility = "visible"), r2.style.display = "none");
|
|
37506
37536
|
}, 100), [2];
|
|
37507
37537
|
}
|
|
37508
37538
|
});
|
|
@@ -37595,7 +37625,7 @@ void main(void){
|
|
|
37595
37625
|
return !o2.isLoading;
|
|
37596
37626
|
}, 6e4)] : [3, 2];
|
|
37597
37627
|
case 1:
|
|
37598
|
-
for (n3 in s2.sent(), i3 = this.player.getSnapshot() || "", this.cacheImage.src = i3, this.cacheImage.style.display = "block", this.player.destroy(), null === (e3 = this.playerController) || void 0 === e3 || e3.destroy(), this.player = void 0, this.__slideState.mediaState)
|
|
37628
|
+
for (n3 in s2.sent(), i3 = this.player.getSnapshot() || "", this.cacheImage.src = i3, this.cacheImage.style.display = "block", "hidden" === this.frame.style.visibility && (this.frame.style.visibility = "visible"), this.player.destroy(), null === (e3 = this.playerController) || void 0 === e3 || e3.destroy(), this.player = void 0, this.__slideState.mediaState)
|
|
37599
37629
|
r2 = this.__slideState.mediaState[n3], this.__slideState.mediaState[n3] = ET(ET({}, r2), { frozenTime: this.timestamp() });
|
|
37600
37630
|
s2.label = 2;
|
|
37601
37631
|
case 2:
|
|
@@ -37617,13 +37647,19 @@ void main(void){
|
|
|
37617
37647
|
case 0:
|
|
37618
37648
|
if (this.logger.info("do release slide", this.taskId), this.tracker({ name: "releaseSlide", reason: "", result: "", payload: { taskId: this.taskId } }), this.player)
|
|
37619
37649
|
return [2];
|
|
37620
|
-
|
|
37650
|
+
this.isReleasing = true, a2.label = 1;
|
|
37651
|
+
case 1:
|
|
37652
|
+
for (r2 in a2.trys.push([1, , 4, 5]), this.player = this.initPlayer(this.config), (null === (e3 = this.config) || void 0 === e3 ? void 0 : e3.controller) && this.createController(), this.player.view && (this.canvasContainer.appendChild(this.player.view), this.player.view.style.visibility = "hidden"), n3 = this.__slideState, this.__slideState = cx()(OT), n3.mediaState)
|
|
37621
37653
|
"play" === (o2 = n3.mediaState[r2]).type && (s2 = Math.max(null !== (i3 = o2.frozenTime) && void 0 !== i3 ? i3 : 0, o2.time), o2.time = this.timestamp() - (s2 - o2.time), o2.frozenTime = void 0);
|
|
37622
37654
|
return [4, this.setSlideState(n3)];
|
|
37623
|
-
case 1:
|
|
37624
|
-
return a2.sent(), [4, this.player.clock.delay(333)];
|
|
37625
37655
|
case 2:
|
|
37626
|
-
return a2.sent(),
|
|
37656
|
+
return a2.sent(), [4, this.player.clock.delay(333)];
|
|
37657
|
+
case 3:
|
|
37658
|
+
return a2.sent(), this.player.view && (this.player.view.style.visibility = "visible"), "hidden" === this.frame.style.visibility && (this.frame.style.visibility = "visible"), this.cacheImage.style.display = "none", t3 && t3(), [3, 5];
|
|
37659
|
+
case 4:
|
|
37660
|
+
return this.isReleasing = false, [7];
|
|
37661
|
+
case 5:
|
|
37662
|
+
return [2];
|
|
37627
37663
|
}
|
|
37628
37664
|
});
|
|
37629
37665
|
});
|
|
@@ -41517,7 +41553,7 @@ class SlidePreviewer {
|
|
|
41517
41553
|
}
|
|
41518
41554
|
}
|
|
41519
41555
|
const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
|
|
41520
|
-
const version = "0.2.
|
|
41556
|
+
const version = "0.2.101";
|
|
41521
41557
|
const SlideApp = {
|
|
41522
41558
|
kind: "Slide",
|
|
41523
41559
|
setup(context) {
|