kieler / elkjs

ELK's layout algorithms for JavaScript
Other
1.82k stars 97 forks source link

Add inbuilt bounding box for subflows instead of manually specify width and height in styles #193

Closed Prasy12 closed 2 years ago

Prasy12 commented 2 years ago

Current scenario: User needs to specify the width and height of the bounding parent box to get that beautiful subflow boxes. image This becomes hard when we have dynamic number of nodes inside a subflow and manually adding these styles will not be feasible.

Expectation: Add the subflow box without specifying the style property. If it is a subflow automatically add the box shown below based on number of nodes image

soerendomroes commented 2 years ago

Can you recreate your problem in elklive? I tried to reproduce it in elklive but failed to see your point. (elklive may be shortly unavailable today but not for long).

RAFA3L commented 2 years ago

Just need to apply the width and height values generated by elkjs when prepare the data for reactflow examples

Prasy12 commented 1 year ago

@RAFA3L Can you provide an example sandbox for this? Still not able to get this done