(e3, t3, i3, s3, r2)
| 1882 | this._renderService = e3, this._charSizeService = t3; |
| 1883 | } |
| 1884 | getCoords(e3, t3, i3, s3, r2) { |
| 1885 | return (0, o.getCoords)(window, e3, t3, i3, s3, this._charSizeService.hasValidSize, this._renderService.dimensions.css.cell.width, this._renderService.dimensions.css.cell.height, r2); |
| 1886 | } |
| 1887 | getMouseReportCoords(e3, t3) { |
| 1888 | const i3 = (0, o.getCoordsRelativeToElement)(window, e3, t3); |
| 1889 | if (this._charSizeService.hasValidSize) return i3[0] = Math.min(Math.max(i3[0], 0), this._renderService.dimensions.css.canvas.width - 1), i3[1] = Math.min(Math.max(i3[1], 0), this._renderService.dimensions.css.canvas.height - 1), { col: Math.floor(i3[0] / this._renderService.dimensions.css.cell.width), row: Math.floor(i3[1] / this._renderService.dimensions.css.cell.height), x: Math.floor(i3[0]), y: Math.floor(i3[1]) }; |
no outgoing calls
no test coverage detected