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

Method hidePlot

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

Source from the content-addressed store, hash-verified

449 }
450
451 public hidePlot(id?: HttpgdPlotId): void {
452 id ??= this.activePlot;
453 if (!id) { return; }
454 const tmpIndex = this.activeIndex;
455 this.hiddenPlots.push(id);
456 this.plots = this.plots.filter((plt) => !this.hiddenPlots.includes(plt.id));
457 if (id === this.activePlot) {
458 this.activeIndex = tmpIndex;
459 this._focusPlot();
460 }
461 this._hidePlot(id);
462 }
463 protected _hidePlot(id: HttpgdPlotId): void {
464 const msg: HidePlotMessage = {
465 message: 'hidePlot',

Callers 2

closePlotMethod · 0.95
handleCommandMethod · 0.80

Calls 2

_focusPlotMethod · 0.95
_hidePlotMethod · 0.95

Tested by

no test coverage detected