attackingSideOf()
function attackingSideOf(
match,
teamId,
period
): "left_to_right" | "right_to_left" | undefined;Defined in: packages/data-providers/src/skillcorner/coordinates.ts:81
Which way a team attacks in a given period, resolved from the match's
home_team_side.
Needed because tracking coordinates are absolute and swap at half time,
unlike the dynamic-events file. Returns undefined for a period the match
file doesn't describe rather than guessing a direction.
Parameters
| Parameter | Type |
|---|---|
match | SkillCornerMatch |
teamId | number |
period | number |
Returns
"left_to_right" | "right_to_left" | undefined