(config: IPublicTypePanelConfig)
| 389 | } |
| 390 | |
| 391 | createPanel(config: IPublicTypePanelConfig) { |
| 392 | const parsedConfig = this.parseConfig(config); |
| 393 | const panel = new Panel(this, parsedConfig as IPublicTypePanelConfig); |
| 394 | this.panels.set(panel.name, panel); |
| 395 | logger.debug(`Panel created with name: ${panel.name} \nconfig:`, config, '\n current panels: ', this.panels); |
| 396 | return panel; |
| 397 | } |
| 398 | |
| 399 | getPanel(name: string): Panel | undefined { |
| 400 | return this.panels.get(name); |
no test coverage detected