|
@@ -1,4 +1,7 @@
|
|
|
|
+
|
|
|
|
+
|
|
declare namespace Vex {
|
|
declare namespace Vex {
|
|
|
|
+
|
|
export module Flow {
|
|
export module Flow {
|
|
const RESOLUTION: any;
|
|
const RESOLUTION: any;
|
|
|
|
|
|
@@ -28,7 +31,7 @@ declare namespace Vex {
|
|
|
|
|
|
public getH(): number;
|
|
public getH(): number;
|
|
|
|
|
|
- public draw(ctx: Vex.Flow.RenderContext) : void;
|
|
|
|
|
|
+ public draw(ctx: Vex.Flow.RenderContext): void;
|
|
}
|
|
}
|
|
|
|
|
|
export class Tickable {
|
|
export class Tickable {
|
|
@@ -73,7 +76,7 @@ declare namespace Vex {
|
|
public setStemDirection(direction: number): StemmableNote;
|
|
public setStemDirection(direction: number): StemmableNote;
|
|
}
|
|
}
|
|
|
|
|
|
- export class StaveNote extends StemmableNote{
|
|
|
|
|
|
+ export class StaveNote extends StemmableNote {
|
|
constructor(note_struct: any);
|
|
constructor(note_struct: any);
|
|
|
|
|
|
public getNoteHeadBounds(): any;
|
|
public getNoteHeadBounds(): any;
|
|
@@ -129,7 +132,7 @@ declare namespace Vex {
|
|
public setWidth(width: number): Stave;
|
|
public setWidth(width: number): Stave;
|
|
|
|
|
|
public getNoteStartX(): number;
|
|
public getNoteStartX(): number;
|
|
-
|
|
|
|
|
|
+
|
|
public getModifierXShift(): number;
|
|
public getModifierXShift(): number;
|
|
|
|
|
|
public getNoteEndX(): number;
|
|
public getNoteEndX(): number;
|
|
@@ -138,6 +141,8 @@ declare namespace Vex {
|
|
|
|
|
|
public setKeySignature(keySpec: any, cancelKeySpec: any, position: any): Stave;
|
|
public setKeySignature(keySpec: any, cancelKeySpec: any, position: any): Stave;
|
|
|
|
|
|
|
|
+ public setText(text: string, position: number, options: any): void;
|
|
|
|
+
|
|
public format(): void;
|
|
public format(): void;
|
|
|
|
|
|
public getSpacingBetweenLines(): number;
|
|
public getSpacingBetweenLines(): number;
|
|
@@ -149,7 +154,7 @@ declare namespace Vex {
|
|
public getYForLine(y: number): number;
|
|
public getYForLine(y: number): number;
|
|
|
|
|
|
public getModifiers(pos: any, cat: any): Clef[]; // FIXME
|
|
public getModifiers(pos: any, cat: any): Clef[]; // FIXME
|
|
-
|
|
|
|
|
|
+
|
|
public setContext(ctx: RenderContext): Stave;
|
|
public setContext(ctx: RenderContext): Stave;
|
|
|
|
|
|
public addModifier(mod: any, pos: any): void;
|
|
public addModifier(mod: any, pos: any): void;
|
|
@@ -173,10 +178,21 @@ declare namespace Vex {
|
|
public setPosition(position: number): Modifier;
|
|
public setPosition(position: number): Modifier;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
export class StaveModifier extends Modifier {
|
|
export class StaveModifier extends Modifier {
|
|
- public static Position: any;
|
|
|
|
-
|
|
|
|
|
|
+ public static get Position() {
|
|
|
|
+ return {
|
|
|
|
+ LEFT: 1,
|
|
|
|
+ RIGHT: 2,
|
|
|
|
+ ABOVE: 3,
|
|
|
|
+ BELOW: 4,
|
|
|
|
+ BEGIN: 5,
|
|
|
|
+ END: 6,
|
|
|
|
+ };
|
|
|
|
+ }
|
|
|
|
+
|
|
public getPosition(): number;
|
|
public getPosition(): number;
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
export class Repetition extends StaveModifier {
|
|
export class Repetition extends StaveModifier {
|
|
@@ -209,7 +225,7 @@ declare namespace Vex {
|
|
|
|
|
|
public resize(a: number, b: number): void;
|
|
public resize(a: number, b: number): void;
|
|
|
|
|
|
- public getContext(): CanvasContext|SVGContext;
|
|
|
|
|
|
+ public getContext(): CanvasContext | SVGContext;
|
|
}
|
|
}
|
|
|
|
|
|
export class TimeSignature extends StaveModifier {
|
|
export class TimeSignature extends StaveModifier {
|
|
@@ -230,7 +246,7 @@ declare namespace Vex {
|
|
export class Articulation extends Modifier {
|
|
export class Articulation extends Modifier {
|
|
constructor(type: string);
|
|
constructor(type: string);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
export class Beam {
|
|
export class Beam {
|
|
constructor(notes: StaveNote[], auto_stem: boolean);
|
|
constructor(notes: StaveNote[], auto_stem: boolean);
|
|
|
|
|
|
@@ -265,10 +281,10 @@ declare namespace Vex {
|
|
public attributes: any;
|
|
public attributes: any;
|
|
public state: any;
|
|
public state: any;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
export class StaveConnector {
|
|
export class StaveConnector {
|
|
constructor(top: Stave, bottom: Stave);
|
|
constructor(top: Stave, bottom: Stave);
|
|
-
|
|
|
|
|
|
+
|
|
public static type: any;
|
|
public static type: any;
|
|
|
|
|
|
public setType(type: any): StaveConnector;
|
|
public setType(type: any): StaveConnector;
|
|
@@ -278,9 +294,9 @@ declare namespace Vex {
|
|
public setXShift(shift: number): StaveConnector;
|
|
public setXShift(shift: number): StaveConnector;
|
|
|
|
|
|
public top_stave: Stave;
|
|
public top_stave: Stave;
|
|
-
|
|
|
|
|
|
+
|
|
public bottom_stave: Stave;
|
|
public bottom_stave: Stave;
|
|
-
|
|
|
|
|
|
+
|
|
public thickness: number;
|
|
public thickness: number;
|
|
|
|
|
|
public width: number;
|
|
public width: number;
|