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

Method measure

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

Source from the content-addressed store, hash-verified

1681 if (!("width" in t3 && "fontBoundingBoxAscent" in t3 && "fontBoundingBoxDescent" in t3)) throw new Error("Required font metrics not supported");
1682 }
1683 measure() {
1684 this._ctx.font = `${this._optionsService.rawOptions.fontSize}px ${this._optionsService.rawOptions.fontFamily}`;
1685 const e3 = this._ctx.measureText("W");
1686 return this._validateAndSet(e3.width, e3.fontBoundingBoxAscent + e3.fontBoundingBoxDescent), this._result;
1687 }
1688 }
1689 }, 4269: function(e2, t2, i2) {
1690 var s2 = this && this.__decorate || function(e3, t3, i3, s3) {

Callers

nothing calls this directly

Calls 1

_validateAndSetMethod · 0.80

Tested by

no test coverage detected