renderLines method

List<Op> renderLines(
  1. List<Line> lines,
  2. FillerConfig config
)

Implementation

List<Op> renderLines(List<Line> lines, FillerConfig config) {
  List<Op> ops = [];
  for (Line line in lines) {
    ops.addAll(
      OpSetBuilder.buildLine(
        line.source.x,
        line.source.y,
        line.target.x,
        line.target.y,
        config.drawConfig,
      ).ops,
    );
  }
  return ops;
}