( prev: CellPosition | null, next: CellPosition )
| 16 | |
| 17 | // Merges two cell positions into the one that covers both (i.e. the smallest indices) |
| 18 | const mergeCellPositions = ( |
| 19 | prev: CellPosition | null, |
| 20 | next: CellPosition |
| 21 | ): CellPosition => |
| 22 | prev === null |
| 23 | ? next |
| 24 | : { |
| 25 | columnIndex: Math.min(prev.columnIndex, next.columnIndex), |
| 26 | rowIndex: Math.min(prev.rowIndex, next.rowIndex) |
| 27 | }; |
| 28 | |
| 29 | /** |
| 30 | * Tracks the inner Grid of a component that wraps one (e.g. List or Table, whose handles delegate to the Grid). |
no outgoing calls
no test coverage detected