(index: number, startIndex = 0)
| 19 | }; |
| 20 | |
| 21 | function getValidIndex(index: number, startIndex = 0) { |
| 22 | return ~~index ? index - startIndex : index; |
| 23 | } |
| 24 | |
| 25 | function validXPosition({ axisData, offsetSize, value, startIndex = 0 }: XPositionParam) { |
| 26 | const dataIndex = getValidIndex(value as number, startIndex); |