(id?: HttpgdPlotId)
| 410 | |
| 411 | // focus a specific plot id |
| 412 | public async focusPlot(id?: HttpgdPlotId): Promise<void> { |
| 413 | this.activePlot = id || this.activePlot; |
| 414 | const plt = this.plots[this.activeIndex]; |
| 415 | if (plt.height !== this.viewHeight || plt.width !== this.viewHeight || plt.zoom !== this.zoom) { |
| 416 | await this.refreshPlots(this.api.getPlots()); |
| 417 | } else { |
| 418 | this._focusPlot(); |
| 419 | } |
| 420 | } |
| 421 | protected _focusPlot(plotId?: HttpgdPlotId): void { |
| 422 | plotId ??= this.activePlot; |
| 423 | if(!plotId){ |
no test coverage detected