RaceChartContextValue
Defined in: packages/react/src/race-context.ts:14
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
endTime | readonly | number | Where the last period ends, in match minutes. | packages/react/src/race-context.ts:24 |
frame | readonly | ChartFrame | - | packages/react/src/race-context.ts:15 |
panels | readonly | readonly MomentumPanel[] | One per period, left to right with no gap: panels[period - 1]. | packages/react/src/race-context.ts:17 |
scaleX | readonly | (minute, period) => number | Match minute in a period (1 for the first half) -> pixel. | packages/react/src/race-context.ts:19 |
scaleY | readonly | LinearScale | Accumulated value -> pixel, already flipped for SVG. | packages/react/src/race-context.ts:21 |
series | readonly | readonly ResolvedRaceSeries[] | - | packages/react/src/race-context.ts:22 |
valueAt | readonly | (seriesId, time, period) => number | The cumulative value of seriesId at time in period. Exposed rather than kept internal because the built-in crosshair is already built from it — "every series at the hovered minute" is one call per series — and an annotation child needs exactly the same thing to sit on a line rather than float beside it. | packages/react/src/race-context.ts:33 |