fixed definition of Vex.Flow.TextNote

- changed Justification enum to const
- added GLYPHS const
- fixed constructor arguments
This commit is contained in:
Roman Quiring
2015-08-06 17:37:05 +02:00
parent c377f8452f
commit b3f154c5c3
+3 -2
View File
@@ -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;