"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),t=require("./constants.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=r(e);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){n.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var a=function(e,t){return t?"normal"===e?{y:-12,margin:-18}:{y:-11,margin:-37}:"normal"===e?{y:13,margin:-6}:{y:10,margin:-25}};exports.getChartHorizontalAxis=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.spacing,n=void 0===r?"normal":r,o=e.title,s=e.opposite,c=void 0!==s&&s,l=e.offset,p=a(n,c),u=p.y,y=p.margin;return i(i({},t.CommonAxisProps),{},{minPadding:0,maxPadding:.04,tickWidth:0,labels:{y:c?-8:16,padding:4,style:t.CommonAxisLabelStyle},title:{x:0,y:u,margin:y,text:t.getNonEmptyTitle(o),style:t.CommonAxisTitleStyle,reserveSpace:!0},opposite:c,offset:l})};
//# sourceMappingURL=getChartHorizontalAxis.js.map
