changed definition of Vex.Flow.Stem

- changed constants UP and DOWN from static to const
- removed constants WIDTH and HEIGHT as they are set by
Vex.Flow.STEM_WIDTH and Vex.Flow.STEM_HEIGHT
- added hide property
This commit is contained in:
Roman Quiring
2015-08-06 17:03:31 +02:00
parent 41a8267383
commit 8c097669b0
+8 -4
View File
@@ -976,13 +976,14 @@ declare module Vex {
draw() : boolean;
}
module Stem {
const UP : number;
const DOWN : number;
}
class Stem {
constructor(options : {x_begin? : number, x_end? : number, y_top? : number, y_bottom? : number, y_extend? : number, stem_extension? : number, stem_direction? : number});
static DEBUG : boolean;
static UP : number;
static DOWN : number;
static WIDTH : number;
static HEIGHT : number;
setNoteHeadXBounds(x_begin : number, x_end : number) : Stem;
setDirection(direction : number) : void;
setExtension(extension : number) : void;
@@ -996,6 +997,9 @@ declare module Vex {
getStyle() : {shadowColor? : string, shadowBlur? : string, fillStyle? : string, strokeStyle? : string};
applyStyle(context : IRenderContext) : Stem;
draw() : void;
//inconsistent API: this should be set via the options object in the constructor
hide : boolean;
}
class StemmableNote extends Note {