(data?: IPureNode | null, opts?: Partial<IMarkmapOptions>)
| 288 | } |
| 289 | |
| 290 | async setData(data?: IPureNode | null, opts?: Partial<IMarkmapOptions>) { |
| 291 | if (opts) this.setOptions(opts); |
| 292 | if (data) this.state.data = this._initializeData(data); |
| 293 | if (!this.state.data) return; |
| 294 | this.updateStyle(); |
| 295 | await this.renderData(); |
| 296 | } |
| 297 | |
| 298 | async setHighlight(node?: INode | null) { |
| 299 | this.state.highlight = node || undefined; |
no test coverage detected