-
Notifications
You must be signed in to change notification settings - Fork 49
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
Component | Graph: Layout recalculation and persistency fix #396
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rokotyan I made a demo example to test this, I'm getting strange behavior if any panning/zooming occurs. Should we reset the transform on layout change as well?
Screen.Recording.2024-05-31.at.10.58.39.AM.mov
@rokotyan I tried to modify one of the gallery example to test this. It seems once the layout changed, the chart no longer fit in the view window. Screen.Recording.2024-05-31.at.11.21.45.AM.mov |
@reb-dev Can you please push your example to the branch? |
@rokotyan Testing it again I'm discovering inconsistent behavior with Currently if you dynamically add data to the graph when it is set to Also could you clarify what the expected behavior is for this property? |
@reb-dev You're right, something wrong is happening when changing the layout. Thanks for catching this, I'll investigate |
@reb-dev Found the problem and fixed, see the last two commits. Thanks again for testing this thoroughly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates @rokotyan, looks good to me!
This PR fixes layout problems reported in #393:
fixNodePositionAfterSimulation
not working correctly in Force Layout