From b3f154c5c33d4c5f5da3abbb3b8dc764e4437a4d Mon Sep 17 00:00:00 2001 From: Roman Quiring Date: Thu, 6 Aug 2015 17:36:22 +0200 Subject: [PATCH] fixed definition of Vex.Flow.TextNote - changed Justification enum to const - added GLYPHS const - fixed constructor arguments --- vexflow/vexflow.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vexflow/vexflow.d.ts b/vexflow/vexflow.d.ts index 01e3e7fdf5..46d1d63226 100644 --- a/vexflow/vexflow.d.ts +++ b/vexflow/vexflow.d.ts @@ -1178,11 +1178,12 @@ declare module Vex { } export module TextNote { - enum Justification {LEFT, CENTER, RIGHT} + const enum Justification {LEFT, CENTER, RIGHT} + const GLYPHS : {[name : string] : {code : string, point : number, x_shift : number, y_shift : number}} } class TextNote extends Note { - constructor(text_struct : {duration : string, text : string, superscript : boolean, subscript : boolean, glyph : string, font? : {family : string, size : number, weight : string}, line? : number, smooth? : boolean, ignore_ticks? : boolean}); + constructor(text_struct : {duration : string, text? : string, superscript? : boolean, subscript? : boolean, glyph? : string, font? : {family : string, size : number, weight : string}, line? : number, smooth? : boolean, ignore_ticks? : boolean}); setJustification(just : TextNote.Justification) : TextNote; setLine(line : number) : TextNote; preFormat() : void;