@netless/slide 1.4.59-alpha.3 → 1.4.59

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.
@@ -0,0 +1,10 @@
1
+ export declare type ContextReleasePlatform = {
2
+ isIOS(): boolean;
3
+ isAndroid(): boolean;
4
+ };
5
+ /**
6
+ * Wait for the browser to finish releasing a destroyed WebGL context before
7
+ * creating a replacement player. Uses rAF when available, but always settles
8
+ * within a bounded timeout so hidden/background WebViews cannot hang release.
9
+ */
10
+ export declare function waitForPlayerContextRelease(platform: ContextReleasePlatform): Promise<void>;
package/lib/Slide.d.ts CHANGED
@@ -446,6 +446,7 @@ export declare class Slide extends Slide_base {
446
446
  static __stageCountLimit: number;
447
447
  static setStageCountLimit(limit: number): void;
448
448
  private iosResetCache;
449
+ private iosResetPending;
449
450
  private iosNewPlayer?;
450
451
  private version?;
451
452
  private __slideState;
@@ -510,8 +511,7 @@ export declare class Slide extends Slide_base {
510
511
  private handleSyncQueueCompactRenderComplete;
511
512
  private handleSyncQueueCatchUpStateChange;
512
513
  private updatePlayerInteractive;
513
- private flipDebugState;
514
- private logSlideFlip;
514
+ private hideResetSnapshot;
515
515
  private observeRenderTask;
516
516
  private recoverHandler;
517
517
  private reportError;