@netless/slide 1.4.23 → 1.4.25

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,14 @@
4
4
 
5
5
  ## changelog
6
6
 
7
+ ### 1.4.25 (2025-5-12)
8
+ * 添加 "三维旋转" 效果
9
+
10
+ ### 1.4.24 (2025-5-9)
11
+ * 优化部分 PPT 中图片缓存占用
12
+ * 优化图形特效 CPU 占用
13
+ * 优化切页动画响应时间
14
+
7
15
  ### 1.4.23 (2025-5-8)
8
16
  * 添加 skipActionWhenFrozen 参数, 控制冻结时是否跳过动作, 默认为 false
9
17
  * 修复 frozen / release 多次重复调用后 frozen 不生效问题
@@ -22,6 +22,8 @@ export declare class PlayerConfig {
22
22
  set autoFPS(value: boolean);
23
23
  get backgroundColor(): any;
24
24
  set backgroundColor(value: any);
25
+ get maxResolutionLevel(): number;
26
+ set maxResolutionLevel(value: number);
25
27
  }
26
28
  export declare class PlayerController {
27
29
  private stateId;
@@ -97,6 +97,16 @@ 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
+ });
100
110
  return PlayerConfig;
101
111
  }());
102
112
  export { PlayerConfig };
@@ -145,6 +155,7 @@ var PlayerController = /** @class */ (function () {
145
155
  resolution: gui.add(this.config, "resolution", 0.5, 8, 0.5),
146
156
  autoResolution: gui.add(this.config, "autoResolution"),
147
157
  autoFps: gui.add(this.config, "autoFPS"),
158
+ maxResolutionLevel: gui.add(this.config, "maxResolutionLevel", 0, 4, 1),
148
159
  transactionBgColor: gui.addColor(this.config, "backgroundColor"),
149
160
  };
150
161
  return [gui, controller];