patternfly / react-topology

MIT License
10 stars 19 forks source link

GRAPH_LAYOUT_END_EVENT is fired prior to layout completion #79

Closed jeff-phillips-18 closed 1 year ago

jeff-phillips-18 commented 1 year ago

Describe the problem The GRAPH_LAYOUT_END_EVENT is fired before the node layout is finished and thus the node positions are not updated and able to be used to save or react to the current positions.

How do you reproduce the problem? Add event handler for GRAPH_LAYOUT_END_EVENT. In the handler check the value of the node positions and notice they are incorrect (either old position or the center of the graph).

Expected behavior The node positions have been updated and are accurate as of layout completion.

/cc @bartoval

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 5.0.0-prerelease.4 :tada:

The release is available on:

Your semantic-release bot :package::rocket: