mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
changed Vex.Flow.Tickable from class to interface
- added respective methods to Vex.Flow.Note
This commit is contained in:
Vendored
+18
-2
@@ -582,7 +582,23 @@ declare module Vex {
|
||||
createScaleMap(keySignature : string) : {[rootName : string] : string};
|
||||
}
|
||||
|
||||
class Note extends Tickable {
|
||||
class Note implements Tickable {
|
||||
//from tickable interface:
|
||||
getTicks() : Fraction;
|
||||
getCenterXShift() : number;
|
||||
isCenterAligned() : boolean;
|
||||
setCenterAlignment(align_center : boolean) : Note;
|
||||
getTuplet() : Tuplet;
|
||||
setTuplet(tuplet : Tuplet) : Note;
|
||||
addToModifierContext(mc : ModifierContext) : void;
|
||||
preFormat() : void;
|
||||
postFormat() : Note;
|
||||
getIntrinsicTicks() : Fraction;
|
||||
setIntrinsicTicks(intrinsicTicks : Fraction) : void;
|
||||
getTickMultiplier() : Fraction;
|
||||
applyTickMultiplier(numerator : number, denominator : number) : void;
|
||||
setDuration(duration : Fraction) : void;
|
||||
|
||||
constructor(note_struct : {type? : string, dots? : number, duration : string});
|
||||
static CATEGORY : string;
|
||||
getPlayNote() : any;
|
||||
@@ -1190,7 +1206,7 @@ declare module Vex {
|
||||
draw() : void;
|
||||
}
|
||||
|
||||
class Tickable {
|
||||
interface Tickable {
|
||||
setContext(context : IRenderContext) : void;
|
||||
getBoundingBox() : BoundingBox;
|
||||
getTicks() : Fraction;
|
||||
|
||||
Reference in New Issue
Block a user