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

Method AddConfig

core/graphics/tooltip/TooltipController.cpp:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void tooltip::ToolTipController::AddConfig(const nlohmann::json &cfg) {
64 if (cfg.is_object()) {
65 nlohmann::json newCfg = config_;
66 newCfg.merge_patch(cfg);
67 configs_.push_back(newCfg);
68 }
69 if (configs_.size() > 0) {
70// chart_->GetLogTracer()->trace("ToolTips Config: %s", configs_.back().dump().data());
71 }
72}
73
74void tooltip::ToolTipController::Init(const nlohmann::json &cfg) {
75 if (cfg.is_object()) {

Callers 1

XChart.cppFile · 0.80

Calls 2

push_backMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected