diagram-maker
diagram-maker copied to clipboard
Drag multiple nodes
Hello,
The library allows to select multiple nodes at the same time. It would be great if you could also move them all together.
Describe the solution you'd like Use the selection marquee tool to select multiple nodes. Click and drag one of them. The others follow while keeping their relative position to each others.
Describe alternatives you've considered Should it be a plugin or a core feature ?
Best regards
Apologies for the delay in our response.
I think this could be a core feature and it is a good suggestion for enhancement. Would you be willing to submit a PR for this?
The change would require us to update the node movement logic to not only affect the node that is being moved but also move the nodes that are selected: https://github.com/awslabs/diagram-maker/blob/master/src/state/node/nodeReducer.ts#L68-L116. Let me know if you're interested and we can provide further guidance on this.
Thanks for your response,
I'm willing to submit a PR but I still can't give you a clear estimate right now. I'm going to take a look on this one after #53.
Thanks for contributing back.
Let us know if you need additional guidance on how to implement this change.
Sorry, we are not planning to act on this request in any timely manner and will be closing this issue. Thank you.