From 8c097669b0c71b7abb81df264a895e808305cd66 Mon Sep 17 00:00:00 2001 From: Roman Quiring Date: Thu, 6 Aug 2015 17:03:31 +0200 Subject: [PATCH] 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 --- vexflow/vexflow.d.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/vexflow/vexflow.d.ts b/vexflow/vexflow.d.ts index 92fc43654..e48416250 100644 --- a/vexflow/vexflow.d.ts +++ b/vexflow/vexflow.d.ts @@ -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 {