mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-28 13:40:59 +00:00
9 lines
428 B
JavaScript
9 lines
428 B
JavaScript
import { isNan } from '../../../util/DataUtils';
|
|
export var combineActiveLabel = (tooltipTicks, activeIndex) => {
|
|
var _tooltipTicks$n;
|
|
var n = Number(activeIndex);
|
|
if (isNan(n) || activeIndex == null) {
|
|
return undefined;
|
|
}
|
|
return n >= 0 ? tooltipTicks === null || tooltipTicks === void 0 || (_tooltipTicks$n = tooltipTicks[n]) === null || _tooltipTicks$n === void 0 ? void 0 : _tooltipTicks$n.value : undefined;
|
|
}; |