(char: string)
| 14 | } |
| 15 | |
| 16 | function throwUndefinedChar(char: string) { |
| 17 | const cList: string[] = []; |
| 18 | |
| 19 | hashForEach(colors, (k, c) => { |
| 20 | cList.push(k + "=" + c.toString(16).padStart(8, "0")); |
| 21 | }); |
| 22 | |
| 23 | throw new Error( |
| 24 | 'The char "' + |
| 25 | char + |
| 26 | '" do not defines a color. ' + |
| 27 | "This are the valid chars: " + |
| 28 | cList.join(" "), |
| 29 | ); |
| 30 | } |
| 31 | |
| 32 | const colors: Record<string | number, number> = { |
| 33 | "▴": 0xff0000ff, // Red |
no test coverage detected
searching dependent graphs…