@netless/app-slide 0.2.104 → 0.2.105-beta.1
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 +14 -1
- package/dist/main.cjs.js +303 -302
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +3729 -2377
- package/dist/main.es.js.map +1 -1
- package/dist/main.iife.js +297 -296
- package/dist/main.iife.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +77 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as _netless_window_manager from '@netless/window-manager';
|
|
1
2
|
import { RegisterParams, ReadonlyTeleBox, Room, AppContext, Player, View, NetlessApp } from '@netless/window-manager';
|
|
2
3
|
import { SlideError, VolumeAdjuster } from '@netless/ppt-player';
|
|
3
4
|
import { IPlugin } from '@netless/plugin-system';
|
|
@@ -206,6 +207,10 @@ interface ISlideRenderOptions {
|
|
|
206
207
|
*/
|
|
207
208
|
transitionResolutionLevel?: number;
|
|
208
209
|
antialias?: boolean;
|
|
210
|
+
/** Maximum compressed bytes accepted for one client-decoded GIF. */
|
|
211
|
+
localGifMaxCompressedBytes?: number;
|
|
212
|
+
/** Maximum estimated GIF working set for one cached slide. */
|
|
213
|
+
localGifMaxWorkingSetBytes?: number;
|
|
209
214
|
}
|
|
210
215
|
interface INavigatorDelegate {
|
|
211
216
|
gotoPage?: (index: number) => void;
|
|
@@ -479,6 +484,7 @@ declare class Slide extends Slide_base {
|
|
|
479
484
|
private isAnimating;
|
|
480
485
|
private renderingTaskManager;
|
|
481
486
|
private isLoading;
|
|
487
|
+
private isReleasing;
|
|
482
488
|
private interactive;
|
|
483
489
|
private syncCatchUpInputBlocked;
|
|
484
490
|
private anchor;
|
|
@@ -1293,6 +1299,11 @@ interface AppOptions extends Pick<ISlideConfig, "rtcAudio" | "useLocalCache" | "
|
|
|
1293
1299
|
enableScale?: boolean;
|
|
1294
1300
|
resourceMaxRetries?: number;
|
|
1295
1301
|
onResourceMaxRetries: (url: string, error: Error) => void;
|
|
1302
|
+
/**
|
|
1303
|
+
* Max time (ms) `setup()` waits for the first `renderEnd` before resolving
|
|
1304
|
+
* anyway (the slide keeps loading in background). Default: 5_000.
|
|
1305
|
+
*/
|
|
1306
|
+
setupReadyTimeout?: number;
|
|
1296
1307
|
}
|
|
1297
1308
|
interface ILogger {
|
|
1298
1309
|
info?(msg: string): void;
|
|
@@ -1316,7 +1327,9 @@ interface AppResult {
|
|
|
1316
1327
|
getViewScale: () => number | undefined;
|
|
1317
1328
|
translateView: (offsetX: number, offsetY: number) => void;
|
|
1318
1329
|
}
|
|
1319
|
-
declare const SlideApp: NetlessApp<Attributes, MagixEvents, AppOptions, AppResult
|
|
1330
|
+
declare const SlideApp: NetlessApp<Attributes, MagixEvents, AppOptions, AppResult> & {
|
|
1331
|
+
teardown(context: _netless_window_manager.AppContext): void;
|
|
1332
|
+
};
|
|
1320
1333
|
|
|
1321
1334
|
export { DefaultUrl, DocsViewer, FreezerLength, SideEffectManager, Slide, SlideController, SlideControllerBase, SlideDocsViewer, SlidePreviewer, addHooks, apps, SlideApp as default, getFreezerLength, log, logger, onCreated, onDestroyed, previewSlide, setFreezerLength, syncSceneWithSlide, useFreezer, usePlugin, version };
|
|
1322
1335
|
export type { AddHooks, AppOptions, AppResult, Attributes, FreezableSlide, ILogger, PreviewParams };
|