PitchKit
API Reference@pitchkit/reactInterfaces

RaceChartContextValue

Defined in: packages/react/src/race-context.ts:14

Properties

PropertyModifierTypeDescriptionDefined in
endTimereadonlynumberWhere the last period ends, in match minutes.packages/react/src/race-context.ts:24
framereadonlyChartFrame-packages/react/src/race-context.ts:15
panelsreadonlyreadonly MomentumPanel[]One per period, left to right with no gap: panels[period - 1].packages/react/src/race-context.ts:17
scaleXreadonly(minute, period) => numberMatch minute in a period (1 for the first half) -> pixel.packages/react/src/race-context.ts:19
scaleYreadonlyLinearScaleAccumulated value -> pixel, already flipped for SVG.packages/react/src/race-context.ts:21
seriesreadonlyreadonly ResolvedRaceSeries[]-packages/react/src/race-context.ts:22
valueAtreadonly(seriesId, time, period) => numberThe 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

On this page