@stringsync/vexml
Version:
MusicXML to Vexflow
28 lines (27 loc) • 998 B
TypeScript
import * as rendering from '../rendering';
import { Config } from '../config';
import { Logger } from '../debug';
import { Voice } from './voice';
import { Rect } from '../spatial';
import { Fraction } from '../util';
export declare class Stave {
private config;
private log;
private document;
private staveRender;
private voices;
private constructor();
static create(config: Config, log: Logger, document: rendering.Document, staveRender: rendering.StaveRender): Stave;
/** The name of the element, which can be used as a type discriminant. */
readonly name = "stave";
/** Returns the bounding box of the element. */
rect(): Rect;
/** Returns the intrinsic rect of the stave. */
intrinsicRect(): Rect;
/** Returns the playable rect of the stave. */
playableRect(): Rect;
/** Returns the voices of the stave. */
getVoices(): Voice[];
/** Returns the start measure beat for the stave. */
getStartMeasureBeat(): Fraction;
}