PitchKit
API Reference@pitchkit/coreInterfaces

RaceEvent

Defined in: packages/core/src/race/cumulative.ts:14

One event feeding a race chart, already resolved from its accessors.

Core deliberately takes plain numbers rather than Accessors: accessors are a React-binding ergonomic, and keeping them out of here means the race module has no dependency on scene/ — the one module whose whole point is not knowing about a pitch would otherwise import from the one that is entirely about pitches.

Properties

PropertyModifierTypeDescriptionDefined in
emphasis?readonlybooleanDrawn with the larger ringed marker. For xG this is "was a goal".packages/core/src/race/cumulative.ts:25
periodreadonlynumberThe period's number, 1 for the first half. Required because minutes restart at 45 for the second half: without it, first-half stoppage time and the start of the second half are the same minutes.packages/core/src/race/cumulative.ts:20
timereadonlynumberMatch minute, as the feed numbers it.packages/core/src/race/cumulative.ts:22
valuereadonlynumber-packages/core/src/race/cumulative.ts:23

On this page