UNPKG

@stringsync/vexml

Version:

MusicXML to Vexflow

28 lines (27 loc) 960 B
import * as rendering from '../rendering'; import { Config } from '../config'; import { Logger } from '../debug'; import { Rect } from '../spatial'; import { Stave } from './stave'; import { Fraction } from '../util'; export declare class Part { private config; private log; private document; private partRender; private staves; private constructor(); static create(config: Config, log: Logger, document: rendering.Document, partRender: rendering.PartRender): Part; /** The name of the element, which can be used as a type discriminant. */ readonly name = "part"; /** Returns the bounding box of the element. */ rect(): Rect; /** Returns the staves of the part. */ getStaves(): Stave[]; /** Returns the part index. */ getIndex(): number; /** Returns the system index. */ getSystemIndex(): number; /** Returns the start measure beat for the part. */ getStartMeasureBeat(): Fraction; }