getResolutionForExtent(extent, size) {
    return this.getResolutionForExtentInternal(
      fromUserExtent(extent, this.getProjection()),
      size,
    );
  }
Get the resolution for a provided extent (in map units) and size (in pixels).
@param {import("./extent.js").Extent} extent Extent.
@param {import("./size.js").Size} [size] Box pixel size.
@return {number} The resolution at which the provided extent will render at
    the given size.
@api