performLayout method

  1. @override
void performLayout(
  1. ChantContext ctxt
)
override

Implementation

@override
void performLayout(ChantContext ctxt) {
  super.performLayout(ctxt);

  final first = notes[0];
  final second = notes[1];
  final third = notes[2];

  if (third.shape == NoteShape.virga) {
    build(ctxt)
      ..withPodatus(upper: first, lower: second)
      ..virgaAt(third);
  } else {
    build(ctxt)
      ..noteAt(
        first,
        first.shape == NoteShape.quilisma
            ? GlyphCode.quilisma
            : GlyphCode.punctumQuadratum,
      )
      ..withPodatus(lower: second, upper: third);
  }

  finishLayout(ctxt);
}