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 }});
ProtectedcontextProtectedoptionsProtectedrenderQProtected OptionalstaveProtectedstavesProtectedsystemsProtectedvoicesStaticDEBUGTo enable logging for this class. Set VexFlow.Factory.DEBUG to true.
Optionalparams: {Optionalparams: { betweenLines?: boolean; position?: string | number; type?: string }Optionalparams: {Optionalparams: { 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();
Optionalbuilder?: BuilderOptionalcommitHooks?: CommitHook[]Optionalfactory?: FactoryOptionalthrowOnError?: booleanOptionaloptions: FormatterOptionsOptionaloptions: GlyphNoteOptionsOptionalparams: { notes?: Note[] }Optionalparams: {Optionalparams: { notes?: StaveNote[]; options?: { style: string } }OptionalnoteStruct: NoteStructOptionaloptions: GlyphNoteOptionsOptionaloptions: FactoryOptionsReturn pixels from current stave spacing.
Optionalparams: { options?: StaveOptions; width?: number; x?: number; y?: number }Optionalparams: { options?: StaveOptions; width?: number; x?: number; y?: number }Optionalparams: { dots?: number; duration?: string; line?: number; text?: string }Optionalparams: { time?: string }Optionalparams: { notes?: Note[]; options?: TupletOptions }StaticnewStatic 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.