Hi,
I am upgrading from the old diagram component (what you now call diagram-classic) and have discovered that
GetEdges and GetConnector are no longer supported.
So this code no longer works:
public async Task<List<DiagramConnector>> FindReachable(string nodeId)
{
string[] edges = await diagram.GetEdges(nodeId, true);
foreach (string edge in edges)
{
DiagramConnector connector = diagram.GetConnector(edge);
if (reachableConnectors.Contains(connector))
{
continue;
}
if (connector.Annotations == null || connector.Annotations.Count == 0 || connector.Annotations[0].Content != "No")
{
reachableConnectors.Add(connector);
await FindReachable(connector.TargetID);
}
}
return reachableConnectors;
}
In the new DiagramComponent, how would I search a node for its connectors and iterate through them?
Thanks.
Paul