@netless/slide 0.7.8 → 0.8.1

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
@@ -252,3 +252,17 @@
252
252
  #### 0.7.8
253
253
 
254
254
  * 修复录制参数没有生效
255
+
256
+ #### 0.8.0
257
+
258
+ * 修复 NVIDIA 显卡切页花屏, 需开启 enableNvidiaDetect 选项
259
+ * 新增 canvas2d 渲染模式, 需开启 forceCanvas 选项
260
+ * 修复 rtc 音频无法中途播放的问题
261
+ * 修复部分带阴影特效的形状展示不全
262
+ * 修复翻转文字显示不正确的问题
263
+ * 修复无法使用 indexdb 时候造成报错崩溃
264
+
265
+ #### 0.8.1
266
+
267
+ * 兼容 ios webview 无法以 Audio 播放 MP4
268
+ * 兼容 ios webview 设置 Audio.volume 无效
package/lib/Slide.d.ts CHANGED
@@ -134,6 +134,17 @@ export interface ISlideRenderOptions {
134
134
  * 默认情况下, pc 设备 3K, 移动设备 720P
135
135
  */
136
136
  maxResolutionLevel?: number;
137
+ /**
138
+ * 是否强制使用 2d 渲染, 强制使用 2d 渲染会丢失部分 3d、滤镜、特效
139
+ */
140
+ forceCanvas?: boolean;
141
+ /**
142
+ * 是否开启 NVIDIA 显卡检测, windows 11 配合 NVIDIA 显卡在
143
+ * 播放部分切页动画时会花屏。
144
+ * 开启这个选项, 会自动检测是否 NVIDIA, 如果是 NVIDIA 显卡则
145
+ * 使用不同的逻辑播放切页动画, 不会花屏, 但是切页响应会慢 200 ~ 1000 ms
146
+ */
147
+ enableNvidiaDetect?: boolean;
137
148
  }
138
149
  export interface INavigatorDelegate {
139
150
  gotoPage(index: number): void;