| 53 | } |
| 54 | |
| 55 | XChart::~XChart() { |
| 56 | func::FunctionManager::GetInstance().Clear(this->GetChartId()); |
| 57 | |
| 58 | chartActionListeners_.clear(); |
| 59 | renderActionListeners_.clear(); |
| 60 | interactions_.clear(); |
| 61 | |
| 62 | XG_RELEASE_POINTER(scaleController_); |
| 63 | XG_RELEASE_POINTER(axisController_); |
| 64 | XG_RELEASE_POINTER(guideController_); |
| 65 | XG_RELEASE_POINTER(geomAnimate_); |
| 66 | |
| 67 | geoms_.clear(); |
| 68 | |
| 69 | XG_RELEASE_POINTER(tooltipController_); |
| 70 | if (ownCanvasContext_) { |
| 71 | XG_RELEASE_POINTER(canvasContext_); |
| 72 | } |
| 73 | XG_RELEASE_POINTER(interactionContext_); |
| 74 | XG_RELEASE_POINTER(eventController_); |
| 75 | XG_RELEASE_POINTER(logTracer_); |
| 76 | XG_RELEASE_POINTER(darkModeManager_); |
| 77 | |
| 78 | backLayout_ = nullptr; |
| 79 | midLayout_ = nullptr; |
| 80 | frontLayout_ = nullptr; |
| 81 | XG_RELEASE_POINTER(canvas_); |
| 82 | } |
| 83 | |
| 84 | bool XChart::Parse(const std::string &dsl) { |
| 85 | this->logTracer_->trace("#dsl dataSize: %lu", dsl.size()); |