diff --git a/types/vexflow/index.d.ts b/types/vexflow/index.d.ts index 87510ffd4d..efffc990ca 100644 --- a/types/vexflow/index.d.ts +++ b/types/vexflow/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for VexFlow v1.2.88 +// Type definitions for VexFlow v3.0.9 // Project: http://vexflow.com // Definitions by: Roman Quiring // Sebastian Haas @@ -570,6 +570,10 @@ declare namespace Vex { class Formatter { static DEBUG: boolean; + constructor(options?: { + softmaxFactor?: number, + maxIterations?: number + }); static FormatAndDraw( ctx: IRenderContext, stave: Stave, diff --git a/types/vexflow/vexflow-tests.ts b/types/vexflow/vexflow-tests.ts index a7fdf7583b..b84f9d6551 100644 --- a/types/vexflow/vexflow-tests.ts +++ b/types/vexflow/vexflow-tests.ts @@ -46,7 +46,8 @@ var voice2 = new Vex.Flow.Voice(Vex.Flow.TIME4_4).addTickables([ ]); // Format and justify the notes to 550 pixels -var formatter = new Vex.Flow.Formatter().joinVoices([voice1, voice2]).format([voice1, voice2], 550); +var formatter = new Vex.Flow.Formatter({softmaxFactor: null, maxIterations: 2}) + .joinVoices([voice1, voice2]).format([voice1, voice2], 550); // Render stave stave.draw();