@netless/slide 0.1.55 → 0.2.2
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 +10 -0
- package/lib/Slide.js +20 -20
- package/package.json +2 -2
package/lib/Slide.d.ts
CHANGED
|
@@ -59,6 +59,12 @@ export interface ISlideConfig {
|
|
|
59
59
|
* "local" 本地模式, 不会触发任意同步事件
|
|
60
60
|
*/
|
|
61
61
|
mode: "interactive" | "sync" | "local";
|
|
62
|
+
/**
|
|
63
|
+
* 是否启用全局点击, 开启后, 只要点击到 ppt 视口范围,
|
|
64
|
+
* 并且没有触发 ppt 内部可互动元素, 就会触发下一步动作.
|
|
65
|
+
* 默认为 false
|
|
66
|
+
*/
|
|
67
|
+
enableGlobalClick?: boolean;
|
|
62
68
|
}
|
|
63
69
|
interface MediaState {
|
|
64
70
|
type: "pause" | "play";
|
|
@@ -164,6 +170,7 @@ export declare class Slide extends Slide_base {
|
|
|
164
170
|
private needClearCacheImage;
|
|
165
171
|
private version?;
|
|
166
172
|
private __slideState;
|
|
173
|
+
private isUserInput;
|
|
167
174
|
private resize;
|
|
168
175
|
private isAnimating;
|
|
169
176
|
private renderingTaskManager;
|
|
@@ -178,6 +185,7 @@ export declare class Slide extends Slide_base {
|
|
|
178
185
|
private frameResizeObserver;
|
|
179
186
|
private timestamp;
|
|
180
187
|
private mode;
|
|
188
|
+
private enableGlobalClick;
|
|
181
189
|
private log;
|
|
182
190
|
private logId;
|
|
183
191
|
private lastEmitedState;
|
|
@@ -195,6 +203,8 @@ export declare class Slide extends Slide_base {
|
|
|
195
203
|
private _slideCount;
|
|
196
204
|
constructor(config: ISlideConfig);
|
|
197
205
|
private initPlayer;
|
|
206
|
+
private userInputHandle;
|
|
207
|
+
private handleViewClick;
|
|
198
208
|
private createController;
|
|
199
209
|
private persistLog;
|
|
200
210
|
private handleSlideRef;
|