| 98 | const increment = (value: number) => value + 1; |
| 99 | |
| 100 | function isNumericSizeChange(prevSize: CellSize, nextSize: CellSize) { |
| 101 | // Function sizes aren't compared (inline functions would cause infinite loops); |
| 102 | // in that case the recompute methods should be used to inform of changes (as with Grid). |
| 103 | return ( |
| 104 | (typeof prevSize === "number" || typeof nextSize === "number") && |
| 105 | prevSize !== nextSize |
| 106 | ); |
| 107 | } |
| 108 | |
| 109 | // Total size of the first `count` columns (or rows) |
| 110 | function getFixedCellsSize(size: CellSize, count: number): number { |