@netless/app-slide 0.2.3 → 0.2.4
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 +16 -16
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +10 -8
- package/dist/main.es.js.map +1 -1
- package/dist/main.iife.js +50 -50
- package/dist/main.iife.js.map +1 -1
- package/package.json +1 -1
- package/src/SlideController/index.ts +8 -6
- package/src/index.ts +2 -0
package/package.json
CHANGED
|
@@ -247,6 +247,7 @@ export class SlideController {
|
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
private createSlide(anchor: HTMLDivElement) {
|
|
250
|
+
const options = this.context.getAppOptions() || {};
|
|
250
251
|
const slide = new Slide({
|
|
251
252
|
anchor,
|
|
252
253
|
interactive: true,
|
|
@@ -255,12 +256,13 @@ export class SlideController {
|
|
|
255
256
|
controller: logger.enable,
|
|
256
257
|
enableGlobalClick: true,
|
|
257
258
|
renderOptions: {
|
|
258
|
-
minFPS:
|
|
259
|
-
maxFPS:
|
|
260
|
-
autoFPS:
|
|
261
|
-
autoResolution:
|
|
262
|
-
resolution:
|
|
263
|
-
transactionBgColor:
|
|
259
|
+
minFPS: options.minFPS || 25,
|
|
260
|
+
maxFPS: options.maxFPS || 30,
|
|
261
|
+
autoFPS: options.autoFPS ?? true,
|
|
262
|
+
autoResolution: options.autoResolution ?? true,
|
|
263
|
+
resolution: options.resolution,
|
|
264
|
+
transactionBgColor: options.bgColor || cachedGetBgColor(anchor),
|
|
265
|
+
maxResolutionLevel: options.maxResolutionLevel,
|
|
264
266
|
},
|
|
265
267
|
timestamp: this.timestamp,
|
|
266
268
|
});
|
package/src/index.ts
CHANGED