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

Method resize

src/server/web/public/terminal.js:7236–7238  ·  view source on GitHub ↗
(e3, t3)

Source from the content-addressed store, hash-verified

7234 this._alpha = t3, this._canvas = this._canvas.cloneNode(), this._initCanvas(), this._container.replaceChild(this._canvas, i3), this._refreshCharAtlas(e3, this._themeService.colors), this.handleGridChanged(e3, 0, e3.rows - 1);
7235 }
7236 _refreshCharAtlas(e3, t3) {
7237 this._deviceCharWidth <= 0 && this._deviceCharHeight <= 0 || (this._charAtlas = (0, s2.acquireTextureAtlas)(e3, this._optionsService.rawOptions, t3, this._deviceCellWidth, this._deviceCellHeight, this._deviceCharWidth, this._deviceCharHeight, this._coreBrowserService.dpr), this._charAtlas.warmUp());
7238 }
7239 resize(e3, t3) {
7240 this._deviceCellWidth = t3.device.cell.width, this._deviceCellHeight = t3.device.cell.height, this._deviceCharWidth = t3.device.char.width, this._deviceCharHeight = t3.device.char.height, this._deviceCharLeft = t3.device.char.left, this._deviceCharTop = t3.device.char.top, this._canvas.width = t3.device.canvas.width, this._canvas.height = t3.device.canvas.height, this._canvas.style.width = `${t3.css.canvas.width}px`, this._canvas.style.height = `${t3.css.canvas.height}px`, this._alpha || this._clearAll(), this._refreshCharAtlas(e3, this._themeService.colors);
7241 }

Callers

nothing calls this directly

Calls 2

_clearAllMethod · 0.95
_refreshCharAtlasMethod · 0.95

Tested by

no test coverage detected