@netless/slide 0.11.2 → 1.0.1-beta.1
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 +3 -1
- package/lib/Slide.js +2 -2
- package/package.json +2 -2
package/lib/Slide.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { SlideError, VolumeAdjuster } from "@netless/ppt-player";
|
|
2
2
|
import { IPlugin } from "@netless/plugin-system";
|
|
3
|
-
export { ErrorType } from "@netless/ppt-player";
|
|
3
|
+
export type { ErrorType } from "@netless/ppt-player";
|
|
4
4
|
export * from "./global";
|
|
5
|
+
export declare type UrlInterrupter = (url: string) => Promise<string>;
|
|
5
6
|
export interface ILoaderDelegate {
|
|
6
7
|
/**
|
|
7
8
|
* 加载 json 资源, 需返回 json 文本
|
|
@@ -234,6 +235,7 @@ export interface ISlideConfig {
|
|
|
234
235
|
* 1. ppt 某一页有自动动画, 动画过程中进行的下一步动作, 在其他客户端可能表现为下一页(即翻页)
|
|
235
236
|
*/
|
|
236
237
|
clientId?: string;
|
|
238
|
+
urlInterrupter?: UrlInterrupter;
|
|
237
239
|
}
|
|
238
240
|
interface MediaState {
|
|
239
241
|
type: "pause" | "play";
|