function getSize(extent) {
  return [extent[2] - extent[0], extent[3] - extent[1]];
}
Get the size (width, height) of an extent.
@param {Extent} extent The extent.
@return {import("./size.js").Size} The extent size.
@api