()
| 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) { |
nothing calls this directly
no test coverage detected