"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./constants.js");require("../../utils/main.js");exports.getChartScale=function(t){var r=t.extremes,o=t.step,n=t.maxZoom;return(void 0===n?e.MAX_ZOOM:n)-(r.max-r.min)/o},exports.getCurrentMaxValue=function(e,t){return e>=t?t:e},exports.getCurrentMinValue=function(e,t){return e<=t?t:e},exports.getIsMaxZoom=function(t){var r=t.min,o=t.max,n=t.zoomStep;return t.zoomType===e.ZOOM_TYPE.zoomIn&&Math.round(r+n)===Math.round(o-n)},exports.getNextZoomCoordinates=function(t){var r=t.min,o=t.max,n=t.zoomType,u=t.zoomStep,s=t.scale;return n===e.ZOOM_TYPE.zoomIn?Math.round(r+u)===Math.round(o-u)||s>e.MAX_ZOOM-1?[r,o]:[r+u,o-u]:[r-u,o+u]},exports.getXExtremes=function(e){return null==e?void 0:e.xAxis[0].getExtremes()},exports.getYExtremes=function(e){return null==e?void 0:e.yAxis[0].getExtremes()};
