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
@@ -23,3 +23,22 @@ export function findPrefixCount(strings: Array<string>, caseSensitive = true): n
|
||||
}
|
||||
return maskLength;
|
||||
}
|
||||
|
||||
/**
|
||||
* Basic function repeats the given string a set number of times and allows for
|
||||
* a delimiter.
|
||||
* @param value the string to repeat
|
||||
* @param count the number of times to repeat
|
||||
* @param delimiter the string to place between repeated strings
|
||||
* @returns
|
||||
*/
|
||||
export function repeater(value: string, count: number, delimiter = ", "): string {
|
||||
let output = "";
|
||||
for (let x = 0; x < count; ++x) {
|
||||
output += value;
|
||||
if (delimiter.length !== 0 && x < count - 1) {
|
||||
output += delimiter;
|
||||
}
|
||||
}
|
||||
return output;
|
||||
}
|
||||
Reference in new issue
Block a user