(plt: HttpgdPlot<string>)
| 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>> { |
no test coverage detected