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 c(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 p=function(e,r){return r?"normal"===e?{x:19,margin:2}:{x:20,margin:-16}:"normal"===e?{x:-9,margin:2}:{x:-9,margin:-16}},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.spacing,a=void 0===i?"normal":i,s=e.title,f=e.opposite,l=void 0!==f&&f,b=e.offset,m=p(a,l),O=m.margin,g=m.x;return c(c({},r),{},{labels:{x:l?4:-5,padding:0,style:t},title:{y:0,x:g,margin:O,text:n(s),style:o,reserveSpace:!0,rotation:270},opposite:l,offset:b})};export{a as getChartVerticalAxis};
//# sourceMappingURL=getChartVerticalAxis.js.map
