@netless/slide 0.1.29 → 0.1.34
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 +15 -1
- package/lib/Slide.js +17 -17
- package/package.json +2 -2
package/lib/Slide.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export declare const delay: (value: number) => Promise<unknown>;
|
|
2
|
+
export declare function waitUntil(fn: () => boolean, timeout: number): Promise<void>;
|
|
1
3
|
export declare const SLIDE_EVENTS: {
|
|
2
4
|
/** 同步事件派发 */
|
|
3
5
|
readonly syncDispatch: "syncDispatch";
|
|
@@ -61,6 +63,7 @@ export interface ISlideConfig {
|
|
|
61
63
|
interface MediaState {
|
|
62
64
|
type: "pause" | "play";
|
|
63
65
|
time: number;
|
|
66
|
+
frozenTime?: number;
|
|
64
67
|
}
|
|
65
68
|
interface TimeNodeSeqState {
|
|
66
69
|
step: number;
|
|
@@ -180,6 +183,11 @@ export declare class Slide extends Slide_base {
|
|
|
180
183
|
private isInitResized;
|
|
181
184
|
private cacheImage;
|
|
182
185
|
private config;
|
|
186
|
+
private isFrowning;
|
|
187
|
+
private isReleasing;
|
|
188
|
+
private designWidth;
|
|
189
|
+
private designHeight;
|
|
190
|
+
private _slideCount;
|
|
183
191
|
constructor(config: ISlideConfig);
|
|
184
192
|
private initPlayer;
|
|
185
193
|
private createController;
|
|
@@ -317,7 +325,13 @@ export declare class Slide extends Slide_base {
|
|
|
317
325
|
*/
|
|
318
326
|
resume(): void;
|
|
319
327
|
getPreviewImage(slideIndex: number): Promise<string | null>;
|
|
320
|
-
|
|
328
|
+
/**
|
|
329
|
+
* 进入冻结状态, 将 ppt 画面缓存为一张图片, 并释放 webgl 上下文
|
|
330
|
+
*/
|
|
331
|
+
frozen(): Promise<void>;
|
|
332
|
+
/**
|
|
333
|
+
* 从冻结状态恢复
|
|
334
|
+
*/
|
|
321
335
|
release(): Promise<void>;
|
|
322
336
|
/**
|
|
323
337
|
* 销毁方法.
|