fix(ui): add repel and link forces to dependencies view (#11583) #11910
+8
−7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes are being made and why?
This PR improves the readability of the Dependencies view by tuning the Cytoscape COSE layout parameters:
nodeRepulsion
to push nodes further apartidealEdgeLength
for longer linkscomponentSpacing
andpadding
for clearer clusteringnumIter
for more stable layout convergenceThese changes address the issue where large graphs were too dense and difficult to explore.
Closes #11583.
How the changes have been QAed?
Tested locally using the sample parent/child/grandchild flows from PR #10240.
With the updated layout settings, the dependency graph is easier to read and nodes are spread out more clearly.
Example flows used: