PitchKit
API Reference@pitchkit/reactInterfaces

MomentumEventProps

Defined in: packages/react/src/momentum-types.ts:98

Type Parameters

Type Parameter
E

Properties

PropertyModifierTypeDescriptionDefined in
eventKindreadonlyAccessor<E, MomentumEventKind>-packages/react/src/momentum-types.ts:112
eventLabel?readonlyAccessor<E, string>Text for the readout and for screen readers. Defaults to the kind.packages/react/src/momentum-types.ts:114
eventPeriodreadonlyAccessor<E, number>The period the event happened in, numbered like the samples' period: 1 for the first half. StatsBomb's period is already this. Required because minutes restart at 45 for the second half: a minute like 46' is in both halves when the first had stoppage time. An event in a period the chart has no panel for is not drawn.packages/react/src/momentum-types.ts:110
eventsreadonlyreadonly E[]-packages/react/src/momentum-types.ts:99
eventSidereadonlyAccessor<E, MomentumSide>-packages/react/src/momentum-types.ts:111
eventTimereadonlyAccessor<E, number>Match minute of the event, as the feed numbers it.packages/react/src/momentum-types.ts:101

On this page