()
| 23 | let charData: TableCell[][]; |
| 24 | |
| 25 | export function initTableUtils() { |
| 26 | maxRow = getIntParameter('rows'); |
| 27 | maxCol = getIntParameter('cols'); |
| 28 | tableCreateCount = 0; |
| 29 | numberData = []; |
| 30 | charData = []; |
| 31 | for (let r = 0; r < maxRow; r++) { |
| 32 | const numberRow: TableCell[] = []; |
| 33 | numberData.push(numberRow); |
| 34 | const charRow: TableCell[] = []; |
| 35 | charData.push(charRow); |
| 36 | for (let c = 0; c < maxCol; c++) { |
| 37 | numberRow.push(new TableCell(r, c, `${c}/${r}`)); |
| 38 | charRow.push(new TableCell(r, c, `${charValue(c)}/${charValue(r)}`)); |
| 39 | } |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | function charValue(i: number): string { |
| 44 | return String.fromCharCode('A'.charCodeAt(0) + (i % 26)); |
no test coverage detected
searching dependent graphs…