@netless/slide 1.4.35 → 1.4.36

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,6 +4,9 @@
4
4
 
5
5
  ## changelog
6
6
 
7
+ ### 1.4.36 (2025-6-26)
8
+ * 修复`safari`无法在播放前调整进度问题
9
+
7
10
  ### 1.4.35 (2025-6-16)
8
11
  * 修复特殊PPT内箭头不显示问题
9
12
 
@@ -11,14 +11,14 @@ var FrozenTaskManager = /** @class */ (function () {
11
11
  task.status = "running";
12
12
  task.fn.apply(null).then(function () {
13
13
  if (_this.tasks.length > 0) {
14
- setTimeout(_this.schedule);
14
+ window.requestAnimationFrame(_this.schedule);
15
15
  }
16
16
  else {
17
17
  _this.isScheduling = false;
18
18
  }
19
19
  }).catch(function () {
20
20
  if (_this.tasks.length > 0) {
21
- setTimeout(_this.schedule);
21
+ window.requestAnimationFrame(_this.schedule);
22
22
  }
23
23
  else {
24
24
  _this.isScheduling = false;
@@ -97,16 +97,6 @@ var PlayerConfig = /** @class */ (function () {
97
97
  enumerable: false,
98
98
  configurable: true
99
99
  });
100
- Object.defineProperty(PlayerConfig.prototype, "maxResolutionLevel", {
101
- get: function () {
102
- return this.player.config.maxResolutionLevel;
103
- },
104
- set: function (value) {
105
- this.player.updateConfig({ maxResolutionLevel: value });
106
- },
107
- enumerable: false,
108
- configurable: true
109
- });
110
100
  return PlayerConfig;
111
101
  }());
112
102
  export { PlayerConfig };
@@ -155,7 +145,6 @@ var PlayerController = /** @class */ (function () {
155
145
  resolution: gui.add(this.config, "resolution", 0.5, 8, 0.5),
156
146
  autoResolution: gui.add(this.config, "autoResolution"),
157
147
  autoFps: gui.add(this.config, "autoFPS"),
158
- maxResolutionLevel: gui.add(this.config, "maxResolutionLevel", 0, 4, 1),
159
148
  transactionBgColor: gui.addColor(this.config, "backgroundColor"),
160
149
  };
161
150
  return [gui, controller];
@@ -104,7 +104,6 @@ var RenderingTaskManager = /** @class */ (function () {
104
104
  _this.tasks.splice(selfIndex, 1);
105
105
  _this.replaceIdleTask();
106
106
  }
107
- _this.eventHub.emit("task-error-".concat(task.id));
108
107
  });
109
108
  }
110
109
  RenderingTaskManager.prototype.replaceIdleTask = function () {