chordsong
Version:
ChordSong is a simple text format for the notation of lyrics with guitar chords, and an application that renders them to portable HTML pages.
29 lines (28 loc) • 842 B
TypeScript
import { Diagram } from './Diagram';
export interface SvgDiagramOptions {
fretWidth?: number;
fretHeight?: number;
stringLineColor?: string;
stringLineWidth?: number;
fretLineColor?: string;
fretLineWidth?: number;
fingerOrBarreWidth?: number;
fingerOrBarreLineWidth?: number;
fingerOrBarreLineColor?: string;
openStringSymbolColor?: string;
openStringSymbolLineColor?: string;
}
export declare class SvgDiagram {
static svgDefs: string;
diagram: Diagram;
constructor(diagram: Diagram, options?: SvgDiagramOptions);
get openStrings(): number[];
get mutedStrings(): number[];
get playedStrings(): number[];
svg(showVariant?: boolean): string;
private svgTitle;
private svgNut;
private svgMinFretText;
private svgFingersOrBarres;
private svgStrings;
}