@netless/slide 0.5.9 → 0.5.10

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/README.md CHANGED
@@ -601,3 +601,10 @@ const slide = new Slide({
601
601
  * 修复形状箭头不显示的问题
602
602
  * Slide.pause 支持暂停音视频的播放
603
603
  * Slide 添加 fixedFrameSize 配置项, 支持固定 ppt 高宽
604
+
605
+ #### 0.5.10
606
+
607
+ * 修复图片尺寸过大造成安卓端黑屏
608
+ * 添加 ISlideRenderOptions.maxResolutionLevel 配置参数
609
+ * 进一步降低移动设备内存消耗
610
+ * 支持通过视频帧触发的动画类型 (需要重新发起转换任务)
package/lib/Slide.d.ts CHANGED
@@ -114,6 +114,16 @@ export interface ISlideRenderOptions {
114
114
  autoFPS?: boolean;
115
115
  /** 播放切页动画时候的背景颜色, 接受 css 颜色字符串或者 16进制颜色值("#ffffff",0xffffff) */
116
116
  transactionBgColor?: string | number;
117
+ /**
118
+ * 用于设置最高显示分辨率。此值不仅影响 canvas 渲染分辨率, 同时也影响纹理质量,
119
+ * 在低端设备, 降低此值能极大改善内存占用及图片黑屏现象.
120
+ * [1] 最低 960 * 540, 小于 1 按 1 计算;
121
+ * [2] 普通 1280 * 720; 移动端默认设置.
122
+ * [3] 高清 1920 * 1080; pc 端默认设置.
123
+ * [4] 3K 3200 × 1800, 大于 4 按 4 计算;
124
+ * 默认情况下, pc 设备 3K, 移动设备 720P
125
+ */
126
+ maxResolutionLevel?: number;
117
127
  }
118
128
  export interface INavigatorDelegate {
119
129
  gotoPage(index: number): void;
@@ -283,7 +293,6 @@ export interface SlideEventEmitter {
283
293
  }
284
294
  declare const Slide_base: new () => SlideEventEmitter;
285
295
  export declare class Slide extends Slide_base {
286
- static logStore: LocalForage;
287
296
  static _tempLog: string;
288
297
  static _tempLogIndex: number;
289
298
  static flushLog(): Promise<void>;