| 572 | } |
| 573 | |
| 574 | void 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 | |
| 596 | std::size_t XChart::RequestAnimationFrame(func::Command *c, long delay) { |
| 597 | if(!canvasContext_ || !canvasContext_->IsValid() || this->requestFrameHandleId_.empty()) { |
no test coverage detected