Skip to content

fix: unstack source selection nodes#3044

Open
Finesssee wants to merge 1 commit into
stakwork:masterfrom
Finesssee:fix-unstack-source-selection-nodes
Open

fix: unstack source selection nodes#3044
Finesssee wants to merge 1 commit into
stakwork:masterfrom
Finesssee:fix-unstack-source-selection-nodes

Conversation

@Finesssee

Copy link
Copy Markdown

Fixes #2398

This fixes the stacked related-topic nodes in the selection graph by moving selected-node siblings from the old tight 50px circle to a deterministic orbit layout with enough spacing between nodes.

Changes:

  • Add selection-node layout helpers with min/max radius and spacing-based radius growth
  • Use the layout helper when rendering selected-node sibling graphs
  • Keep path navigation spacing consistent with the same radius helper
  • Fit the selection camera to the actual selection graph radius
  • Add unit coverage for selected-node centering and sibling distribution

Validation:

  • yarn typecheck
  • yarn jest src/components/Universe/Graph/Cubes/SelectionDataNodes/__tests__/index.ts --runInBand --no-cache --coverage=false

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

Sources resulting in stacked nodes

1 participant