Example:
Create an SVG renderer and attach it to the DIV element named "boo" to render using
const vf: Factory = new VexFlow.Factory({renderer: { elementId: 'boo', width: 1200, height: 600 }});
Protected
contextProtected
optionsProtected
renderQProtected
Optional
staveProtected
stavesProtected
systemsProtected
voicesStatic
DEBUGTo enable logging for this class. Set VexFlow.Factory.DEBUG
to true
.
Optional
params: {Optional
params: { betweenLines?: boolean; position?: string | number; type?: string }Optional
params: {Optional
params: { options?: { annotation?: string; size?: string }; type?: string }Render the score.
Creates EasyScore. Normally the first step after constructing a Factory. For example:
const vf: Factory = new VexFlow.Factory({renderer: { elementId: 'boo', width: 1200, height: 600 }});
const score: EasyScore = vf.EasyScore();
Optional
builder?: BuilderOptional
commitHooks?: CommitHook[]Optional
factory?: FactoryOptional
throwOnError?: booleanOptional
options: FormatterOptionsOptional
options: GlyphNoteOptionsOptional
params: { notes?: Note[] }Optional
params: {Optional
params: { notes?: StaveNote[]; options?: { style: string } }Optional
noteStruct: NoteStructOptional
options: GlyphNoteOptionsOptional
options: FactoryOptionsReturn pixels from current stave spacing.
Optional
params: { options?: StaveOptions; width?: number; x?: number; y?: number }Optional
params: { options?: StaveOptions; width?: number; x?: number; y?: number }Optional
params: { dots?: number; duration?: string; line?: number; text?: string }Optional
params: { time?: string }Optional
params: { notes?: Note[]; options?: TupletOptions }Static
newStatic simplified function to access constructor without providing FactoryOptions
Example:
Create an SVG renderer and attach it to the DIV element named "boo" to render using
const vf: Factory = VexFlow.Factory.newFromElementId('boo', 1200, 600 );
Factory implements a high level API around VexFlow.