-
-
Notifications
You must be signed in to change notification settings - Fork 343
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
Redraw connections after moving nodes #438
Comments
Yes, definitely don't plan to work on that. If you want to take a swing at it, you will need to get Here is how it looks within org chart code Lines 974 to 979 in cb1f376
So, code will look like this const state = chart.getState();
const wrapper = state.connectionsWrapper;
const connections = wrapper.selectAll('.connection')
// Then plug following code into drag event
connections
.attr("d", (d) => {
return `customly positioned path taking the linked sample into account`
}); |
Apologies for the lack of response... I've been switched to focus on other matters, but thanks for the tip. I'll give it a go when I get chance. Cheers |
I've used the Drag and Drop community sample (https://stackblitz.com/edit/js-bmyjfc?file=index.html) to enable re-organisation of the chart and it's working well.
Using a very minor modification, it's possible to drag nodes to anywhere in the chart -- is there a way that connecting lines could be redrawn after moving a node to a random position (it's probably a big ask!).
The text was updated successfully, but these errors were encountered: