Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const pickAxis = multiLevel => {
if (multiLevel) {
return orient === "horizontal" ? multiAxisBottom : multiAxisLeft;
}
return orient === "horizontal" ? fc.axisOrdinalBottom : fc.axisOrdinalLeft;
};
const getAxisSet = multiLevel => {
if (multiLevel) {
return {
bottom: multiAxisBottom,
left: multiAxisLeft,
top: multiAxisTop,
right: multiAxisRight
};
} else {
return {
bottom: fc.axisOrdinalBottom,
left: fc.axisOrdinalLeft,
top: fc.axisOrdinalTop,
right: fc.axisOrdinalRight
};
}
};