UNPKG

wave-roll

Version:

JavaScript Library for Comparative MIDI Piano-Roll Visualization

37 lines 993 B
/** * WaveRoll Web Component * * Usage: * <wave-roll * files='[{"path": "file.mid", "name": "File Name", "type": "midi"}]' * style="width: 100% * ></wave-roll> * * Note: * - The component accepts `name` for user-facing labels. */ declare class WaveRollElement extends HTMLElement { private player; private container; constructor(); connectedCallback(): void; disconnectedCallback(): void; static get observedAttributes(): string[]; attributeChangedCallback(name: string, oldValue: string, newValue: string): void; private render; private initializePlayer; play(): Promise<void>; pause(): void; get isPlaying(): boolean; /** * Seek to a specific time (seconds). * Provided for E2E/manual testing via index.html. */ seek(time: number): void; /** * Return lightweight state for assertions in tests. */ getState(): any; } export { WaveRollElement }; //# sourceMappingURL=web-component.d.ts.map