Open thestumonkey opened 1 year ago
@thestumonkey Did you ever find a solution for this?
I'm afraid not :(
I was thinking of adapting, https://github.com/ChrisDelClea/streamlit-agraph/blob/master/streamlit_agraph/frontend/src/StreamlitVisGraph.tsx to return the node positions at enddrag, but I am having a hard time getting the code to run locally. Have you gone through that process?
On Tue, Jan 9, 2024 at 2:13 PM Stuart Alexander @.***> wrote:
I'm afraid not :(
— Reply to this email directly, view it on GitHub https://github.com/ChrisDelClea/streamlit-agraph/issues/44#issuecomment-1882962478, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2S35KGIGBWXXFSJ5GSCTDYNUX5TAVCNFSM6AAAAAAYW6GLO6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBSHE3DENBXHA . You are receiving this because you commented.Message ID: @.***>
When I add nodes or remove them and redraw the graph, the position of the nodes jump, and it redraws in a random configuration. I'd like to be able to save the position in the session state, and any redrawing would happen with the physics on it so added nodes would appear smoothly