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

Method getCoords

src/server/web/public/terminal.js:1884–1886  ·  view source on GitHub ↗
(e3, t3, i3, s3, r2)

Source from the content-addressed store, hash-verified

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]) };

Callers 3

_getMouseBufferCoordsMethod · 0.80
_handleMouseUpMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected