MCPcopy Index your code
hub / github.com/REditorSupport/vscode-R / nextPlot

Method nextPlot

src/plotViewer/index.ts:435–438  ·  view source on GitHub ↗
(last?: boolean)

Source from the content-addressed store, hash-verified

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();

Callers 1

handleCommandMethod · 0.80

Calls 1

focusPlotMethod · 0.95

Tested by

no test coverage detected