mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
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:
Vendored
+8
-4
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user