UNPKG

wave-roll

Version:

JavaScript Library for Comparative MIDI Piano-Roll Visualization

25 lines 1.03 kB
/** Describe A-B loop window in percentage units (0-100). */ export interface LoopPoints { /** Start marker (A) - percentage or null when not set. */ a: number | null; /** End marker (B) - percentage or null when not set. */ b: number | null; } export interface LoopDisplayDeps { /** Current loop window [percent] - can be null when inactive. */ loopPoints: LoopPoints | null; /** <div> behind progress-bar showing golden region. */ loopRegion: HTMLElement | null | undefined; /** DOM marker for point-A. */ markerA: HTMLElement | null | undefined; /** DOM marker for point-B. */ markerB: HTMLElement | null | undefined; } /** * Update the visual loop overlay inside the seek-bar. * * This helper centralises the DOM tweaks so the player's update-loop * remains tidy. All percentages are expressed in the seek-bar's width. */ export declare function updateLoopDisplay({ loopPoints, loopRegion, markerA, markerB, }: LoopDisplayDeps): void; //# sourceMappingURL=loop-display.d.ts.map