moveTo method

void moveTo(
  1. double x,
  2. double y
)

This moves the current drawing point.

Implementation

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

  PdfNumList([x, y]).output(_page, _buf);
  _buf.putString(' m ');

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