@netless/app-slide 0.1.4 → 0.1.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netless/app-slide",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "main": "dist/main.cjs.js",
5
5
  "module": "dist/main.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -249,7 +249,7 @@ export class SlideController {
249
249
  renderOptions: {
250
250
  minFPS: this.context.getAppOptions()?.minFPS || 25,
251
251
  maxFPS: this.context.getAppOptions()?.maxFPS || 30,
252
- autoFPS: true,
252
+ autoFPS: this.context.getAppOptions()?.autoFPS ?? true,
253
253
  autoResolution: this.context.getAppOptions()?.autoResolution ?? true,
254
254
  resolution: this.context.getAppOptions()?.resolution,
255
255
  transactionBgColor: this.context.getAppOptions()?.bgColor || cachedGetBgColor(anchor),
package/src/index.ts CHANGED
@@ -37,6 +37,8 @@ export interface AppOptions {
37
37
  minFPS?: number;
38
38
  /** maximal fps @default 30 */
39
39
  maxFPS?: number;
40
+ /** automatically decrease fps @default true */
41
+ autoFPS?: boolean;
40
42
  /** whether to re-scale automatically @default true */
41
43
  autoResolution?: boolean;
42
44
  }