PitchKit
API Reference@pitchkit/coreInterfaces

RaceEvent

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

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:14
timereadonlynumber-packages/core/src/race/cumulative.ts:11
valuereadonlynumber-packages/core/src/race/cumulative.ts:12

On this page