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

Method closePlot

src/plotViewer/index.ts:471–477  ·  view source on GitHub ↗
(id?: HttpgdPlotId)

Source from the content-addressed store, hash-verified

469 }
470
471 public async closePlot(id?: HttpgdPlotId): Promise<void> {
472 id ??= this.activePlot;
473 if (id) {
474 this.hidePlot(id);
475 await this.api.removePlot({ id: id });
476 }
477 }
478
479 public toggleStyle(force?: boolean): void {
480 this.stripStyles = force ?? !this.stripStyles;

Callers 1

handleCommandMethod · 0.80

Calls 1

hidePlotMethod · 0.95

Tested by

no test coverage detected