"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?{x:19,margin:2}:{x:20,margin:-16}:"normal"===e?{x:-9,margin:2}:{x:-9,margin:-16}};exports.getChartVerticalAxis=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.margin,f=p.x;return i(i({},t.CommonAxisProps),{},{labels:{x:c?4:-5,padding:0,style:t.CommonAxisLabelStyle},title:{y:0,x:f,margin:u,text:t.getNonEmptyTitle(o),style:t.CommonAxisTitleStyle,reserveSpace:!0,rotation:270},opposite:c,offset:l})};
//# sourceMappingURL=getChartVerticalAxis.js.map
