jerosoler / Drawflow

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

Styling the child node when grouped #499

Open maxkaoppp opened 2 years ago

maxkaoppp commented 2 years ago

Hello @jerosoler ,

Firstly great library!!

I am using this library on a project but we have a customized requirement to group Nodes.Now I have successfully grouped the node,but I want to change the style of child node when it has been grouped.Just like below: image

I want the child node to change like this:

image

Automatically snap to the middle and decrease its width.

jerosoler commented 2 years ago

How are you grouping the nodes? On the same DOM level? On another level.

I see that its child nodes have no inputs or outputs. It reminds me:

If you want to move multiple nodes at the same time: