| 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"); |
no outgoing calls
no test coverage detected