ISSUE-031 - Progress checkpoint.
A lot of work going on here. * Moved WorkspaceControls component to a new sub directory * Renamed overlay images * Started a static ChyronDriverBasic component (using Hamilton as an example) * Created a fancy DriverNumber rendering system * Defined DriverNumber style for Mercedes and no one else yet * A bunch of new states for the grid: cars, drivers, teams, etc * Defined a bunch of data for the drivers and teams * Created another string utility function to generate repeat strings; unit tests included
This commit is contained in:
1 parent
1c38137480
commit
db14bf902f
21 files changed
+787
-41
No files matched your search
Vendored
+86
@@ -41,3 +41,89 @@ export type OverlayItem = {
|
||||
position: OverlayPosition,
|
||||
opacity: number,
|
||||
};
|
||||
|
||||
// Race State.
|
||||
export type Car = {
|
||||
position: number,
|
||||
driver: Driver,
|
||||
// status: ???,
|
||||
// distance: number,
|
||||
};
|
||||
export type Grid = Array<Car>;
|
||||
export type Driver = {
|
||||
id: DriverId,
|
||||
firstName: string,
|
||||
lastName: string,
|
||||
number: number,
|
||||
team: Team,
|
||||
yellowTCam: boolean,
|
||||
initials: string,
|
||||
nationality: string, // ISO 3166-1 alpha-3 codes
|
||||
};
|
||||
export type DriverId =
|
||||
| "albon"
|
||||
| "alonso"
|
||||
| "bottas"
|
||||
| "gasly"
|
||||
| "giovinazzi"
|
||||
| "hamilton"
|
||||
| "kubica"
|
||||
| "latifi"
|
||||
| "leclerc"
|
||||
| "mazepin"
|
||||
| "norris"
|
||||
| "ocon"
|
||||
| "perez"
|
||||
| "raikkonen"
|
||||
| "ricciardo"
|
||||
| "russell"
|
||||
| "sainz"
|
||||
| "schumacher"
|
||||
| "stroll"
|
||||
| "tsunoda"
|
||||
| "verstappen"
|
||||
| "vettel"
|
||||
| "zhou";
|
||||
|
||||
export type Team = {
|
||||
id: TeamId,
|
||||
shortName: TeamShortName,
|
||||
fullName: TeamFullName,
|
||||
nationality: string, // ISO 3166-1 alpha-3 codes
|
||||
// logo: string,
|
||||
};
|
||||
export type TeamId =
|
||||
| "alfaRomeo"
|
||||
| "alphaTauri"
|
||||
| "alpine"
|
||||
| "astonMartin"
|
||||
| "ferrari"
|
||||
| "haas"
|
||||
| "mclaren"
|
||||
| "mercedes"
|
||||
| "redBull"
|
||||
| "williams";
|
||||
export type TeamShortName =
|
||||
| "Alfa Romeo"
|
||||
| "AlphaTauri"
|
||||
| "Alpine"
|
||||
| "Aston Martin"
|
||||
| "Ferrari"
|
||||
| "Haas F1 Team"
|
||||
| "McLaren"
|
||||
| "Mercedes"
|
||||
| "Red Bull Racing"
|
||||
| "Williams";
|
||||
export type TeamFullName =
|
||||
| "Alfa Romeo F1 Team ORLEN"
|
||||
| "Scuderia AlphaTauri"
|
||||
| "Alpine F1 Team"
|
||||
| "Aston Martin Cognizant Formula One Team"
|
||||
| "Scuderia Ferrari"
|
||||
| "Uralkali Haas F1 Team"
|
||||
| "McLaren F1 Team"
|
||||
| "Mercedes-AMG Petronas Formula One Team"
|
||||
| "Red Bull Racing"
|
||||
| "Williams Racing";
|
||||
|
||||
// Broadcast Graphics
|
||||
Reference in new issue
Block a user