@braccato/core
Advanced tools
+5
-3
@@ -6,3 +6,3 @@ import type { Lyric, LyricPart, LyricSyncType } from "./types.js"; | ||
| export declare function deriveSyncType(lyrics: Lyric[]): LyricSyncType; | ||
| export interface PartData { | ||
| export interface AnimationData { | ||
| /** | ||
@@ -18,4 +18,6 @@ * Time of this part in seconds | ||
| animations: Animation[]; | ||
| highlightElement?: HTMLElement; | ||
| } | ||
| export interface PartData extends AnimationData { | ||
| highlightElement: HTMLElement; | ||
| } | ||
| export type LineData = { | ||
@@ -31,3 +33,3 @@ parts: PartData[]; | ||
| position: number; | ||
| } & PartData; | ||
| } & AnimationData; | ||
| export declare function newLineData(lyricElement: HTMLElement, startTimeMs: number, durationMs: number): LineData; | ||
@@ -34,0 +36,0 @@ export declare function applyDirection(element: HTMLElement, text: string): void; |
+1
-1
| { | ||
| "name": "@braccato/core", | ||
| "version": "1.2.1", | ||
| "version": "1.3.0", | ||
| "description": "Synchronized lyrics renderer with word-by-word animations", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is too big to display
290718
0.04%5212
0.08%