addRepeatCirclesToPath method

void addRepeatCirclesToPath(
  1. Path path,
  2. Size size
)

Implementation

void addRepeatCirclesToPath(Path path, Size size) {
  final top = Rect.fromCircle(
      center: Offset(
          repeatDot,
          chartPositioning.stringSpacing *
              instrument.topRepeatCircleCenter()),
      radius: repeatDotRadius);
  final bottom = Rect.fromCircle(
      center: Offset(
          repeatDot,
          chartPositioning.stringSpacing *
              instrument.bottomRepeatCircleCenter()),
      radius: repeatDotRadius);
  if (measure.repeatStart) {
    path.addOval(top);
    path.addOval(bottom);
  }
  if (measure.repeatEnd) {
    path.addOval(top.translate(size.width - (repeatDot * 2), 0));
    path.addOval(bottom.translate(size.width - (repeatDot * 2), 0));
  }
}