(selected_cells: ICellCoordinates[])
| 2 | import {ICellCoordinates} from 'dash-table/components/Table/props'; |
| 3 | |
| 4 | export function selectionBounds(selected_cells: ICellCoordinates[]) { |
| 5 | const selectedRows = R.pluck('row', selected_cells); |
| 6 | const selectedCols = R.pluck('column', selected_cells); |
| 7 | |
| 8 | return { |
| 9 | minRow: R.reduce<number, number>(R.min, Infinity, selectedRows), |
| 10 | minCol: R.reduce<number, number>(R.min, Infinity, selectedCols), |
| 11 | maxRow: R.reduce<number, number>(R.max, 0, selectedRows), |
| 12 | maxCol: R.reduce<number, number>(R.max, 0, selectedCols) |
| 13 | }; |
| 14 | } |
| 15 | |
| 16 | export function selectionCycle( |
| 17 | nextCell: [number, number], |
no test coverage detected
searching dependent graphs…