(force?: PreviewPlotLayout)
| 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) { |
no test coverage detected