| 10328 | if (result.tick) return selectExact(column, result.value); |
| 10329 | } |
| 10330 | function selectBetween(column, lowValue, highValue, lowOperator = ">=", highOperator = "<") { |
| 10331 | const expressions = []; |
| 10332 | if (lowValue !== undefined) expressions.push({ |
| 10333 | name: column.name, |
| 10334 | operator: lowOperator, |
| 10335 | value: lowValue |
| 10336 | }); |
| 10337 | if (highValue !== undefined) expressions.push({ |
| 10338 | name: column.name, |
| 10339 | operator: highOperator, |
| 10340 | value: highValue |
| 10341 | }); |
| 10342 | if (expressions.length > 1) expressions[1].clause = "&&"; |
| 10343 | const searchExpressionGroup = { |
| 10344 | expressions |
| 10345 | }; |
| 10346 | return searchExpressionGroup; |
| 10347 | } |
| 10348 | function selectBetweenAxis(axis, column, i) { |
| 10349 | const low = tickValue(axis, i); |
| 10350 | const high = tickValue(axis, i + 1); |