@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/dist/index.d.ts +2 -0
- package/dist/main.cjs.js +2 -2
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +6 -6
- package/dist/main.es.js.map +1 -1
- package/dist/main.iife.js +2 -2
- package/dist/main.iife.js.map +1 -1
- package/package.json +1 -1
- package/src/SlideController/index.ts +1 -1
- package/src/index.ts +2 -0
package/package.json
CHANGED
|
@@ -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
|
}
|