/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{max as t}from"../../core/quantity.js";function e({topLeft:e,topRight:n,bottomRight:o,bottomLeft:i,spatialReference:u,automaticLengthMeasurementUtils:{autoDistance2D:l}}){const r=t(l(i,o,u),l(e,n,u));if(null==r)return null;const a=t(l(o,n,u),l(i,e,u));return null==a?null:{xSize:r,ySize:a}}export{e as autoSize2D};
