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

Method _refreshCharAtlas

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

Source from the content-addressed store, hash-verified

7088 this._updateDimensions(), this._refreshCharAtlas(), this._updateCursorBlink();
7089 }
7090 _initializeWebGLState() {
7091 return this._rectangleRenderer.value = new v.RectangleRenderer(this._terminal, this._gl, this.dimensions, this._themeService), this._glyphRenderer.value = new g.GlyphRenderer(this._terminal, this._gl, this.dimensions, this._optionsService), this.handleCharSizeChanged(), [this._rectangleRenderer.value, this._glyphRenderer.value];
7092 }
7093 _refreshCharAtlas() {
7094 var _a;
7095 if (this.dimensions.device.char.width <= 0 && this.dimensions.device.char.height <= 0) return void (this._isAttached = false);
7096 const e3 = (0, o.acquireTextureAtlas)(this._terminal, this._optionsService.rawOptions, this._themeService.colors, this.dimensions.device.cell.width, this.dimensions.device.cell.height, this.dimensions.device.char.width, this.dimensions.device.char.height, this._coreBrowserService.dpr);
7097 this._charAtlas !== e3 && (this._onChangeTextureAtlas.fire(e3.pages[0].canvas), this._charAtlasDisposable.value = (0, c.getDisposeArrayDisposable)([(0, l.forwardEvent)(e3.onAddTextureAtlasCanvas, this._onAddTextureAtlasCanvas), (0, l.forwardEvent)(e3.onRemoveTextureAtlasCanvas, this._onRemoveTextureAtlasCanvas)])), this._charAtlas = e3, this._charAtlas.warmUp(), (_a = this._glyphRenderer.value) == null ? void 0 : _a.setAtlas(this._charAtlas);
7098 }

Callers 4

_handleColorChangeMethod · 0.95
handleResizeMethod · 0.95
_handleOptionsChangedMethod · 0.95
renderRowsMethod · 0.95

Calls 3

fireMethod · 0.80
warmUpMethod · 0.80
setAtlasMethod · 0.80

Tested by

no test coverage detected