import { TextAlignmentEnum } from "../Common/Enums/TextAlignment" ; import { OSMDColor } from "../Common/DataObjects/OSMDColor" ; import { Fonts } from "../Common/Enums/Fonts" ; import { FontStyles } from "../Common/Enums/FontStyles" ; /**
 * A text label on the graphical music sheet.
 * It is used e.g. for titles, composer names, instrument names and dynamic instructions.
 */ export class Label { constructor ( text = "" , alignment = TextAlignmentEnum . CenterBottom , font = undefined , print = true ) { this . text = text ; this . print = print ; this . textAlignment = alignment ; this . font = font ; this . fontFamily = undefined ; } public text : string ; public print : boolean ; public color : OSMDColor ; public colorDefault : string ; public font : Fonts ; public fontFamily : string ; public fontStyle : FontStyles ; public fontHeight : number ; public textAlignment : TextAlignmentEnum ; public IsCreditLabel : boolean = false ; public ToString ( ) { return this . text ; } }