Example:
Create an SVG renderer and attach it to the DIV element named "boo" to render using
const vf: Factory = new Vex.Flow.Factory({renderer: { elementId: 'boo', width: 1200, height: 600 }});
To enable logging for this class. Set Vex.Flow.Factory.DEBUG
to true
.
Default text font.
Creates EasyScore. Normally the first step after constructing a Factory. For example:
const vf: Factory = new Vex.Flow.Factory({renderer: { elementId: 'boo', width: 1200, height: 600 }});
const score: EasyScore = vf.EasyScore();
Return pixels from current stave spacing.
Render the score.
Static 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 = Vex.Flow.Factory.newFromElementId('boo', 1200, 600 );
Factory implements a high level API around VexFlow.