cytoscape / cytoscape.js-compound-drag-and-drop

Compound node drag-and-drop UI for adding and removing children
MIT License
33 stars 16 forks source link

Compound Children Should not Be Drag & Droppable #16

Closed sashokbg closed 2 years ago

sashokbg commented 2 years ago

Hello,

Currently the rule is that a compound could not be drag & dropped, however when I drag and drop a child of a compound onto another node, the parent of the dragged node disappears (see gif).

output

Expected Behavior:

Dragging the child element over another node should not trigger compounding.

Environment: "cytoscape": "^3.20.0", "cytoscape-compound-drag-and-drop": "^1.0.0", "cytoscape-cose-bilkent": "^4.1.0", "cytoscape-expand-collapse": "^4.1.0",

Best regards, Alex

sashokbg commented 2 years ago

I have opened a PR that allows parent nodes to be real nodes:

17

stale[bot] commented 2 years ago

This issue has been automatically marked as stale, because it has not had activity within the past 30 days. It will be closed if no further activity occurs within the next 30 days. If a feature request is important to you, please consider making a pull request. Thank you for your contributions.