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

Method togglePreviewPlots

src/plotViewer/index.ts:497–512  ·  view source on GitHub ↗
(force?: PreviewPlotLayout)

Source from the content-addressed store, hash-verified

495 }
496
497 public togglePreviewPlots(force?: PreviewPlotLayout): void {
498 if (force) {
499 this.previewPlotLayout = force;
500 } else if (this.previewPlotLayout === 'multirow') {
501 this.previewPlotLayout = 'scroll';
502 } else if (this.previewPlotLayout === 'scroll') {
503 this.previewPlotLayout = 'hidden';
504 } else if (this.previewPlotLayout === 'hidden') {
505 this.previewPlotLayout = 'multirow';
506 }
507 const msg: PreviewPlotLayoutMessage = {
508 message: 'togglePreviewPlotLayout',
509 style: this.previewPlotLayout
510 };
511 this.postWebviewMessage(msg);
512 }
513
514 public zoomOut(): void {
515 if (this.zoom > 0) {

Callers 1

handleCommandMethod · 0.80

Calls 1

postWebviewMessageMethod · 0.95

Tested by

no test coverage detected