@netless/slide 0.7.8 → 0.8.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/lib/Slide.d.ts +11 -0
- package/lib/Slide.js +185 -79
- package/package.json +2 -2
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;
|