source: node_modules/recharts/lib/state/selectors/combiners/combineAxisRangeWithReverse.js@ a762898

Last change on this file since a762898 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 471 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.combineAxisRangeWithReverse = void 0;
7var combineAxisRangeWithReverse = (axisSettings, axisRange) => {
8 if (!axisSettings || !axisRange) {
9 return undefined;
10 }
11 if (axisSettings !== null && axisSettings !== void 0 && axisSettings.reversed) {
12 return [axisRange[1], axisRange[0]];
13 }
14 return axisRange;
15};
16exports.combineAxisRangeWithReverse = combineAxisRangeWithReverse;
Note: See TracBrowser for help on using the repository browser.