antvis / X6

🚀 JavaScript diagramming library that uses SVG and HTML for rendering.
https://x6.antv.antgroup.com
MIT License
5.64k stars 1.69k forks source link

从点向线进行连线,连接后效果不满意且无法调整 #4180

Open vaseala opened 7 months ago

vaseala commented 7 months ago

问题描述

image image

我的连线规则是,线只可以连接到元件的连接桩或者线上,同时 edgeAnchor 设置为 orth

在我的demo中,我先从第一个元件右侧中间的顶点向第二个元件的连接桩连了一条线; 然后我希望能从第一个元件的右侧顶部连接点向上面的线连一条连接线,连接完成之后,不是我想要的效果,而且也无法继续操作。

重现链接

https://stackblitz.com/~/github.com/issuebox/antv-x6

重现步骤

从第一个元件的右侧顶部顶点向demo中的线上再连接一条线,连接完之后不是我想要的效果

预期行为

我想连接后是这样的线

image

平台

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

x6-bot[bot] commented 7 months ago

👋 @vaseala

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.

OpportunityLiu commented 7 months ago

我也想知道这功能删除以后替代方案是啥?

3456

oyal commented 6 months ago

你是想边连接边吧,需要改 EdgeView 文件

cangsnage commented 6 months ago

这个应该修改哪呢

oyal commented 6 months ago

这个应该修改哪呢

https://github.com/antvis/X6/issues/2027#issuecomment-1953374295