@netless/slide 1.4.51 → 1.4.53
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 +11 -1
- package/lib/Lock.js +3 -0
- package/lib/Slide.d.ts +2 -0
- package/lib/Slide.js +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,8 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
## changelog
|
|
6
6
|
|
|
7
|
-
### 1.4.
|
|
7
|
+
### 1.4.53 (2026-03-23)
|
|
8
|
+
* 添加自动重试 (在使用 loaderDelegate 时不生效)
|
|
9
|
+
* 可选传入 最大重试次数, 默认为 3
|
|
10
|
+
* 可选传入 最大重试次数失败的回调
|
|
11
|
+
|
|
12
|
+
### 1.4.52 (2026-03-03)
|
|
13
|
+
* 修复连续点击下一步会一直重复进行下一部动画问题
|
|
14
|
+
|
|
15
|
+
### 1.4.51 (2026-2-26)
|
|
8
16
|
* 修复 ios15,16 部分机型中, 因 canvas2d 内存限制导致页面白屏问题, 内部测试用
|
|
17
|
+
* 修复最后一页连续点击动画后, 使用当前状态无法恢复现场的问题
|
|
18
|
+
* **引入连续点击下一步会一直重复进行最后一步动画的bug**
|
|
9
19
|
|
|
10
20
|
### 1.4.50
|
|
11
21
|
* 带有公式的元素在旋转的时候, 公式会被拉伸
|
package/lib/Lock.js
CHANGED
package/lib/Slide.d.ts
CHANGED
|
@@ -276,6 +276,8 @@ export interface ISlideConfig {
|
|
|
276
276
|
skipActionWhenFrozen?: boolean;
|
|
277
277
|
enableAutoForward?: boolean;
|
|
278
278
|
customLinks?: CustomLink[];
|
|
279
|
+
resourceMaxRetries?: number;
|
|
280
|
+
onResourceMaxRetries?: (url: string, error: Error) => void;
|
|
279
281
|
}
|
|
280
282
|
interface MediaState {
|
|
281
283
|
type: "pause" | "play";
|