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

Set Node positions on load #22

Merged
merged 4 commits into from
Feb 5, 2024
Merged

Set Node positions on load #22

merged 4 commits into from
Feb 5, 2024

Conversation

dpgraham4401
Copy link
Member

Description

A bug fix (conveniently also a performance optimization) that sets node positions for the entire tree upon loading the config. This means that our store does not have to recaclulate node position every time and, upon doing so, the nodes do not overlap.

Issue ticket number and link

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

…of nodes) instead of our array of nodes. This means that the node positions are only calculated once and stored, instead of recalculating every time the node changes (which is not necessarily a problem but this prevents the nodes from overlapping on each other)
since we build a temporary tree and set the node positions upon loading the config, we don't need set the layout elements every time we dispatch a node changing action
    clarify types between position unaware and position aware decision trees

    separate interfaces for config objects and objects in store, add rank to position property in our decision tree
@github-actions github-actions bot added the dependencies changes to our dependencies label Feb 5, 2024
…k usage

    increment version

    fix typescript build error in test file
@dpgraham4401 dpgraham4401 force-pushed the set_positions_on_load branch from a249220 to e6c0092 Compare February 5, 2024 18:22
@dpgraham4401 dpgraham4401 merged commit 52a2218 into main Feb 5, 2024
5 checks passed
@dpgraham4401 dpgraham4401 deleted the set_positions_on_load branch February 5, 2024 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies changes to our dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant