fixed definition of Vex.Flow.TabSlide

- changed constants SLIDE_UP and SLIDE_DOWN from static to const
- fixed constructor arguments
This commit is contained in:
Roman Quiring
2015-08-06 17:20:53 +02:00
parent 45599bb3cf
commit 8eb312c09a

View File

@@ -1129,10 +1129,13 @@ declare module Vex {
draw() : void;
}
module TabSlide {
const SLIDE_UP : number;
const SLIDE_DOWN : number;
}
class TabSlide extends TabTie {
constructor(notes : {first_note: Note, last_note: Note, first_indices : number[], last_indices : number[]}, direction : number);
static SLIDE_UP : number;
static SLIDE_DOWN : number;
constructor(notes : {first_note: Note, last_note: Note, first_indices : number[], last_indices : number[]}, direction? : number);
static createSlideUp(notes : {first_note: Note, last_note: Note, first_indices : number[], last_indices : number[]}) : TabSlide;
static createSlideDown(notes : {first_note: Note, last_note: Note, first_indices : number[], last_indices : number[]}) : TabSlide;
renderTie(params : {first_ys : number[], last_ys : number[], last_x_px : number, first_x_px : number, direction : number}) : void;