@music-lyric-player/base 0.17.0 → 0.18.0

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.
@@ -28,7 +28,7 @@ export declare class BaseLyricPlayer {
28
28
  private handleSyncTime;
29
29
  private handleUpdateActiveLines;
30
30
  private onTick;
31
- updateLyric(info: Lyric.Info): void;
31
+ updateLyric(info: Lyric.Parsed.Info): void;
32
32
  /**
33
33
  * Start playback
34
34
  *
@@ -59,7 +59,7 @@ export declare class BaseLyricPlayer {
59
59
  * @param time time in ms to find active lines for.
60
60
  */
61
61
  matchLinesWithTime(time: number): {
62
- lines: Lyric.Line[];
62
+ lines: Lyric.Parsed.ParsedLine[];
63
63
  index: number[];
64
64
  };
65
65
  /**
@@ -77,7 +77,7 @@ export declare class BaseLyricPlayer {
77
77
  /**
78
78
  * Current active lines.
79
79
  */
80
- get currentLines(): Lyric.Line[];
80
+ get currentLines(): Lyric.Parsed.ParsedLine[];
81
81
  /**
82
82
  * Indices of currently active lines.
83
83
  */
@@ -89,7 +89,7 @@ export declare class BaseLyricPlayer {
89
89
  /**
90
90
  * The current lyric info object.
91
91
  */
92
- get currentInfo(): Lyric.Info;
92
+ get currentInfo(): Lyric.Parsed.Info;
93
93
  /**
94
94
  * The current playback time in ms.
95
95
  */
@@ -127,7 +127,7 @@ export declare interface BaseLyricPlayerEventMap {
127
127
  * When the entire lyric information is updated (e.g., loading a new lyric/song).
128
128
  * @param info The newly loaded lyric information object.
129
129
  */
130
- lyricUpdate: (info: Lyric.Info) => void;
130
+ lyricUpdate: (info: Lyric.Parsed.Info) => void;
131
131
  /**
132
132
  * When the currently active lyric lines change during playback.
133
133
  * @param lines An array of the currently active lyric lines.
@@ -135,7 +135,7 @@ export declare interface BaseLyricPlayerEventMap {
135
135
  * @param firstIndex The index of the first currently active lyric line (-1 if none).
136
136
  * @param isSeek Is seek.
137
137
  */
138
- linesUpdate: (lines: Lyric.Line[], indexs: number[], index: number, isSeek: boolean) => void;
138
+ linesUpdate: (lines: Lyric.Parsed.ParsedLine[], indexs: number[], index: number, isSeek: boolean) => void;
139
139
  }
140
140
 
141
141
  declare const DEFAULT: Root;