csharpdeeb25a2 | 1 | namespace CascadeIDE.Models; |
| 2 | |
| 3 | /// <summary>Укладка графа связанных файлов (уровень <c>file</c>). TOML: <c>[code_navigation_map].related_graph_layout</c>.</summary> |
| 4 | public static class CodeNavigationMapRelatedGraphLayoutKind |
| 5 | { |
| 6 | public const string Auto = "auto"; |
| 7 | public const string Radial = "radial"; |
| 8 | public const string TopDown = "top_down"; |
| 9 | public const string BottomUp = "bottom_up"; |
| 10 | |
| 11 | public static string Normalize(string? value) |
| 12 | { |
| 13 | var v = (value ?? "").Trim().ToLowerInvariant(); |
| 14 | return v switch |
| 15 | { |
| 16 | Auto => Auto, |
| 17 | TopDown => TopDown, |
| 18 | BottomUp => BottomUp, |
| 19 | Radial => Radial, |
| 20 | _ => Radial |
| 21 | }; |
| 22 | } |
| 23 | |
| 24 | public static bool IsHierarchy(string? normalized) => |
| 25 | normalized is TopDown or BottomUp; |
| 26 | } |
| 27 | |
View only · write via MCP/CIDE