@netless/app-slide 0.2.86 → 0.2.88
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/LICENSE +21 -0
- package/dist/index.d.ts +4 -0
- 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 +9 -9
- package/src/index.ts +4 -0
package/dist/main.es.js
CHANGED
|
@@ -31336,7 +31336,7 @@ void main(void){
|
|
|
31336
31336
|
t3.stopPropagation(), this.hide();
|
|
31337
31337
|
}, this.mediaTimeUpdate = () => a_(this, void 0, void 0, function* () {
|
|
31338
31338
|
const t3 = this.media.currentTime - this.start;
|
|
31339
|
-
if (console.log(t3, this.duration),
|
|
31339
|
+
if (console.log(t3, this.duration), this.duration < 0.5 ? this.duration > 0 && t3 >= this.duration && (yield this.pauseMedia(), this.medianIsEnd = true, this.jumpToTime(), this.ctx.eventHub.emit(Xy.mediaStop, { id: this.targetId }), this.onClickCancelFullScreenButtonHandle()) : this.duration > 0 && (Math.abs(t3 - this.duration) < 0.3 || t3 > this.duration) && (yield this.pauseMedia(), this.medianIsEnd = true, this.jumpToTime(), this.ctx.eventHub.emit(Xy.mediaStop, { id: this.targetId }), this.onClickCancelFullScreenButtonHandle()), this.currentTime.innerText = u_.formatTime(t3), this.currentProgress.style.flex = (t3 / this.duration).toString(), this.bookmarkList && this.bookmarkList.length > 0) {
|
|
31340
31340
|
const t4 = this.bookmarkList[this.pickBookmarkIndex];
|
|
31341
31341
|
t4 && t4.time.toFixed(0) === this.media.currentTime.toFixed(0) && (this.ctx.timingEventHub.emit(`shape ${this.shapeId} onMediaBookmark ${t4.name}`), this.pickBookmarkIndex += 1);
|
|
31342
31342
|
}
|
|
@@ -32368,7 +32368,7 @@ void main(void){
|
|
|
32368
32368
|
const i2 = e2 / t3, n2 = this.keyFrames.findIndex((t4) => i2 <= t4[0]), { attrList: r2 } = this.json.cBhvr;
|
|
32369
32369
|
if (n2 < 0) {
|
|
32370
32370
|
const t4 = this.keyFrames[this.keyFrames.length - 1];
|
|
32371
|
-
return void (this.timingTarget && r2 && r2[0] && E_(this.timingTarget, r2[0], t4[1].resolveValue(this.vars)));
|
|
32371
|
+
return void (this.timingTarget && r2 && r2[0] && (t4 ? E_(this.timingTarget, r2[0], t4[1].resolveValue(this.vars)) : this.ctx.logger.error("no keyframe found for anim behavior", this.ctx.taskId)));
|
|
32372
32372
|
}
|
|
32373
32373
|
const o2 = n2 - 1, s2 = this.keyFrames[n2], a2 = this.keyFrames[o2] || s2, l2 = s2[0] - a2[0] == 0 ? 1 : (i2 - a2[0]) / (s2[0] - a2[0]), h2 = s2[1].interpolationFrom(a2[1], l2, this.vars);
|
|
32374
32374
|
this.timingTarget && r2 && r2[0] && E_(this.timingTarget, r2[0], h2);
|
|
@@ -36501,7 +36501,7 @@ void main(void){
|
|
|
36501
36501
|
}
|
|
36502
36502
|
var _T = { 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" }, yT = { taskId: "", url: "", currentSlideIndex: -1, mainSeqStep: -1, mainSeqState: null, mediaState: /* @__PURE__ */ Object.create(null), interactiveSeqState: /* @__PURE__ */ Object.create(null) }, xT = "";
|
|
36503
36503
|
try {
|
|
36504
|
-
xT = "1.4.
|
|
36504
|
+
xT = "1.4.43";
|
|
36505
36505
|
} catch (t2) {
|
|
36506
36506
|
xT = "-dev-";
|
|
36507
36507
|
}
|
|
@@ -40227,7 +40227,7 @@ class SlidePreviewer {
|
|
|
40227
40227
|
}
|
|
40228
40228
|
}
|
|
40229
40229
|
const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
|
|
40230
|
-
const version = "0.2.
|
|
40230
|
+
const version = "0.2.88";
|
|
40231
40231
|
const SlideApp = {
|
|
40232
40232
|
kind: "Slide",
|
|
40233
40233
|
setup(context) {
|