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

Method Parse

core/graphics/XChart.cpp:84–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84bool XChart::Parse(const std::string &dsl) {
85 this->logTracer_->trace("#dsl dataSize: %lu", dsl.size());
86 nlohmann::json _dsl = xg::json::ParseString(dsl);
87 if (!_dsl.is_object()) {
88 this->logTracer_->trace("#dsl json is invalid");
89 return false;
90 }
91 return ParseObject(_dsl);
92}
93
94bool XChart::ParseObject(const nlohmann::json &dsl) {
95 //线上已经使用了data作为key,这里兼容下

Callers 1

nConfigFunction · 0.45

Calls 3

ParseStringFunction · 0.85
traceMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected