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

Method dispose

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

Source from the content-addressed store, hash-verified

7614 return this._pages;
7615 }
7616 constructor(e3, t3, i3) {
7617 this._document = e3, this._config = t3, this._unicodeService = i3, this._didWarmUp = false, this._cacheMap = new h.FourKeyMap(), this._cacheMapCombined = new h.FourKeyMap(), this._pages = [], this._activePages = [], this._workBoundingBox = { top: 0, left: 0, bottom: 0, right: 0 }, this._workAttributeData = new c.AttributeData(), this._textureSize = 512, this._onAddTextureAtlasCanvas = new a.EventEmitter(), this.onAddTextureAtlasCanvas = this._onAddTextureAtlasCanvas.event, this._onRemoveTextureAtlasCanvas = new a.EventEmitter(), this.onRemoveTextureAtlasCanvas = this._onRemoveTextureAtlasCanvas.event, this._requestClearModel = false, this._createNewPage(), this._tmpCanvas = p(e3, 4 * this._config.deviceCellWidth + 4, this._config.deviceCellHeight + 4), this._tmpCtx = (0, o.throwIfFalsy)(this._tmpCanvas.getContext("2d", { alpha: this._config.allowTransparency, willReadFrequently: true }));
7618 }
7619 dispose() {
7620 for (const e3 of this.pages) e3.canvas.remove();
7621 this._onAddTextureAtlasCanvas.dispose();
7622 }

Callers

nothing calls this directly

Calls 1

disposeMethod · 0.65

Tested by

no test coverage detected