MCPcopy Create free account
hub / github.com/antvis/F2Native / ~XChart

Method ~XChart

core/graphics/XChart.cpp:55–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55XChart::~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
84bool XChart::Parse(const std::string &dsl) {
85 this->logTracer_->trace("#dsl dataSize: %lu", dsl.size());

Callers

nothing calls this directly

Calls 2

ClearMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected