@netless/app-slide 0.2.107 → 0.2.108-alpha.0

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
@@ -31030,6 +31030,11 @@ void main(void){
31030
31030
  setFrameCount(t2) {
31031
31031
  this.frameCount = t2;
31032
31032
  }
31033
+ applyAttachmentCacheAsBitmap(t2, e2) {
31034
+ if (!this.isDestroyed)
31035
+ for (const i2 of this.attachs)
31036
+ i2.outputSprite.cacheAsBitmap = t2 || e2 && i2 instanceof qv;
31037
+ }
31033
31038
  updateFrame(t2) {
31034
31039
  const e2 = this.frames.get(t2);
31035
31040
  if (e2) {
@@ -33142,7 +33147,7 @@ void main(void){
33142
33147
  };
33143
33148
  class zy extends Ey {
33144
33149
  constructor(t2, e2, i2) {
33145
- var n2, r2;
33150
+ var n2, r2, o2;
33146
33151
  super(Object.assign(Object.assign({}, t2), { type: "Shape", useBgFill: false, textRotateWithShape: true, isPicture: true }), e2, i2), this.isInteractiveOutside = false, this.maxLimitLoop = 0, this.cmd = new vg(this), this.onSlideRenderPlayGif = (t3, e3) => {
33147
33152
  var i3;
33148
33153
  const { displayObject: n3 } = this.picFill;
@@ -33155,7 +33160,7 @@ void main(void){
33155
33160
  e4 && (this.effectObject.createFrame(t4, e4.texture), this.effectObject.setFrameOffset(e4.offsetX, e4.offsetY));
33156
33161
  }
33157
33162
  });
33158
- }, this.media = null == t2 ? void 0 : t2.media, this.container.name = t2.id + "_container_[Picture]", this.renderContainer.name = t2.id + "_render_container_[Picture]", this.picFill = new Ov(this.ctx, t2.picFill, t2.width, t2.height, { useFilter: true, useSlideBackgroundFill: false, onGifFrameChange: this.onClientDecodedGifFrame }), "gifFill" === (null === (n2 = t2.picFill) || void 0 === n2 ? void 0 : n2.fillType) && (this.maxLimitLoop = null !== (r2 = t2.picFill.loop) && void 0 !== r2 ? r2 : 0), this.style.on("visibilityChange", (t3, e3) => {
33163
+ }, this.media = null == t2 ? void 0 : t2.media, this.isStaticImage = "blipFill" === (null === (n2 = t2.picFill) || void 0 === n2 ? void 0 : n2.fillType), this.container.name = t2.id + "_container_[Picture]", this.renderContainer.name = t2.id + "_render_container_[Picture]", this.picFill = new Ov(this.ctx, t2.picFill, t2.width, t2.height, { useFilter: true, useSlideBackgroundFill: false, onGifFrameChange: this.onClientDecodedGifFrame }), "gifFill" === (null === (r2 = t2.picFill) || void 0 === r2 ? void 0 : r2.fillType) && (this.maxLimitLoop = null !== (o2 = t2.picFill.loop) && void 0 !== o2 ? o2 : 0), this.style.on("visibilityChange", (t3, e3) => {
33159
33164
  this.mediaPlayer && t3 && !e3 && this.mediaPlayer.stop();
33160
33165
  });
33161
33166
  }
@@ -33170,9 +33175,7 @@ void main(void){
33170
33175
  }
33171
33176
  applyEffectCacheAsBitMap(t2) {
33172
33177
  var e2, i2, n2;
33173
- this.isTargetAlive() && ("gifFill" === (null === (e2 = this.json.fillStyle) || void 0 === e2 ? void 0 : e2.fillType) || this.media && "video" === this.media.type || "gifFill" === (null === (i2 = this.json.picFill) || void 0 === i2 ? void 0 : i2.fillType) || null === (n2 = this.effectObject) || void 0 === n2 || n2.container.children.forEach((e3) => {
33174
- "effect-sprite" !== e3.name && (e3.cacheAsBitmap = t2);
33175
- }));
33178
+ this.isTargetAlive() && ("gifFill" === (null === (e2 = this.json.fillStyle) || void 0 === e2 ? void 0 : e2.fillType) || this.media && "video" === this.media.type || "gifFill" === (null === (i2 = this.json.picFill) || void 0 === i2 ? void 0 : i2.fillType) || null === (n2 = this.effectObject) || void 0 === n2 || n2.applyAttachmentCacheAsBitmap(t2, this.isStaticImage));
33176
33179
  }
33177
33180
  renderPic(t2) {
33178
33181
  var e2, i2, n2, r2, o2, s2;
@@ -39485,7 +39488,7 @@ geometry=${JSON.stringify(o2)}`;
39485
39488
  }
39486
39489
  var Dw = { 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" }, Fw = { taskId: "", url: "", currentSlideIndex: -1, mainSeqStep: -1, mainSeqState: null, mediaState: /* @__PURE__ */ Object.create(null), interactiveSeqState: /* @__PURE__ */ Object.create(null) }, kw = "";
39487
39490
  try {
39488
- kw = "1.4.63";
39491
+ kw = "1.4.64-alpha.0";
39489
39492
  } catch (t2) {
39490
39493
  kw = "-dev-";
39491
39494
  }
@@ -44973,7 +44976,7 @@ class SlidePreviewer {
44973
44976
  }
44974
44977
  }
44975
44978
  const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
44976
- const version = "0.2.107";
44979
+ const version = "0.2.108-alpha.0";
44977
44980
  const DEFAULT_SLIDE_SETUP_READY_TIMEOUT = 5e3;
44978
44981
  const SlideApp = {
44979
44982
  kind: "Slide",