@stringsync/vexml
Version:
MusicXML to Vexflow
26 lines (25 loc) • 1.01 kB
TypeScript
import * as rendering from '../rendering';
import { Config } from '../config';
import { Logger } from '../debug';
import { Rect } from '../spatial';
import { Fraction } from '../util';
export declare class Rest {
private config;
private log;
private document;
private restRender;
private constructor();
static create(config: Config, log: Logger, document: rendering.Document, restRender: rendering.RestRender): Rest;
/** The name of the element, which can be used as a type discriminant. */
readonly name = "rest";
/** Returns the bounding box of the element. */
rect(): Rect;
/** Returns the measure beat that this note starts on. */
getStartMeasureBeat(): Fraction;
/** Returns the number of beats that this note takes. */
getBeatCount(): Fraction;
/** Returns the system index that this rest resides in. */
getSystemIndex(): number;
/** Returns the absolute measure index that this rest resides in. */
getAbsoluteMeasureIndex(): number;
}