* Utility for getting the pixel location of a percentage of scale * The coordinate (0, 0) is at the upper-left corner of the canvas * @param {number} decimal * @return {number}
(decimal)
| 923 | * @return {number} |
| 924 | */ |
| 925 | getPixelForDecimal(decimal) { |
| 926 | if (this._reversePixels) { |
| 927 | decimal = 1 - decimal; |
| 928 | } |
| 929 | |
| 930 | const pixel = this._startPixel + decimal * this._length; |
| 931 | return _int16Range(this._alignToPixels ? _alignPixel(this.chart, pixel, 0) : pixel); |
| 932 | } |
| 933 | |
| 934 | /** |
| 935 | * @param {number} pixel |
nothing calls this directly
no test coverage detected