({ axisData, offsetSize, value, startIndex = 0 }: XPositionParam)
| 23 | } |
| 24 | |
| 25 | function validXPosition({ axisData, offsetSize, value, startIndex = 0 }: XPositionParam) { |
| 26 | const dataIndex = getValidIndex(value as number, startIndex); |
| 27 | const x = getXPosition(axisData, offsetSize, value, dataIndex); |
| 28 | |
| 29 | return x > 0 ? Math.min(offsetSize, x) : 0; |
| 30 | } |
| 31 | |
| 32 | function getPlotAxisData(vertical: boolean, axes: Axes) { |
| 33 | return vertical ? axes.xAxis : axes.yAxis; |
no test coverage detected