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

FIX: layout problem on collapsing a node with many children #4

Conversation

catosaurusrex2003
Copy link
Contributor

Changes in the PR:

  1. added a removeEdgesByParent function to remove the remnant edges of a node when we are collapsing it.
  2. converted dependency dagre to @dagrejs/dagre bcz of this https://github.com/dagrejs/dagre/blob/master/README.md
  3. moved instance of dagreGraph and getLayoutedElements one level up from Node.tsx -> App.tsx so that every time our App.tsx rerenders a new fresh layout is created.

related:
asyncapi/website#3334

@catosaurusrex2003
Copy link
Contributor Author

catosaurusrex2003 commented Nov 2, 2024

closing this PR.
cuz created a new PR pointing to next branch
#5

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

Successfully merging this pull request may close these issues.

1 participant