UNPKG

@frontify/fondue-charts

Version:

Frontify's data viz library

8 lines (7 loc) • 223 B
const E = 12; const n = (L, t = 12) => L.length <= t ? L : `${L.slice(0, Math.max(0, t - 3)).trimEnd()}...`; export { E as DEFAULT_MAX_LABEL_LENGTH, n as truncateTextLabel }; //# sourceMappingURL=truncateText.es.js.map