| 135 | * Label colors are handled in the frontend (lib/colors.ts) for sidebar/tooltips. */ |
| 136 | |
| 137 | static float size_for_label(const char *label) { |
| 138 | if (!label) |
| 139 | return 4.0f; |
| 140 | if (strcmp(label, "Project") == 0) |
| 141 | return 20.0f; |
| 142 | if (strcmp(label, "Package") == 0) |
| 143 | return 15.0f; |
| 144 | if (strcmp(label, "Module") == 0) |
| 145 | return 15.0f; |
| 146 | if (strcmp(label, "Folder") == 0) |
| 147 | return 12.0f; |
| 148 | if (strcmp(label, "File") == 0) |
| 149 | return 8.0f; |
| 150 | if (strcmp(label, "Class") == 0) |
| 151 | return 6.0f; |
| 152 | if (strcmp(label, "Struct") == 0) |
| 153 | return 6.0f; |
| 154 | if (strcmp(label, "Interface") == 0) |
| 155 | return 6.0f; |
| 156 | if (strcmp(label, "Function") == 0) |
| 157 | return 4.0f; |
| 158 | if (strcmp(label, "Method") == 0) |
| 159 | return 4.0f; |
| 160 | return 4.0f; |
| 161 | } |
| 162 | |
| 163 | uint32_t cbm_layout_fnv1a(const char *s) { |
| 164 | uint32_t h = 2166136261u; |
no outgoing calls
no test coverage detected