(percent: number)
| 302 | } |
| 303 | |
| 304 | async setZoom(percent: number): Promise<void> { |
| 305 | const normalized = this.normalizeZoomPercent(percent) |
| 306 | const nextFactor = normalized / 100 |
| 307 | if (nextFactor === this.zoomFactor) return |
| 308 | this.zoomFactor = nextFactor |
| 309 | await this.queueRender() |
| 310 | } |
| 311 | |
| 312 | async setFitMode(mode: FitMode): Promise<void> { |
| 313 | if (this._fitMode === mode) return |
no test coverage detected