@netless/slide 1.4.52 → 1.4.54

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 CHANGED
@@ -4,7 +4,15 @@
4
4
 
5
5
  ## changelog
6
6
 
7
- ### 1.4.52 (2026-3-3)
7
+ ### 1.5.54 (2026-04-09)
8
+ * 修复在部分安卓机型上对比度特效导致图片还原度不一致
9
+
10
+ ### 1.4.53 (2026-03-23)
11
+ * 添加自动重试 (在使用 loaderDelegate 时不生效)
12
+ * 可选传入 最大重试次数, 默认为 3
13
+ * 可选传入 最大重试次数失败的回调
14
+
15
+ ### 1.4.52 (2026-03-03)
8
16
  * 修复连续点击下一步会一直重复进行下一部动画问题
9
17
 
10
18
  ### 1.4.51 (2026-2-26)
package/lib/Lock.js CHANGED
@@ -1,3 +1,6 @@
1
+ /*
2
+ 防止信令收发延迟高的时候, 用户狂点, 导致短时间触发多次信令的修改, 按照事件类型加同步锁, 即同一个事件类型仅有第一个事件生效, 多点不生效
3
+ */
1
4
  var Lock = /** @class */ (function () {
2
5
  function Lock(available) {
3
6
  this.autoUnlock = Object.create(null);
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";