Foblex / f-flow

Foblex Flow - is an Angular library designed to simplify the creation and manipulation of dynamic flow. Provides components for flows, nodes, and connections, automating node manipulation and inter-node connections.
https://flow.foblex.com/
MIT License
95 stars 19 forks source link

Group items on drop #71

Open anderson-896 opened 2 weeks ago

anderson-896 commented 2 weeks ago

Description

I'd like to have the option to drag an item over another and group them, also I'd like to have an event for when I drag an element over another in order to identify wich one is the target.

Additional Context

No response

siarheihuzarevich commented 2 weeks ago

@anderson-896 I will add an event that triggers when a node is dragged over another node, detecting when the dragged node and cursor overlap with the target node. You will then be able to use this event for grouping, utilizing the grouping functionality on your end. I think I can do this within two weeks

siarheihuzarevich commented 2 weeks ago

@anderson-896 please let me know if this is what you need

anderson-896 commented 2 weeks ago

@anderson-896 please let me know if this is what you need

Yes, also I'd like an event for droping a node (onNodeDropped or similar) also would be interesting to have in this event: both nodes: the group and the child dropped, the coordinates of the items