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

Method _clearModel

src/server/web/public/terminal.js:7096–7099  ·  view source on GitHub ↗
(e3)

Source from the content-addressed store, hash-verified

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 }
7099 _clearModel(e3) {
7100 var _a;
7101 this._model.clear(), e3 && ((_a = this._glyphRenderer.value) == null ? void 0 : _a.clear());
7102 }

Callers 5

_handleColorChangeMethod · 0.95
handleResizeMethod · 0.95
clearTextureAtlasMethod · 0.95
clearMethod · 0.95
renderRowsMethod · 0.95

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected