public ReroutePathLayoutAction(LayoutPath path, Route oldRoute, Route newRoute) { Path = path; OldRoute = oldRoute; NewRoute = newRoute; }
private static Route GetRoutePoints(LayoutPath layoutPath, LayoutVertexToPointMap vertexCenters) { var sourceRect = vertexCenters.GetRect(layoutPath.PathSource); var targetRect = vertexCenters.GetRect(layoutPath.PathTarget); var routePoints = new Route.Builder { sourceRect.Center, layoutPath.InterimVertices.Select(vertexCenters.Get), targetRect.Center }.ToRoute(); return(routePoints.AttachToSourceRectAndTargetRect(sourceRect, targetRect)); }
public void OnDiagramConnectorRemoved(LayoutPath layoutPath) { _relativeLayout.RemoveEdge(layoutPath); }
public void OnDiagramConnectorAdded(LayoutPath layoutPath) { _relativeLayout.AddEdge(layoutPath); }