@netless/app-slide 0.2.20 → 0.2.21

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.es.js CHANGED
@@ -30840,7 +30840,7 @@ void main(void){
30840
30840
  t3.stopPropagation(), this.mediaController.style.display = "none";
30841
30841
  }, this.mediaTimeUpdate = () => Fv(this, void 0, void 0, function* () {
30842
30842
  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)
30843
+ 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
30844
  return;
30845
30845
  const e3 = this.bookmarkList[this.pickBookmarkIndex];
30846
30846
  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 +33191,7 @@ void main(void){
33191
33191
  this.runtime.drawCall = this.drawCall, this.runtime.fps = Math.floor(this.app.ticker.minFPS), this.drawCall = 0;
33192
33192
  }, 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
33193
  try {
33194
- this.transactionPlayer = new Eh();
33194
+ this.config.forceCanvas || (this.transactionPlayer = new Eh());
33195
33195
  } catch (t3) {
33196
33196
  /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
33197
  }
@@ -35176,9 +35176,9 @@ void main(void){
35176
35176
  }
35177
35177
  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
35178
  try {
35179
- Wb = "0.8.0";
35179
+ Wb = "0.8.1";
35180
35180
  } catch (t2) {
35181
- Wb = "dev--legacy";
35181
+ Wb = "dev";
35182
35182
  }
35183
35183
  var Yb = null;
35184
35184
  try {
@@ -38066,7 +38066,7 @@ class SlidePreviewer {
38066
38066
  }
38067
38067
  }
38068
38068
  const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
38069
- const version = "0.2.20";
38069
+ const version = "0.2.21";
38070
38070
  const SlideApp = {
38071
38071
  kind: "Slide",
38072
38072
  setup(context) {