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

Method _refreshDrawConstants

src/server/web/public/terminal.js:1064–1067  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1062 }))), this.register(this._optionsService.onSpecificOptionChange("overviewRulerWidth", (() => this._queueRefresh(true)))), this.register(this._coreBrowserService.onDprChange((() => this._queueRefresh(true)))), this._queueRefresh(true);
1063 }
1064 _refreshDrawConstants() {
1065 const e3 = Math.floor(this._canvas.width / 3), t3 = Math.ceil(this._canvas.width / 3);
1066 l.full = this._canvas.width, l.left = e3, l.center = t3, l.right = e3, this._refreshDrawHeightConstants(), d.full = 0, d.left = 0, d.center = l.left, d.right = l.left + l.center;
1067 }
1068 _refreshDrawHeightConstants() {
1069 c.full = Math.round(2 * this._coreBrowserService.dpr);
1070 const e3 = this._canvas.height / this._bufferService.buffer.lines.length, t3 = Math.round(Math.max(Math.min(e3, 12), 6) * this._coreBrowserService.dpr);

Callers 1

Calls 1

Tested by

no test coverage detected