Files
waveform-analysis/src/utils/index.ts
李启源 fbf10fdb88
All checks were successful
Package component / package (push) Successful in 4m35s
feat(chart): support configurable x-axis labels
2026-08-05 10:58:40 +08:00

40 lines
877 B
TypeScript

/**
* 工具函数模块统一导出
*/
// 域计算工具
export { paddedDomain, buildMinorTicks } from './domain'
// 格式化工具
export {
displayTime,
endpointFractionDigits,
formatEndpointTime,
formatAxisTime,
formatXAxisLabel,
formatTooltipTime,
formatAnnotationTime,
formatPlainNumber,
formatScientificAxisLabel,
formatScientificAxisExponent,
formatScientificYAxisLabel,
formatTooltipNumber,
resolveScientificAxisExponent,
shouldUseScientificAxisLabel,
shouldUseScientificYAxisLabel,
type ScientificAxisLabelOptions,
type ScientificYAxisLabelOptions,
type TimeUnit,
} from './formatters'
// 几何计算工具
export { resolveTrackGeometry, clamp, type TrackGeometry } from './geometry'
// 数据抽样工具
export {
downsampleLTTB,
downsampleMinMax,
adaptiveSampling,
calculateSamplingThreshold,
} from './sampling'