/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{create as t,height as o,width as r}from"../../geometry/support/aaBoundingRect.js";import{getBoundsXY as e}from"../../geometry/support/boundsUtils.js";import{densifyCurvedGeometry as i}from"../../geometry/support/curves/densifyCurvedGeometry.js";import{getMaxDeviationInPixels as s}from"../../views/2d/layers/graphics/densificationConstants.js";function n(t,o,r,e){const{height:n,width:p}=e??m(t),u=Math.min(p/o,n/r)*s();return i(t,{maxDeviation:u})}function m(i){const s=e(t(),i);return{width:r(s),height:o(s)}}export{n as densifyForPreview};
