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

Method addPlot

src/plotViewer/index.ts:633–644  ·  view source on GitHub ↗
(plt: HttpgdPlot<string>)

Source from the content-addressed store, hash-verified

631 }
632
633 protected addPlot(plt: HttpgdPlot<string>): void {
634 const ejsData = this.makeEjsData();
635 ejsData.plot = plt;
636 const html = ejs.render(this.smallPlotTemplate, ejsData);
637 const msg: AddPlotMessage = {
638 message: 'addPlot',
639 html: html
640 };
641 this.postWebviewMessage(msg);
642 void this.focusPlot(plt.id);
643 void this.setContextValues();
644 }
645
646 // get content of a single plot
647 protected async getPlotContent(id: HttpgdPlotId, width: number, height: number, zoom: number): Promise<HttpgdPlot<string>> {

Callers 1

refreshPlotsMethod · 0.95

Calls 4

makeEjsDataMethod · 0.95
postWebviewMessageMethod · 0.95
focusPlotMethod · 0.95
setContextValuesMethod · 0.95

Tested by

no test coverage detected