import{ZOOM_TYPE as n,MAX_ZOOM as o}from"./constants.js";import"../../utils/main.js";var t=function(n){return null==n?void 0:n.xAxis[0].getExtremes()},r=function(n){return null==n?void 0:n.yAxis[0].getExtremes()},e=function(n){var t=n.extremes,r=n.step,e=n.maxZoom;return(void 0===e?o:e)-(t.max-t.min)/r},m=function(n,o){return n<=o?o:n},u=function(n,o){return n>=o?o:n},i=function(t){var r=t.min,e=t.max,m=t.zoomType,u=t.zoomStep,i=t.scale;return m===n.zoomIn?Math.round(r+u)===Math.round(e-u)||i>o-1?[r,e]:[r+u,e-u]:[r-u,e+u]},a=function(o){var t=o.min,r=o.max,e=o.zoomStep;return o.zoomType===n.zoomIn&&Math.round(t+e)===Math.round(r-e)};export{e as getChartScale,u as getCurrentMaxValue,m as getCurrentMinValue,a as getIsMaxZoom,i as getNextZoomCoordinates,t as getXExtremes,r as getYExtremes};
//# sourceMappingURL=utils.js.map
