Graphin
Graphin copied to clipboard
Layout is updated when a new node is added
Describe the bug
Hello,
We are using the Graphin library in our project. We add a node according to our scenario and the graphical layout is refreshed again. I'm losing my script that I used to work on canvas. The nodes I drag are shaped according to the order I specified in the graph library. How can I prevent this? I am attaching a sample screenshot of our application below. Thanks in advance for helping.
Sample code: let c = { id: id, label: "TEST", type: "graphin-circle", } }; graph.addItem("node", c); graph.updateLayout("force");
Expected behavior
I want node added without rearranging the canvas.
Screenshots or Videos
Use preset layout type with specific X and Y positions.