dependency count
This commit is contained in:
parent
569f645220
commit
9c0e3deac3
@ -59,6 +59,14 @@ namespace AsmdefHelper.DependencyGraph.Editor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Portに接続数を追記
|
||||||
|
foreach (var dep in dependencies) {
|
||||||
|
if (asmdefNodeDict.TryGetValue(dep.Profile.Name, out var node)) {
|
||||||
|
node.LeftPort.Label = $"RefBy({dep.Sources.Count})";
|
||||||
|
node.RightPort.Label = $"RefTo({dep.Destinations.Count})";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// ノードの場所を整列
|
// ノードの場所を整列
|
||||||
var sortStrategy = new AlignSortStrategy(AlignParam.Default(), Vector2.zero);
|
var sortStrategy = new AlignSortStrategy(AlignParam.Default(), Vector2.zero);
|
||||||
var sortedNode = sortStrategy.Sort(dependencies);
|
var sortedNode = sortStrategy.Sort(dependencies);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user