@netless/app-slide 0.2.20 → 0.2.22
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 +41 -41
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +7 -13
- package/dist/main.es.js.map +1 -1
- package/dist/main.iife.js +80 -80
- package/dist/main.iife.js.map +1 -1
- package/package.json +2 -2
package/dist/main.es.js
CHANGED
|
@@ -29815,13 +29815,8 @@ void main(void){
|
|
|
29815
29815
|
if (this.fillStyle.fillType === "solidFill" || this.fillStyle.fillType === "noFill")
|
|
29816
29816
|
return null;
|
|
29817
29817
|
if (this.fillStyle.fillType === "gradientFill") {
|
|
29818
|
-
const t3 = new qd();
|
|
29819
|
-
|
|
29820
|
-
if (!e2) {
|
|
29821
|
-
const t4 = Fg(this.fillStyle, this.width, this.height), i2 = Bh.p.create({ width: this.width, height: this.height, resolution: this.ctx.renderer.resolution });
|
|
29822
|
-
this.ctx.renderer.render(t4, { renderTexture: i2 }), e2 = i2, Kg.gradientPool.set(this.gradientHash, e2), t4.destroy({ children: true, texture: true });
|
|
29823
|
-
}
|
|
29824
|
-
return t3.texture = e2, t3;
|
|
29818
|
+
const t3 = new qd(), e2 = Fg(this.fillStyle, this.width, this.height), i2 = Bh.p.create({ width: this.width, height: this.height, resolution: this.ctx.renderer.resolution });
|
|
29819
|
+
return this.ctx.renderer.render(e2, { renderTexture: i2 }), e2.destroy({ children: true, texture: true }), t3.texture = i2, t3;
|
|
29825
29820
|
}
|
|
29826
29821
|
if (this.fillStyle.fillType === "blipFill") {
|
|
29827
29822
|
const { src: e2, filters: i2 } = this.fillStyle, n2 = this.ctx.spriteTexture.getTexture(e2), r2 = this.ctx.spriteTexture.getFrameData(e2);
|
|
@@ -29882,7 +29877,6 @@ void main(void){
|
|
|
29882
29877
|
}), this.clonedObjects = [];
|
|
29883
29878
|
}
|
|
29884
29879
|
}
|
|
29885
|
-
Kg.gradientPool = /* @__PURE__ */ new Map();
|
|
29886
29880
|
var Qg = function(t2, e2, i2, n2) {
|
|
29887
29881
|
return new (i2 || (i2 = Promise))(function(r2, o2) {
|
|
29888
29882
|
function s2(t3) {
|
|
@@ -30840,7 +30834,7 @@ void main(void){
|
|
|
30840
30834
|
t3.stopPropagation(), this.mediaController.style.display = "none";
|
|
30841
30835
|
}, this.mediaTimeUpdate = () => Fv(this, void 0, void 0, function* () {
|
|
30842
30836
|
const t3 = this.media.currentTime - this.start;
|
|
30843
|
-
if (this.duration > 0 && (t3 > this.duration || this.media.ended) && (yield this.pauseMedia(), this.medianIsEnd = true, this.ctx.eventHub.emit(by.mediaStop, { id: this.targetId })), this.currentTime.innerText = Uv.formatTime(t3), this.currentProgress.style.flex = (t3 / this.duration).toString(), !this.bookmarkList || this.bookmarkList.length === 0)
|
|
30837
|
+
if (this.duration > 0 && (t3 > this.duration || this.media.ended) && (yield this.pauseMedia(), this.medianIsEnd = true, this.jumpToTime(), this.ctx.eventHub.emit(by.mediaStop, { id: this.targetId })), this.currentTime.innerText = Uv.formatTime(t3), this.currentProgress.style.flex = (t3 / this.duration).toString(), !this.bookmarkList || this.bookmarkList.length === 0)
|
|
30844
30838
|
return;
|
|
30845
30839
|
const e3 = this.bookmarkList[this.pickBookmarkIndex];
|
|
30846
30840
|
e3 && e3.time.toFixed(0) === this.media.currentTime.toFixed(0) && (this.ctx.timingEventHub.emit(`shape ${this.shapeId} onMediaBookmark ${e3.name}`), this.pickBookmarkIndex += 1);
|
|
@@ -33191,7 +33185,7 @@ void main(void){
|
|
|
33191
33185
|
this.runtime.drawCall = this.drawCall, this.runtime.fps = Math.floor(this.app.ticker.minFPS), this.drawCall = 0;
|
|
33192
33186
|
}, null, Rh.c.LOW), this.clock = new Mm(this.app.ticker), this.objPoolGroup = ym(), this.stagePool = new my(this.loader, this.mode, this.app.renderer, this.app.ticker, this.app.view, this.clock, this.objPoolGroup, this.errorChannel, this.localStorage, this.logger, t2.loadDelegate, this.isPlayerPaused, this.maxResolution, this.volumeAdjuster, this.config.forceCanvas), this.app.view.addEventListener("webglcontextlost", this.onWebGLLost);
|
|
33193
33187
|
try {
|
|
33194
|
-
this.transactionPlayer = new Eh();
|
|
33188
|
+
this.config.forceCanvas || (this.transactionPlayer = new Eh());
|
|
33195
33189
|
} catch (t3) {
|
|
33196
33190
|
/Error creating WebGL context/.test(t3.message) ? this.errorChannel.emit("error", new fm(lm.CanvasCrash, "webgl context lost.")) : this.errorChannel.emit("error", new fm(lm.RuntimeWarn, t3.message));
|
|
33197
33191
|
}
|
|
@@ -35176,9 +35170,9 @@ void main(void){
|
|
|
35176
35170
|
}
|
|
35177
35171
|
var Vb = { 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" }, Xb = { taskId: "", url: "", currentSlideIndex: -1, mainSeqStep: -1, mainSeqState: null, mediaState: /* @__PURE__ */ Object.create(null), interactiveSeqState: /* @__PURE__ */ Object.create(null) }, Wb = "";
|
|
35178
35172
|
try {
|
|
35179
|
-
Wb = "0.8.
|
|
35173
|
+
Wb = "0.8.2";
|
|
35180
35174
|
} catch (t2) {
|
|
35181
|
-
Wb = "dev
|
|
35175
|
+
Wb = "dev-";
|
|
35182
35176
|
}
|
|
35183
35177
|
var Yb = null;
|
|
35184
35178
|
try {
|
|
@@ -38066,7 +38060,7 @@ class SlidePreviewer {
|
|
|
38066
38060
|
}
|
|
38067
38061
|
}
|
|
38068
38062
|
const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
|
|
38069
|
-
const version = "0.2.
|
|
38063
|
+
const version = "0.2.22";
|
|
38070
38064
|
const SlideApp = {
|
|
38071
38065
|
kind: "Slide",
|
|
38072
38066
|
setup(context) {
|