setMiterLimit method

void setMiterLimit(
  1. double limit
)

Set line joint miter limit, applies if the

Implementation

void setMiterLimit(double limit) {
  var o = 0;
  assert(() {
    if (_page.pdfDocument.settings.verbose) {
      o = _buf.offset;
      _buf.putString(' ' * (_indent));
    }
    return true;
  }());

  assert(limit >= 1.0);
  PdfNum(limit).output(_page, _buf);
  _buf.putString(' M ');

  assert(() {
    if (_page.pdfDocument.settings.verbose) {
      _buf.putString(' ' * math.max(0, _commentIndent - _buf.offset + o));
      _buf.putComment('setMiterLimit($limit)');
    }
    return true;
  }());
}