Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for clipping edges at subgraph border #3

Closed
hlindberg opened this issue Jun 2, 2011 · 1 comment
Closed

Add support for clipping edges at subgraph border #3

hlindberg opened this issue Jun 2, 2011 · 1 comment

Comments

@hlindberg
Copy link
Contributor

To draw an edge between two graphs an edge is required between nodes in the respective graphs with clipping set to the graph edge. In dot notation this is:

compound=true;
subgraph cluster_A {
    a;
}
subgraph cluster_B {
    b;
}
a -> b [lhead=cluster_B, ltail=cluster_A];

Support for this should be added by introducing the two styles "clipHead" and "clipTail" applicable to Edge. They require a Graph as value.

@hlindberg
Copy link
Contributor Author

clipping is already part of dot, and is used for clipping head/tail to the perimeter of a node shape (which is the default, but it can be made to go to the center of a node shape instead).

Implemented as "toCluster" and "fromCluster", and when a style is applied there is a check that the given cluster is actually a parent of the applicable edge's node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant