@netless/slide 0.5.7 → 0.5.11
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 +7 -0
- package/lib/Slide.d.ts +13 -2
- package/lib/Slide.js +16 -16
- package/package.json +2 -2
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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SlideError, ILoaderDelegate } from "@netless/ppt-player";
|
|
2
2
|
export { ErrorType } from "@netless/ppt-player";
|
|
3
|
+
export { usePlugin } from "@netless/plugin-system";
|
|
3
4
|
export type { ILoaderDelegate } from "@netless/ppt-player";
|
|
4
5
|
export interface RtcAudio {
|
|
5
6
|
/**
|
|
@@ -114,6 +115,16 @@ export interface ISlideRenderOptions {
|
|
|
114
115
|
autoFPS?: boolean;
|
|
115
116
|
/** 播放切页动画时候的背景颜色, 接受 css 颜色字符串或者 16进制颜色值("#ffffff",0xffffff) */
|
|
116
117
|
transactionBgColor?: string | number;
|
|
118
|
+
/**
|
|
119
|
+
* 用于设置最高显示分辨率。此值不仅影响 canvas 渲染分辨率, 同时也影响纹理质量,
|
|
120
|
+
* 在低端设备, 降低此值能极大改善内存占用及图片黑屏现象.
|
|
121
|
+
* [1] 最低 960 * 540, 小于 1 按 1 计算;
|
|
122
|
+
* [2] 普通 1280 * 720; --- 移动端默认设置.
|
|
123
|
+
* [3] 高清 1920 * 1080;
|
|
124
|
+
* [4] 3K 3200 × 1800, 大于 4 按 4 计算; --- pc 端默认设置.
|
|
125
|
+
* 默认情况下, pc 设备 3K, 移动设备 720P
|
|
126
|
+
*/
|
|
127
|
+
maxResolutionLevel?: number;
|
|
117
128
|
}
|
|
118
129
|
export interface INavigatorDelegate {
|
|
119
130
|
gotoPage(index: number): void;
|
|
@@ -283,7 +294,6 @@ export interface SlideEventEmitter {
|
|
|
283
294
|
}
|
|
284
295
|
declare const Slide_base: new () => SlideEventEmitter;
|
|
285
296
|
export declare class Slide extends Slide_base {
|
|
286
|
-
static logStore: LocalForage;
|
|
287
297
|
static _tempLog: string;
|
|
288
298
|
static _tempLogIndex: number;
|
|
289
299
|
static flushLog(): Promise<void>;
|
|
@@ -329,7 +339,8 @@ export declare class Slide extends Slide_base {
|
|
|
329
339
|
private _dispatchIncrId;
|
|
330
340
|
private _receiveIncrId;
|
|
331
341
|
private get dispatchIncrId();
|
|
332
|
-
constructor(
|
|
342
|
+
constructor(initConfig: ISlideConfig);
|
|
343
|
+
initSlideConfig(config: ISlideConfig): ISlideConfig;
|
|
333
344
|
static handleLogDownload: () => Promise<void>;
|
|
334
345
|
private initPlayer;
|
|
335
346
|
private userInputHandle;
|