set documentSize({ width, height }) {
    this._documentSize = { width, height };
    this.setView();
  }
Sets the document size and recalculates the view if it is outside the new
bounds.
@param {Size} size the new document size.