(size: CellSize, count: number)
| 108 | |
| 109 | // Total size of the first `count` columns (or rows) |
| 110 | function getFixedCellsSize(size: CellSize, count: number): number { |
| 111 | if (typeof size === "function") { |
| 112 | let total = 0; |
| 113 | for (let index = 0; index < count; index++) { |
| 114 | total += size({ index }); |
| 115 | } |
| 116 | return total; |
| 117 | } |
| 118 | return size * count; |
| 119 | } |
| 120 | |
| 121 | function createMultiGridInstance( |
| 122 | initialLatest: LatestValues, |