* Clear all elements.
()
| 368 | * Clear all elements. |
| 369 | */ |
| 370 | private _clear(): void { |
| 371 | const elMap = this._elMap; |
| 372 | elMap.each((el) => { |
| 373 | removeEl(el, inner(el).option, elMap, this._lastGraphicModel); |
| 374 | }); |
| 375 | this._elMap = zrUtil.createHashMap(); |
| 376 | } |
| 377 | |
| 378 | dispose(): void { |
| 379 | this._clear(); |