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

Method constructor

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

Source from the content-addressed store, hash-verified

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 }

Callers

nothing calls this directly

Calls 2

addMethod · 0.45
registerMethod · 0.45

Tested by

no test coverage detected