AboveLinesText constructor
AboveLinesText(
- ChantContext ctxt,
- String text,
- ChantLayoutElement notation,
- int sourceIndex,
Implementation
AboveLinesText(ChantContext ctxt, String text, this.notation, int sourceIndex)
: padding = ctxt.staffInterval / 2,
super(
ctxt: ctxt,
text: (ctxt.textStyles['al']?['prefix'] ?? '') + text,
cssClass: 'al',
fontFamily: (ctxt) => ctxt.textStyles['al']?['font'],
fontSize: (ctxt) => ctxt.textStyles['al']?['size'],
textAnchor: .start,
sourceIndex: sourceIndex,
sourceGabc: text,
) {
textType = ctxt.theme.aboveLine;
}