diagram-maker icon indicating copy to clipboard operation
diagram-maker copied to clipboard

Drag multiple nodes

Open JohnCyberWick opened this issue 3 years ago • 3 comments

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

JohnCyberWick avatar May 21 '21 14:05 JohnCyberWick

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.

sameergoyal avatar Jun 10 '21 08:06 sameergoyal

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.

JohnCyberWick avatar Jun 15 '21 13:06 JohnCyberWick

Thanks for contributing back.

Let us know if you need additional guidance on how to implement this change.

sameergoyal avatar Jun 16 '21 08:06 sameergoyal

Sorry, we are not planning to act on this request in any timely manner and will be closing this issue. Thank you.

tracy-french avatar Aug 25 '22 21:08 tracy-french