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

Function GetFillColor

core/graphics/axis/AxisController.cpp:38–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38static std::vector<std::string> GetFillColor(const nlohmann::json &config) {
39 std::vector<string> fill;
40 if (config.is_array()) {
41 for (int i = 0; i < config.size(); ++i) {
42 fill.push_back(config[i]);
43 }
44 }else if(config.is_string()) {
45 fill.push_back(config.get<string>());
46 }
47 return fill;
48}
49
50const bool xg::axis::Axis::IsSelected(const int tickIndex) {
51 bool isSelected = false;

Callers 1

DrawAxisMethod · 0.85

Calls 2

push_backMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected