first commit
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
李启源
2026-07-20 10:21:30 +08:00
commit ea832229da
75 changed files with 16864 additions and 0 deletions

49
src/index.ts Normal file
View File

@@ -0,0 +1,49 @@
/**
* 波形分析组件库主入口
* @packageDocumentation
*/
// Vue 组件
export { default as WaveformChart } from './components/WaveformChart.vue'
// 类型定义
export type {
// 图表类型
WaveformPoint,
WaveformDisplayMode,
WaveformInteractionMode,
WaveformAnnotationStyle,
WaveformAnnotation,
WaveformRenderingOptions,
// 数据类型
SingleWaveformData,
WaveformSeries,
WaveformData,
NormalizedWaveformSeries,
} from './types'
export type { WaveformGridOptions } from './components/core/grid'
// 核心功能
export { normalizeWaveformData, normalizeWaveformSeries } from './core'
// 工具函数
export {
paddedDomain,
buildMinorTicks,
displayTime,
formatEndpointTime,
formatAxisTime,
formatTooltipTime,
resolveTrackGeometry,
clamp,
type TimeUnit,
type TrackGeometry,
} from './utils'
export {
DEFAULT_WAVEFORM_RENDERING_OPTIONS,
resolveWaveformRenderingOptions,
selectRenderablePoints,
type ResolvedWaveformRenderingOptions,
} from './core'