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

Method measure

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

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 1

_validateAndSetMethod · 0.80

Tested by

no test coverage detected