@netless/app-slide 0.2.72-alpha.0 → 0.2.72
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/dist/index.d.ts +10 -1
- package/dist/main.cjs.js +121 -121
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +416 -387
- package/dist/main.es.js.map +1 -1
- package/dist/main.iife.js +51 -51
- package/dist/main.iife.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -146,6 +146,7 @@ declare const SLIDE_EVENTS: {
|
|
|
146
146
|
readonly slideStepEnd: "slideEnd";
|
|
147
147
|
/** ppt There is no previous action triggered. **/
|
|
148
148
|
readonly slideStepStart: "slideStart";
|
|
149
|
+
readonly useraddLink: "useraddLink";
|
|
149
150
|
};
|
|
150
151
|
interface ISlideRenderOptions {
|
|
151
152
|
/** Minimum expected rendering fps, default is 40 */
|
|
@@ -196,6 +197,11 @@ interface INavigatorDelegate {
|
|
|
196
197
|
gotoPage?: (index: number) => void;
|
|
197
198
|
openUrl?: (url: string) => void;
|
|
198
199
|
}
|
|
200
|
+
interface CustomLink {
|
|
201
|
+
pageIndex: number;
|
|
202
|
+
shapeId: string;
|
|
203
|
+
link: string;
|
|
204
|
+
}
|
|
199
205
|
interface ISlideConfig {
|
|
200
206
|
/** canvas mount dom */
|
|
201
207
|
anchor: HTMLDivElement;
|
|
@@ -216,7 +222,7 @@ interface ISlideConfig {
|
|
|
216
222
|
* "sync" Synchronization mode, only one person can operate ppt
|
|
217
223
|
* "local" Local mode, no synchronization events will be triggered
|
|
218
224
|
*/
|
|
219
|
-
mode: "interactive" | "sync" | "local";
|
|
225
|
+
mode: "interactive" | "sync" | "local" | "addLink";
|
|
220
226
|
/**
|
|
221
227
|
* Whether to enable global clicking, after turning on, as long as you click within the ppt viewport range,
|
|
222
228
|
* and do not trigger interactive elements inside ppt, it will trigger the next action.
|
|
@@ -283,6 +289,7 @@ interface ISlideConfig {
|
|
|
283
289
|
enableWebAudio?: boolean;
|
|
284
290
|
skipActionWhenFrozen?: boolean;
|
|
285
291
|
enableAutoForward?: boolean;
|
|
292
|
+
customLinks?: CustomLink[];
|
|
286
293
|
}
|
|
287
294
|
interface MediaState {
|
|
288
295
|
type: "pause" | "play";
|
|
@@ -395,6 +402,8 @@ interface SlideEventEmitter {
|
|
|
395
402
|
on(event: typeof SLIDE_EVENTS.slideStepEnd, listener: () => void): this;
|
|
396
403
|
emit(event: typeof SLIDE_EVENTS.slideStepStart): boolean;
|
|
397
404
|
on(event: typeof SLIDE_EVENTS.slideStepStart, listener: () => void): this;
|
|
405
|
+
emit(event: typeof SLIDE_EVENTS.useraddLink, taskId: string, pageIndex: number, shapeId: string): void;
|
|
406
|
+
on(event: typeof SLIDE_EVENTS.useraddLink, listener: (taskId: string, pageIndex: number, shapeId: string) => void): this;
|
|
398
407
|
}
|
|
399
408
|
declare type TrackerEvent = {
|
|
400
409
|
name: string;
|