asciitorium
Version:
an ASCII ui framework for web + cli
21 lines (20 loc) • 563 B
TypeScript
import { Component, ComponentProps } from '../core/Component';
export interface ArtOptions extends Omit<ComponentProps, 'width' | 'height'> {
content: string;
width?: number;
height?: number;
}
export declare class AsciiArt extends Component {
private readonly frames;
private frameIndex;
private loop;
private timer;
constructor(options: ArtOptions);
private startAnimation;
private scheduleNext;
private advanceFrame;
private maybePlaySound;
private clearTimer;
destroy(): void;
draw(): string[][];
}