X6 icon indicating copy to clipboard operation
X6 copied to clipboard

希望增加功能:拖动节点到相邻最近的节点时自动变更连线与之连接

Open mtiger95 opened this issue 2 years ago • 1 comments

Describe the feature you'd like to request

拖动节点A到相邻最近的节点B 时取消原来的连接,A和A的后面节点自动变更连线与这个最近的节点B连接。

Describe the solution you'd like

节点添加一个属性,比如connectToNearestNode,监听mouseMove事件,拖动时可以自动换连接上级。

Describe alternatives you've considered

或者拖动节点时,可以获取到节点坐标与周围节点的坐标,然后进行对比,开发者手动处理。

Your Example Website or App

No response

Screenshots or Videos

https://user-images.githubusercontent.com/23418622/185584894-133286e5-df2e-4900-8849-3ee507a5154a.mp4

mtiger95 avatar Aug 19 '22 09:08 mtiger95

👋 @mtiger95

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.

To help make it easier for us to investigate your issue, please follow the contributing guidelines.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

x6-bot[bot] avatar Aug 19 '22 09:08 x6-bot[bot]