@netless/slide 1.4.55-alpha.6 → 1.4.56

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,20 @@
1
+ declare type VisibilityStyle = {
2
+ visibility: string;
3
+ };
4
+ declare type DisplayStyle = {
5
+ display: string;
6
+ };
7
+ declare type RenderSlidePlayer = {
8
+ view?: {
9
+ style: VisibilityStyle;
10
+ } | null;
11
+ };
12
+ declare type RenderSlideElement = {
13
+ style: VisibilityStyle & DisplayStyle;
14
+ };
15
+ /**
16
+ * Reveal a completed live render and remove its fallback image.
17
+ * Frozen and release states own visibility while their player transition is active.
18
+ */
19
+ export declare function updateRenderSlideVisibility(isReleasing: boolean, player: RenderSlidePlayer | undefined, frame: RenderSlideElement, cacheImage: RenderSlideElement): void;
20
+ export {};
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Reveal a completed live render and remove its fallback image.
3
+ * Frozen and release states own visibility while their player transition is active.
4
+ */
5
+ export function updateRenderSlideVisibility(isReleasing, player, frame, cacheImage) {
6
+ if (isReleasing || !(player === null || player === void 0 ? void 0 : player.view)) {
7
+ return;
8
+ }
9
+ if (player.view.style.visibility === "hidden") {
10
+ player.view.style.visibility = "visible";
11
+ }
12
+ if (frame.style.visibility === "hidden") {
13
+ frame.style.visibility = "visible";
14
+ }
15
+ cacheImage.style.display = "none";
16
+ }
package/lib/Slide.d.ts CHANGED
@@ -5,7 +5,6 @@ import { AliTrackLogger } from "./AliTrackLogger";
5
5
  import { preloadResource } from "./global";
6
6
  export { ErrorType, PreloadCancelledError } from "@netless/ppt-player";
7
7
  export type { SyncEventQueuePolicy } from "./SyncTaskManager";
8
- export declare const LOCAL_GIF_RUNTIME_CAPABILITY = "netless-slide-local-gif-production-client-geometry";
9
8
  export declare type UrlInterrupter = (url: string) => Promise<string>;
10
9
  export interface ILoaderDelegate {
11
10
  /**
@@ -180,10 +179,6 @@ export interface ISlideRenderOptions {
180
179
  */
181
180
  transitionResolutionLevel?: number;
182
181
  antialias?: boolean;
183
- /** Maximum compressed bytes accepted for one client-decoded GIF. */
184
- localGifMaxCompressedBytes?: number;
185
- /** Maximum estimated GIF working set for one cached slide. */
186
- localGifMaxWorkingSetBytes?: number;
187
182
  }
188
183
  export interface INavigatorDelegate {
189
184
  gotoPage?: (index: number) => void;
@@ -301,6 +296,7 @@ export interface ISlideConfig {
301
296
  interface MediaState {
302
297
  type: "pause" | "play";
303
298
  time: number;
299
+ frozenTime?: number;
304
300
  fullscreen?: boolean;
305
301
  }
306
302
  interface TimeNodeSeqState {
@@ -451,12 +447,12 @@ export declare class Slide extends Slide_base {
451
447
  private userInputTime;
452
448
  private isSyncingSlideState;
453
449
  private frozenTaskManager;
454
- private frozenMediaTimes;
455
450
  private randomId;
456
451
  private resize;
457
452
  private isAnimating;
458
453
  private renderingTaskManager;
459
454
  private isLoading;
455
+ private isReleasing;
460
456
  private interactive;
461
457
  private syncCatchUpInputBlocked;
462
458
  private anchor;