@netless/app-slide 0.0.39 → 0.0.40
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 +87 -87
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +21 -4
- 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 +2 -2
- package/src/index.ts +1 -1
package/dist/main.es.js
CHANGED
|
@@ -29856,6 +29856,19 @@ void main() {
|
|
|
29856
29856
|
updateActiveTime(t3, e3) {
|
|
29857
29857
|
return this.cache.setItem(`${t3}@${e3}`, Date.now());
|
|
29858
29858
|
}
|
|
29859
|
+
dispose() {
|
|
29860
|
+
return oE(this, void 0, void 0, function* () {
|
|
29861
|
+
const t3 = yield this.cache.keys();
|
|
29862
|
+
for (const e3 of t3) {
|
|
29863
|
+
const [t4, n2] = e3.split("@");
|
|
29864
|
+
yield iE.a.createInstance({ name: t4, storeName: n2, driver: iE.a.INDEXEDDB, version: 1 }).dropInstance().then(() => {
|
|
29865
|
+
this.cache.removeItem(e3).catch(() => {
|
|
29866
|
+
});
|
|
29867
|
+
}).catch(() => {
|
|
29868
|
+
});
|
|
29869
|
+
}
|
|
29870
|
+
});
|
|
29871
|
+
}
|
|
29859
29872
|
}();
|
|
29860
29873
|
var aE = function(t3, e3, n2, i2) {
|
|
29861
29874
|
return new (n2 || (n2 = Promise))(function(r3, o3) {
|
|
@@ -33842,11 +33855,12 @@ void main(void){
|
|
|
33842
33855
|
scaleView(t3, e3 = false) {
|
|
33843
33856
|
this.scale = t3;
|
|
33844
33857
|
const n2 = this.scale * this.config.resolution;
|
|
33845
|
-
this.view && (this.view.style.width = Math.floor(this.designWidth * this.scale) + "px", this.view.style.height = Math.floor(this.designHeight * this.scale) + "px"), e3 &&
|
|
33858
|
+
this.view && (this.view.style.width = Math.floor(this.designWidth * this.scale) + "px", this.view.style.height = Math.floor(this.designHeight * this.scale) + "px"), e3 && this.updateResolution(n2);
|
|
33846
33859
|
}
|
|
33847
33860
|
updateResolution(t3) {
|
|
33848
33861
|
this.app.ticker.addOnce(() => {
|
|
33849
|
-
KA.type !== "mobile"
|
|
33862
|
+
const e3 = KA.type !== "mobile" ? t3 : 1;
|
|
33863
|
+
this.app.renderer.resolution = e3, this.app.renderer.plugins.interaction.resolution = this.app.renderer.resolution, this.app.renderer.resize(this.designWidth, this.designHeight);
|
|
33850
33864
|
});
|
|
33851
33865
|
}
|
|
33852
33866
|
nextStep() {
|
|
@@ -33932,6 +33946,7 @@ void main(void){
|
|
|
33932
33946
|
this.app.destroy(true, { children: false, texture: true, baseTexture: true });
|
|
33933
33947
|
}
|
|
33934
33948
|
}
|
|
33949
|
+
eC.storeManager = sE;
|
|
33935
33950
|
var nC, iC = [], rC = "ResizeObserver loop completed with undelivered notifications.";
|
|
33936
33951
|
!function(t3) {
|
|
33937
33952
|
t3.BORDER_BOX = "border-box", t3.CONTENT_BOX = "content-box", t3.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
|
|
@@ -35459,7 +35474,7 @@ void main(void){
|
|
|
35459
35474
|
}
|
|
35460
35475
|
var hR = { syncDispatch: "syncDispatch", syncReceive: "syncReceive", renderStart: "renderStart", renderEnd: "renderEnd", renderError: "renderError", slideChange: "slideChange", mainSeqStepStart: "mainSeqStepStart", mainSeqStepEnd: "mainSeqStepEnd", animateStart: "animateStart", animateEnd: "animateEnd", stateChange: "stateChange" }, cR = { taskId: "", url: "", currentSlideIndex: -1, mainSeqStep: -1, mainSeqState: null, mediaState: Object.create(null), interactiveSeqState: Object.create(null) }, dR = "";
|
|
35461
35476
|
try {
|
|
35462
|
-
dR = "0.1.
|
|
35477
|
+
dR = "0.1.43";
|
|
35463
35478
|
} catch (t3) {
|
|
35464
35479
|
dR = "dev";
|
|
35465
35480
|
}
|
|
@@ -35821,6 +35836,8 @@ void main(void){
|
|
|
35821
35836
|
((i2 = this.player) === null || i2 === void 0 ? void 0 : i2.view) && this.anchor.removeChild(this.player.view);
|
|
35822
35837
|
} catch (t5) {
|
|
35823
35838
|
}
|
|
35839
|
+
}, e3.disposeLocalCache = function() {
|
|
35840
|
+
eC.storeManager.dispose();
|
|
35824
35841
|
}, e3;
|
|
35825
35842
|
}(a.a);
|
|
35826
35843
|
}]);
|
|
@@ -37830,7 +37847,7 @@ class SlidePreviewer {
|
|
|
37830
37847
|
return `${this.namespace}-${className}`;
|
|
37831
37848
|
}
|
|
37832
37849
|
}
|
|
37833
|
-
const version = "0.0.
|
|
37850
|
+
const version = "0.0.40";
|
|
37834
37851
|
const SlideApp = {
|
|
37835
37852
|
kind: "Slide",
|
|
37836
37853
|
setup(context) {
|