MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getMouseReportCoords

Method getMouseReportCoords

src/server/web/public/terminal.js:1887–1890  ·  view source on GitHub ↗
(e3, t3)

Source from the content-addressed store, hash-verified

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]) };
1890 }
1891 };
1892 t2.MouseService = a = s2([r(0, n.IRenderService), r(1, n.ICharSizeService)], a);
1893 }, 3230: function(e2, t2, i2) {

Callers 1

i3Method · 0.80

Calls 1

maxMethod · 0.80

Tested by

no test coverage detected