@music-lyric-player/base 0.12.1 → 0.14.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.
@@ -12,12 +12,15 @@ export declare class BaseLyricPlayer {
12
12
  private time;
13
13
  private offset;
14
14
  private info;
15
+ private mergedLineEnd;
15
16
  constructor();
16
17
  private onConfigUpdate;
17
18
  private handleGetCurrentTime;
18
19
  private handleGetEffectiveTime;
19
20
  private handleRefreshOffset;
20
21
  private handleGetLineTime;
22
+ private handleBuildMergedLineEnd;
23
+ private handleGetMergedLineTime;
21
24
  private handleGetActiveIndex;
22
25
  private handleBridgeActive;
23
26
  private handleEmitLinesUpdate;
@@ -169,6 +172,16 @@ declare interface Root {
169
172
  * @default true
170
173
  */
171
174
  bridgeActive?: boolean;
175
+ /**
176
+ * Merge the deactivation of consecutive lines whose raw end times fall within this many ms,
177
+ * so close‑ending lines leave the active state together instead of one‑by‑one, avoiding a double scroll jump.
178
+ *
179
+ * Earlier‑ending lines are only ever extended to the cluster's later end, never cut short.
180
+ * `0` disables merging.
181
+ *
182
+ * @default 300
183
+ */
184
+ mergeWindow?: number;
172
185
  /**
173
186
  * Lyric time offset settings.
174
187
  */