@netless/slide 0.4.0 → 0.4.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/README.md +6 -0
- package/lib/Slide.d.ts +7 -0
- package/lib/Slide.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
package/lib/Slide.d.ts
CHANGED
|
@@ -115,6 +115,9 @@ export interface ISlideRenderOptions {
|
|
|
115
115
|
/** 播放切页动画时候的背景颜色, 接受 css 颜色字符串或者 16进制颜色值("#ffffff",0xffffff) */
|
|
116
116
|
transactionBgColor?: string | number;
|
|
117
117
|
}
|
|
118
|
+
export interface INavigatorDelegate {
|
|
119
|
+
gotoPage(index: number): void;
|
|
120
|
+
}
|
|
118
121
|
export interface ISlideConfig {
|
|
119
122
|
/** canvas 挂载点 */
|
|
120
123
|
anchor: HTMLDivElement;
|
|
@@ -163,6 +166,10 @@ export interface ISlideConfig {
|
|
|
163
166
|
* 远程资源代理, 详细使用参考 README
|
|
164
167
|
*/
|
|
165
168
|
loaderDelegate?: ILoaderDelegate;
|
|
169
|
+
/**
|
|
170
|
+
* ppt 页码导航代理, 添加此属性后, ppt 内部动作引起的页码变换, 全部走代理逻辑.
|
|
171
|
+
*/
|
|
172
|
+
navigatorDelegate?: INavigatorDelegate;
|
|
166
173
|
}
|
|
167
174
|
interface MediaState {
|
|
168
175
|
type: "pause" | "play";
|