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