@netless/slide 0.4.4 → 0.4.7
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 +10 -0
- package/lib/Slide.d.ts +6 -0
- package/lib/Slide.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -574,3 +574,13 @@ const slide = new Slide({
|
|
|
574
574
|
|
|
575
575
|
#### 0.4.3
|
|
576
576
|
* 新增 hasPrevStep 及 hasNextStep api
|
|
577
|
+
|
|
578
|
+
#### 0.4.5
|
|
579
|
+
* 新增 getSizeAsync api
|
|
580
|
+
|
|
581
|
+
#### 0.4.6
|
|
582
|
+
* 预加载过程不会触发 renderError 事件
|
|
583
|
+
* 修复路径动画重置位置错误的问题
|
|
584
|
+
|
|
585
|
+
#### 0.4.7
|
|
586
|
+
* syncReceive 引起的切页不发 syncDispatch 事件
|
package/lib/Slide.d.ts
CHANGED
|
@@ -293,6 +293,7 @@ export declare class Slide extends Slide_base {
|
|
|
293
293
|
private interactive;
|
|
294
294
|
private anchor;
|
|
295
295
|
private player?;
|
|
296
|
+
private renderingIndex;
|
|
296
297
|
private frameWidth;
|
|
297
298
|
private frameHeight;
|
|
298
299
|
private frame;
|
|
@@ -345,6 +346,11 @@ export declare class Slide extends Slide_base {
|
|
|
345
346
|
* 返回 slide 总页数
|
|
346
347
|
*/
|
|
347
348
|
get slideCount(): number;
|
|
349
|
+
/**
|
|
350
|
+
* 获取 slide 设计高宽, 单位为 px, 返回数组形式为 [width, height]
|
|
351
|
+
* 可以在 renderSlide 之前调用
|
|
352
|
+
*/
|
|
353
|
+
getSizeAsync(): Promise<[number, number]>;
|
|
348
354
|
/**
|
|
349
355
|
* 获取 slide 总页数, 可以在 renderSlide 之前调用
|
|
350
356
|
*/
|