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 }});
Static
DEBUGTo enable logging for this class. Set Vex.Flow.Factory.DEBUG
to true
.
Static
TEXT_Default text font.
Optional
params: { Optional
font?: FontInfoOptional
hOptional
text?: stringOptional
vOptional
params: { Optional
betweenOptional
position?: string | numberOptional
type?: stringOptional
type?: string | BarlineTypeOptional
options?: { Optional
autoOptional
partialOptional
secondaryOptional
params: { Optional
fontOptional
fontOptional
fontOptional
hOptional
kerning?: booleanOptional
reportOptional
vCreates 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();
Optional
number?: stringOptional
position?: stringOptional
options: FormatterOptionsOptional
options: GlyphNoteOptionsOptional
slur?: booleanOptional
alterOptional
cancelOptional
params: { Optional
delayed?: booleanOptional
lowerOptional
position?: string | numberOptional
upperOptional
noteStruct: NoteStructOptional
options: GlyphNoteOptionsReturn pixels from current stave spacing.
Optional
params: { Optional
options?: StaveOptionsOptional
width?: numberOptional
x?: numberOptional
y?: numberOptional
params: { Optional
options?: StaveOptionsOptional
width?: numberOptional
x?: numberOptional
y?: numberOptional
params: { Optional
dots?: numberOptional
duration?: stringOptional
line?: numberOptional
text?: stringOptional
params: { Optional
time?: stringOptional
params: { Optional
notes?: Note[]Optional
options?: TupletOptionsOptional
options: FactoryOptionsStatic
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 = Vex.Flow.Factory.newFromElementId('boo', 1200, 600 );
Factory implements a high level API around VexFlow.