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

Custom Layout mechanism #140

Open
blitzarx1 opened this issue Nov 28, 2023 · 0 comments
Open

Custom Layout mechanism #140

blitzarx1 opened this issue Nov 28, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@blitzarx1
Copy link
Owner

I think it will be relevant to have a possibility for the user providing custom layout for the widget which will compute node position on every frame from node and graph state.

Several points should be noted:

  1. Layout and drag conflicts.
  2. Layout and user set location conflicts.
  3. Layout is a stateful implementation, which keeps state for example in Graph wrapper.
  4. There also should be provided a default implementation of the Layout trait.
  5. Passing layout can be done via constructor methods or pure generics approach as it is done with NodeDisplay and EdgeDisplay.

To showcase this new feature configurable example can be used where forces simulation logic and node positions computation will become implementation of the Layout trait.

@blitzarx1 blitzarx1 added the enhancement New feature or request label Nov 28, 2023
@blitzarx1 blitzarx1 self-assigned this Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant