@netless/app-slide 0.0.46 → 0.0.47
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 -1
- package/dist/main.cjs.js +3 -3
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +4 -4
- package/dist/main.es.js.map +1 -1
- package/dist/main.iife.js +3 -3
- package/dist/main.iife.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -1
package/dist/main.es.js
CHANGED
|
@@ -35839,7 +35839,7 @@ void main(void){
|
|
|
35839
35839
|
}
|
|
35840
35840
|
var pI = { syncDispatch: "syncDispatch", syncReceive: "syncReceive", renderStart: "renderStart", renderEnd: "renderEnd", renderError: "renderError", slideChange: "slideChange", mainSeqStepStart: "mainSeqStepStart", mainSeqStepEnd: "mainSeqStepEnd", animateStart: "animateStart", animateEnd: "animateEnd", stateChange: "stateChange" }, fI = { taskId: "", url: "", currentSlideIndex: -1, mainSeqStep: -1, mainSeqState: null, mediaState: Object.create(null), interactiveSeqState: Object.create(null) }, mI = "";
|
|
35841
35841
|
try {
|
|
35842
|
-
mI = "0.1.
|
|
35842
|
+
mI = "0.1.49";
|
|
35843
35843
|
} catch (t3) {
|
|
35844
35844
|
mI = "dev";
|
|
35845
35845
|
}
|
|
@@ -36101,7 +36101,7 @@ void main(void){
|
|
|
36101
36101
|
}, e3.prototype.renderSlide = function(t4, e4) {
|
|
36102
36102
|
if (e4 === void 0 && (e4 = true), this.player) {
|
|
36103
36103
|
var n2 = Number(t4);
|
|
36104
|
-
(n2 !== this.player.currentIndex || this.renderingTaskManager.hasStartTask()) && (n2 > this.slideCount && this.slideCount > 0 ||
|
|
36104
|
+
(n2 !== this.player.currentIndex || this.renderingTaskManager.hasStartTask()) && (n2 > this.slideCount && this.slideCount > 0 || this.poseRenderSlide(n2, e4));
|
|
36105
36105
|
}
|
|
36106
36106
|
}, e3.prototype.needCreateNewPlayer = function() {
|
|
36107
36107
|
return (rP.isIOS || rP.isAndroid) && (this.iosResetCache.length > 10 || 4 * rP.textureCacheSize * 2 / 1048576 > 800);
|
|
@@ -36111,7 +36111,7 @@ void main(void){
|
|
|
36111
36111
|
var n2, i2 = this;
|
|
36112
36112
|
if (e4 === void 0 && (e4 = true), !this.player)
|
|
36113
36113
|
return Promise.resolve();
|
|
36114
|
-
if (this.iosNewPlayer) {
|
|
36114
|
+
if (this.needCreateNewPlayer() && (this.iosResetCache = [], rP.textureCacheSize = 0, this.iosNewPlayer = this.initPlayer(this.config), this.iosNewPlayer.setResourceData(this.__slideState.taskId, this.__slideState.url)), this.iosNewPlayer) {
|
|
36115
36115
|
var r3 = this.player.getSnapshot();
|
|
36116
36116
|
this.cacheImage.src = r3, this.frame.appendChild(this.cacheImage), this.player.destroy(), this.player = this.iosNewPlayer, this.iosNewPlayer = void 0, this.needClearCacheImage = true, ((n2 = this == null ? void 0 : this.player) === null || n2 === void 0 ? void 0 : n2.view) && (this.player.view.style.visibility = "hidden", this.frame.appendChild(this.player.view));
|
|
36117
36117
|
}
|
|
@@ -38227,7 +38227,7 @@ class SlidePreviewer {
|
|
|
38227
38227
|
return `${this.namespace}-${className}`;
|
|
38228
38228
|
}
|
|
38229
38229
|
}
|
|
38230
|
-
const version = "0.0.
|
|
38230
|
+
const version = "0.0.47";
|
|
38231
38231
|
const SlideApp = {
|
|
38232
38232
|
kind: "Slide",
|
|
38233
38233
|
setup(context) {
|