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

Method _refreshColorZonePadding

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

Source from the content-addressed store, hash-verified

1071 c.left = t3, c.center = t3, c.right = t3;
1072 }
1073 _refreshColorZonePadding() {
1074 this._colorZoneStore.setPadding({ full: Math.floor(this._bufferService.buffers.active.lines.length / (this._canvas.height - 1) * c.full), left: Math.floor(this._bufferService.buffers.active.lines.length / (this._canvas.height - 1) * c.left), center: Math.floor(this._bufferService.buffers.active.lines.length / (this._canvas.height - 1) * c.center), right: Math.floor(this._bufferService.buffers.active.lines.length / (this._canvas.height - 1) * c.right) }), this._lastKnownBufferLength = this._bufferService.buffers.normal.lines.length;
1075 }
1076 _refreshCanvasDimensions() {
1077 this._canvas.style.width = `${this._width}px`, this._canvas.width = Math.round(this._width * this._coreBrowserService.dpr), this._canvas.style.height = `${this._screenElement.clientHeight}px`, this._canvas.height = Math.round(this._screenElement.clientHeight * this._coreBrowserService.dpr), this._refreshDrawConstants(), this._refreshColorZonePadding();
1078 }

Callers 2

Calls 1

setPaddingMethod · 0.45

Tested by

no test coverage detected