@netless/slide 0.1.56 → 0.2.3
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 -0
- package/lib/Slide.js +19 -19
- 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,8 @@ export declare class Slide extends Slide_base {
|
|
|
164
170
|
private needClearCacheImage;
|
|
165
171
|
private version?;
|
|
166
172
|
private __slideState;
|
|
173
|
+
private userInputTime;
|
|
174
|
+
private isSyncingSlideState;
|
|
167
175
|
private resize;
|
|
168
176
|
private isAnimating;
|
|
169
177
|
private renderingTaskManager;
|
|
@@ -178,6 +186,7 @@ export declare class Slide extends Slide_base {
|
|
|
178
186
|
private frameResizeObserver;
|
|
179
187
|
private timestamp;
|
|
180
188
|
private mode;
|
|
189
|
+
private enableGlobalClick;
|
|
181
190
|
private log;
|
|
182
191
|
private logId;
|
|
183
192
|
private lastEmitedState;
|
|
@@ -190,11 +199,17 @@ export declare class Slide extends Slide_base {
|
|
|
190
199
|
private config;
|
|
191
200
|
private isFrowning;
|
|
192
201
|
private isReleasing;
|
|
202
|
+
private isTouchStart;
|
|
203
|
+
private touchStartId;
|
|
193
204
|
private designWidth;
|
|
194
205
|
private designHeight;
|
|
195
206
|
private _slideCount;
|
|
196
207
|
constructor(config: ISlideConfig);
|
|
197
208
|
private initPlayer;
|
|
209
|
+
private userInputHandle;
|
|
210
|
+
private handleViewClick;
|
|
211
|
+
private handleViewTouchStart;
|
|
212
|
+
private handleViewTouchEnd;
|
|
198
213
|
private createController;
|
|
199
214
|
private persistLog;
|
|
200
215
|
private handleSlideRef;
|