MCPcopy
hub / github.com/apache/echarts / _clear

Method _clear

src/component/graphic/GraphicView.ts:370–376  ·  view source on GitHub ↗

* Clear all elements.

()

Source from the content-addressed store, hash-verified

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();

Callers 2

renderMethod · 0.95
disposeMethod · 0.95

Calls 3

innerFunction · 0.85
removeElFunction · 0.70
eachMethod · 0.45

Tested by

no test coverage detected