UNPKG

asciitorium

Version:
24 lines (23 loc) 677 B
import { Component, ComponentProps } from '../core/Component.js'; import { State } from '../core/State.js'; export interface BannerOptions extends Omit<ComponentProps, 'children'> { font: string; text?: string | State<string>; letterSpacing?: number; } export declare class Banner extends Component { private textState?; private isLoading; private loadError?; private font; private fontAsset?; private text; private letterSpacing; private isDestroyed; constructor(options: BannerOptions); private forceRenderIfNeeded; private renderTextWithFont; private updateFontText; destroy(): void; draw(): string[][]; }