jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.78k stars 743 forks source link

Group node while initial drag and drop #644

Closed Sri-5555 closed 1 year ago

Sri-5555 commented 1 year ago

Hi @jerosoler,

I was trying to group some node while drag and drop, which I can drag and move or delete all at once.

I tried with the below example of yours(https://github.com/jerosoler/Drawflow/issues/423#issuecomment-1131533142) here grouping happens on draging into the box. Is there any way to implement this while initial drag and drop itself

image

jerosoler commented 1 year ago

You could listen for the nodeCreated event and do the same thing that is done in the nodeMoved event.

I think that could work with that.

Sri-5555 commented 1 year ago

Thanks @jerosoler. Its works