UNPKG

@talabes/football-lineup-generator

Version:

A TypeScript library for generating visual football lineup diagrams from team positioning data. Fork of ncamaa/football-lineup-generator with bug fixes and improvements.

7 lines (6 loc) 133 B
export function mirrorCoordinatesForAwayTeam(coords, width) { return { x: width - coords.x, y: coords.y }; }