getMaximumSize(canvas, width, height, aspectRatio) {
    return getMaximumSize(canvas, width, height, aspectRatio);
  }
@param {HTMLCanvasElement} canvas
@param {number} [width] - content width of parent element
@param {number} [height] - content height of parent element
@param {number} [aspectRatio] - aspect ratio to maintain