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

Method _addRectangle

src/server/web/public/terminal.js:6998–7000  ·  view source on GitHub ↗
(e3, t3, i3, s3, r2, o2, n2, a2, h2, l2)

Source from the content-addressed store, hash-verified

6996 default:
6997 l = this._themeService.colors.background.rgba;
6998 }
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 }

Callers 1

_updateRectangleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected