| 67 | } |
| 68 | |
| 69 | agg::rgba8 GetCurveColor(MapStyle mapStyle) |
| 70 | { |
| 71 | switch (mapStyle) |
| 72 | { |
| 73 | case MapStyleCount: |
| 74 | LOG(LERROR, ("Wrong map style param.")); |
| 75 | [[fallthrough]]; |
| 76 | // No need break or return here. |
| 77 | case MapStyleDefaultDark: |
| 78 | case MapStyleVehicleDark: |
| 79 | case MapStyleOutdoorsDark: return agg::rgba8(255, 230, 140, 20); |
| 80 | case MapStyleDefaultLight: |
| 81 | case MapStyleVehicleLight: |
| 82 | case MapStyleOutdoorsLight: |
| 83 | case MapStyleMerged: return agg::rgba8(30, 150, 240, 20); |
| 84 | } |
| 85 | UNREACHABLE(); |
| 86 | } |
| 87 | } // namespace |
| 88 | |
| 89 | void ScaleChartData(vector<double> & chartData, double scale) |
no outgoing calls
no test coverage detected