@netless/slide 1.4.14-alpha.10 → 1.4.14-next.10

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/lib/Slide.d.ts CHANGED
@@ -255,7 +255,6 @@ export interface ISlideConfig {
255
255
  * default is true
256
256
  */
257
257
  enableTracking?: boolean;
258
- enableWebAudio?: boolean;
259
258
  }
260
259
  interface MediaState {
261
260
  type: "pause" | "play";
@@ -279,6 +278,7 @@ interface ISlideState {
279
278
  interactiveSeqState: {
280
279
  [key: string]: TimeNodeSeqState;
281
280
  };
281
+ uuid?: string;
282
282
  }
283
283
  export declare type SyncEvent = SyncInteractiveAnimEvent | SyncPrevStepEvent | SyncNextStepEvent | SyncRenderSlideEvent | SyncSetResourceEvent | SyncMediaPlayEvent | SyncMediaPauseEvent | SyncMediaSeekEvent | SyncMediaFullscreenEvent;
284
284
  export interface BasicSyncEvent {
@@ -482,6 +482,10 @@ export declare class Slide extends Slide_base {
482
482
  * @param state ISlideState
483
483
  */
484
484
  setSlideState(state: Partial<ISlideState>): Promise<void>;
485
+ applySlideState(state: Partial<ISlideState>): Promise<void>;
486
+ getSlideState(): ISlideState;
487
+ private applyInteractiveSeqState;
488
+ private playInteractiveAnim;
485
489
  private initInteractiveSeq;
486
490
  private initMedia;
487
491
  /**
@@ -681,4 +685,5 @@ export declare class Slide extends Slide_base {
681
685
  * @deprecated This API is no longer functional. Please use `slideInstance.clearSlideCache` and `Slide.clearLocalCache` instead.
682
686
  */
683
687
  static disposeLocalCache(): void;
688
+ dryrun(event: SyncEvent): ISlideState;
684
689
  }