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

The Circular layout spreads out the nodes in opposite direction #213

Closed
postulkam opened this issue May 15, 2024 · 1 comment
Closed

The Circular layout spreads out the nodes in opposite direction #213

postulkam opened this issue May 15, 2024 · 1 comment
Labels
intended behavior This describes correct behavior -- it is working as designed

Comments

@postulkam
Copy link

The circular layout spreads out the nodes in the opposite direction than selected (clockwise vs. counterclockwise). I think it depends on the order of adding nodes.

Try the examples with full cycles in the diagram, and then try to remove the link with the linkDA key. Even without a cycle in the diagram, there are still some problems.

Example with nodes in group: https://jsfiddle.net/Mi_Po/uzxkncye/13/
Example with nodes on plain canvas: https://jsfiddle.net/Mi_Po/9qcenysw/10/

@WalterNorthwoods
Copy link
Contributor

You need to set CircularLayout.sorting to be either Ascending or Descending, as desired. https://gojs.net/latest/api/symbols/CircularLayout.html#sorting

@WalterNorthwoods WalterNorthwoods added the intended behavior This describes correct behavior -- it is working as designed label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
intended behavior This describes correct behavior -- it is working as designed
Projects
None yet
Development

No branches or pull requests

2 participants