* 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)
| 918 | * @return {number} |
| 919 | */ |
| 920 | getPixelForDecimal(decimal) { |
| 921 | if (this._reversePixels) { |
| 922 | decimal = 1 - decimal; |
| 923 | } |
| 924 | |
| 925 | const pixel = this._startPixel + decimal * this._length; |
| 926 | return _int16Range(this._alignToPixels ? _alignPixel(this.chart, pixel, 0) : pixel); |
| 927 | } |
| 928 | |
| 929 | /** |
| 930 | * @param {number} pixel |
nothing calls this directly
no test coverage detected