Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

连线的位置不太合理 #254

Open
annacomnena opened this issue Jan 15, 2025 · 3 comments
Open

连线的位置不太合理 #254

annacomnena opened this issue Jan 15, 2025 · 3 comments

Comments

@annacomnena
Copy link

功能描述

Image
当一个节点比较长的时候,自动连线的位置就不太好,总是默认质心到质心。
实际上我们更应当需要从上下左右四边的中点和四个角点质检的连线

其他信息

No response

附件

No response

@github-project-automation github-project-automation bot moved this to 待讨论 in Project Graph Jan 15, 2025
@annacomnena annacomnena changed the title ✨ ... 连线的位置不太合理 Jan 15, 2025
@Littlefean
Copy link
Contributor

这可能要开个设置项:

1:几何中心到几何中心
2:矩形某边上的某点到矩形某边上的某点
3:矩形某边上的中点到矩形某边上的中点

@EvoRevoLution
Copy link

数学上的图论的边是抽象的,但实际上工程的图的边需要在乎边和边之间、边和节点之间的几何关系不极端,否则视觉效果会很差。得保证每个方框在数学上仍然是”一个节点“,然后能选择连线接上去的方向。

我目前使用下来的权宜之计就是多设一个节点作为中转,能让连线稍微好看点儿。

@Littlefean
Copy link
Contributor

顺带一提:最近在做节点换行功能,目前节点可以换行了。按回车键就可以,这使得矩形能在一定程度上避免过长的形状。可能对这个问题有一点点缓解。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 待讨论
Development

No branches or pull requests

3 participants