perf(chart): isolate hover rendering
All checks were successful
Package component / package (push) Successful in 3m59s

This commit is contained in:
李启源
2026-07-24 16:10:02 +08:00
parent faa9695bc0
commit dcc27a88be
9 changed files with 191 additions and 91 deletions

View File

@@ -63,11 +63,21 @@ export interface WaveformYAxisLayout {
/**
* 悬浮的系列点
*/
export interface HoveredSeriesPoint extends DisplaySeries {
export interface HoveredSeriesPoint {
id: string
name: string
unit?: string
color: string
trackIndex: number
point: WaveformPoint
}
export interface WaveformHoverState {
points: HoveredSeriesPoint[]
trackIndex: number | null
position: { x: number; y: number }
}
/**
* 轨道布局
*/