(id?: HttpgdPlotId)
| 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', |
no test coverage detected