MCPcopy Create free account
hub / github.com/antvis/F2Native / Clear

Method Clear

core/graphics/XChart.cpp:574–594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

572}
573
574void XChart::Clear() {
575 guideController_->Clear();
576 scaleController_->Clear();
577 if(tooltipController_) {
578 tooltipController_->Clear();
579 }
580
581 if (interactionContext_) {
582 interactionContext_->Clear();
583 }
584
585 ClearInner();
586 this->geoms_.clear();
587 this->geomShapeFactory_->Clear();
588 renderActionListeners_.clear();
589 interactions_.clear();
590 this->data_ = {};
591 this->rendered_ = false;
592 requestFrameHandleId_ = "";
593 this->geomAnimate_->Clear();
594}
595
596std::size_t XChart::RequestAnimationFrame(func::Command *c, long delay) {
597 if(!canvasContext_ || !canvasContext_->IsValid() || this->requestFrameHandleId_.empty()) {

Callers 6

InvokeMethodMethod · 0.45
InvokeRenderMethod · 0.45
ChartClearFunction · 0.45
~XChartMethod · 0.45
ClearInnerMethod · 0.45
ClearScaleMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected