()
| 2 | |
| 3 | // Default cell sizes and offsets for use in below tests |
| 4 | export function getCellMetadata() { |
| 5 | const cellSizes = [ |
| 6 | 10, // 0: 0..0 (min) |
| 7 | 20, // 1: 0..10 |
| 8 | 15, // 2: 0..30 |
| 9 | 10, // 3: 5..45 |
| 10 | 15, // 4: 20..55 |
| 11 | 30, // 5: 50..70 |
| 12 | 20, // 6: 70..100 |
| 13 | 10, // 7: 80..110 |
| 14 | 30 // 8: 110..110 (max) |
| 15 | ]; |
| 16 | return initCellMetadata({ |
| 17 | cellCount: cellSizes.length, |
| 18 | size: ({ index }) => cellSizes[index] |
| 19 | }); |
| 20 | } |