MCPcopy Create free account
hub / github.com/REditorSupport/vscode-R / resizePlot

Method resizePlot

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

Source from the content-addressed store, hash-verified

568 }
569
570 protected async resizePlot(id?: HttpgdPlotId): Promise<void> {
571 id ??= this.activePlot;
572 if (!id) { return; }
573 const plt = await this.getPlotContent(id, this.viewWidth, this.viewHeight, this.zoom);
574 this.plotWidth = plt.width;
575 this.plotHeight = plt.height;
576 this.updatePlot(plt);
577 }
578
579 protected async refreshPlotsDelayed(plotsIdResponse: HttpgdIdResponse[], redraw: boolean = false, force: boolean = false): Promise<void> {
580 if(this.refreshTimeoutLength === 0){

Callers 3

zoomOutMethod · 0.95
zoomInMethod · 0.95
handleResizeMethod · 0.95

Calls 2

getPlotContentMethod · 0.95
updatePlotMethod · 0.95

Tested by

no test coverage detected