AboveLinesText constructor

AboveLinesText(
  1. ChantContext ctxt,
  2. String text,
  3. ChantLayoutElement notation,
  4. 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;
}