(last?: boolean)
| 433 | |
| 434 | // navigate through plots (supply `true` to go to end/beginning of list) |
| 435 | public async nextPlot(last?: boolean): Promise<void> { |
| 436 | this.activeIndex = last ? this.plots.length - 1 : this.activeIndex + 1; |
| 437 | await this.focusPlot(); |
| 438 | } |
| 439 | public async prevPlot(first?: boolean): Promise<void> { |
| 440 | this.activeIndex = first ? 0 : this.activeIndex - 1; |
| 441 | await this.focusPlot(); |
no test coverage detected