MCPcopy Create free account
hub / github.com/codeaashu/claude-code / _addRectangleFloat

Method _addRectangleFloat

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

Source from the content-addressed store, hash-verified

6999 e3.attributes.length < t3 + 4 && (e3.attributes = (0, n.expandFloat32Array)(e3.attributes, this._terminal.rows * this._terminal.cols * 8)), c = r2 * this._dimensions.device.cell.width, d = a2 * this._dimensions.device.cell.height, _ = (l >> 24 & 255) / 255, u = (l >> 16 & 255) / 255, g = (l >> 8 & 255) / 255, v = 1, this._addRectangle(e3.attributes, t3, c, d, (o2 - r2) * this._dimensions.device.cell.width, this._dimensions.device.cell.height, _, u, g, v);
7000 }
7001 _addRectangle(e3, t3, i3, s3, r2, o2, n2, a2, h2, l2) {
7002 e3[t3] = i3 / this._dimensions.device.canvas.width, e3[t3 + 1] = s3 / this._dimensions.device.canvas.height, e3[t3 + 2] = r2 / this._dimensions.device.canvas.width, e3[t3 + 3] = o2 / this._dimensions.device.canvas.height, e3[t3 + 4] = n2, e3[t3 + 5] = a2, e3[t3 + 6] = h2, e3[t3 + 7] = l2;
7003 }
7004 _addRectangleFloat(e3, t3, i3, s3, r2, o2, n2) {
7005 e3[t3] = i3 / this._dimensions.device.canvas.width, e3[t3 + 1] = s3 / this._dimensions.device.canvas.height, e3[t3 + 2] = r2 / this._dimensions.device.canvas.width, e3[t3 + 3] = o2 / this._dimensions.device.canvas.height, e3[t3 + 4] = n2[0], e3[t3 + 5] = n2[1], e3[t3 + 6] = n2[2], e3[t3 + 7] = n2[3];
7006 }

Callers 2

updateCursorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected