MCPcopy
hub / github.com/codeaashu/claude-code / l

Class l

src/server/web/public/terminal.js:1669–1676  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1667 }
1668 }
1669 class l extends c {
1670 constructor(e3, t3, i3) {
1671 super(), this._document = e3, this._parentElement = t3, this._optionsService = i3, this._measureElement = this._document.createElement("span"), this._measureElement.classList.add("xterm-char-measure-element"), this._measureElement.textContent = "W".repeat(32), this._measureElement.setAttribute("aria-hidden", "true"), this._measureElement.style.whiteSpace = "pre", this._measureElement.style.fontKerning = "none", this._parentElement.appendChild(this._measureElement);
1672 }
1673 measure() {
1674 return this._measureElement.style.fontFamily = this._optionsService.rawOptions.fontFamily, this._measureElement.style.fontSize = `${this._optionsService.rawOptions.fontSize}px`, this._validateAndSet(Number(this._measureElement.offsetWidth) / 32, Number(this._measureElement.offsetHeight)), this._result;
1675 }
1676 }
1677 class d extends c {
1678 constructor(e3) {
1679 super(), this._optionsService = e3, this._canvas = new OffscreenCanvas(100, 100), this._ctx = this._canvas.getContext("2d");

Callers 2

notifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected