MCPcopy Index your code
hub / github.com/apache/echarts / clear

Method clear

src/component/axisPointer/BaseAxisPointer.ts:482–499  ·  view source on GitHub ↗

* @private

(api: ExtensionAPI)

Source from the content-addressed store, hash-verified

480 * @private
481 */
482 clear(api: ExtensionAPI) {
483 this._lastValue = null;
484 this._lastStatus = null;
485
486 const zr = api.getZr();
487 const group = this._group;
488 const handle = this._handle;
489 if (zr && group) {
490 this._lastGraphicKey = null;
491 group && zr.remove(group);
492 handle && zr.remove(handle);
493 this._group = null;
494 this._handle = null;
495 this._payloadInfo = null;
496 }
497
498 throttleUtil.clear(this, '_doDispatchAxisPointer');
499 }
500
501 /**
502 * @protected

Callers 3

renderMethod · 0.95
removeMethod · 0.95
disposeMethod · 0.95

Calls 3

getZrMethod · 0.65
removeMethod · 0.65
clearMethod · 0.65

Tested by

no test coverage detected