Forge
csharp4405de34
1#nullable enable
2using CascadeIDE.Cockpit.Graph.Layout;
3using CascadeIDE.ViewModels;
4
5namespace CascadeIDE.Views.SkiaKit.Graph;
6
7/// <inheritdoc cref="CodeNavigationMapGraphSceneProjection"/>
8public static class GraphLayoutSceneMapper
9{
10 public static GraphLayoutScene FromViewModel(CodeNavigationMapGraphSceneVm scene) =>
11 CodeNavigationMapGraphSceneProjection.FromViewModel(scene);
12
13 public static GraphLayoutNode MapNode(CodeNavigationMapGraphNodeLayout n) =>
14 CodeNavigationMapGraphSceneProjection.ToLayoutNode(n);
15
16 public static GraphLayoutEdge MapEdge(CodeNavigationMapGraphEdgeLayout e) =>
17 CodeNavigationMapGraphSceneProjection.ToLayoutEdge(e);
18}
19
View only · write via MCP/CIDE