@netless/app-slide 0.2.3 → 0.2.4

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
@@ -36150,7 +36150,8 @@ class SlideController {
36150
36150
  return this.slide.slideState.currentSlideIndex;
36151
36151
  }
36152
36152
  createSlide(anchor) {
36153
- var _a, _b, _c, _d, _e, _f, _g, _h;
36153
+ var _a, _b;
36154
+ const options = this.context.getAppOptions() || {};
36154
36155
  const slide = new Slide.Slide({
36155
36156
  anchor,
36156
36157
  interactive: true,
@@ -36159,12 +36160,13 @@ class SlideController {
36159
36160
  controller: logger.enable,
36160
36161
  enableGlobalClick: true,
36161
36162
  renderOptions: {
36162
- minFPS: ((_a = this.context.getAppOptions()) == null ? void 0 : _a.minFPS) || 25,
36163
- maxFPS: ((_b = this.context.getAppOptions()) == null ? void 0 : _b.maxFPS) || 30,
36164
- autoFPS: (_d = (_c = this.context.getAppOptions()) == null ? void 0 : _c.autoFPS) != null ? _d : true,
36165
- autoResolution: (_f = (_e = this.context.getAppOptions()) == null ? void 0 : _e.autoResolution) != null ? _f : true,
36166
- resolution: (_g = this.context.getAppOptions()) == null ? void 0 : _g.resolution,
36167
- transactionBgColor: ((_h = this.context.getAppOptions()) == null ? void 0 : _h.bgColor) || cachedGetBgColor(anchor)
36163
+ minFPS: options.minFPS || 25,
36164
+ maxFPS: options.maxFPS || 30,
36165
+ autoFPS: (_a = options.autoFPS) != null ? _a : true,
36166
+ autoResolution: (_b = options.autoResolution) != null ? _b : true,
36167
+ resolution: options.resolution,
36168
+ transactionBgColor: options.bgColor || cachedGetBgColor(anchor),
36169
+ maxResolutionLevel: options.maxResolutionLevel
36168
36170
  },
36169
36171
  timestamp: this.timestamp
36170
36172
  });
@@ -37535,7 +37537,7 @@ class SlidePreviewer {
37535
37537
  return `${this.namespace}-${className}`;
37536
37538
  }
37537
37539
  }
37538
- const version = "0.2.3";
37540
+ const version = "0.2.4";
37539
37541
  const SlideApp = {
37540
37542
  kind: "Slide",
37541
37543
  setup(context) {