(colorBinType: ColorBin, column: Column, legend: VegaDeckGl.types.Legend, clickedIndex: number)
| 14 | import { SearchExpressionGroup, SearchExpressionOperators } from '@msrvida/search-expression'; |
| 15 | |
| 16 | function legendRange(colorBinType: ColorBin, column: Column, legend: VegaDeckGl.types.Legend, clickedIndex: number): SearchExpressionGroup { |
| 17 | if (column.quantitative) { |
| 18 | return selectQuantitative(colorBinType, column, legend, clickedIndex); |
| 19 | } else { |
| 20 | return selectCategorical(column, legend, clickedIndex); |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | function selectCategorical(column: Column, legend: VegaDeckGl.types.Legend, clickedIndex: number): SearchExpressionGroup { |
| 25 | const value = legend.rows[clickedIndex].value; |
no test coverage detected