-
Notifications
You must be signed in to change notification settings - Fork 233
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
Nodes added or deleted from a graph with nodes in fixed positions will cause issues #151
Comments
Now that I noticed it seems to happen even without setting specific |
Thanks, Daniel |
Just revisited this issue, seems that somehow the problem is not on the setting of Check the implementation that causes the issue: /**
* Remove a node.
*/
onClickRemoveNode = () => {
if (this.state.data.nodes && this.state.data.nodes.length) {
const id = this.state.data.nodes[0].id;
this.state.data.nodes.splice(0, 1);
const links = this.state.data.links.filter(l => l.source !== id && l.target !== id);
const data = { nodes: this.state.data.nodes, links };
this.setState({ data });
} else {
window.alert('No more nodes to remove!');
}
}; |
If you set <fx, fy> (fixed static) for some of the nodes on your graph and add or delete nodes thereafter your graph will "break" and become un-editable.
The text was updated successfully, but these errors were encountered: