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

[功能需求] 支持单一锚点的模式 #546

Open
kilosangma opened this issue Mar 26, 2022 · 3 comments
Open

[功能需求] 支持单一锚点的模式 #546

kilosangma opened this issue Mar 26, 2022 · 3 comments
Labels
优化 New feature or request

Comments

@kilosangma
Copy link

问题描述

  1. 当前框架内, 默认锚点为上下左右各一个,自定义锚点仅为逻辑判断与数量与位置的控制
  2. 希望能增加单一锚点的模式
  3. 此模式下,一节点即为一锚点,能实现类似关系图的结构
    示意图
    946bc75233f4012d891b682e7ee5488
@towersxu
Copy link
Collaborator

将锚点数量设置为1,锚点位置为节点中心,然后将锚点样式设置为透明就可以达到这效果了

@kilosangma
Copy link
Author

将锚点数量设置为1,锚点位置为节点中心,然后将锚点样式设置为透明就可以达到这效果了
这样设置线会传过节点 而不是在圆周上
image

@towersxu towersxu reopened this Mar 26, 2022
@towersxu
Copy link
Collaborator

嗯,目前直线还有改进空间。直线可以使用两个节点直接最近的点作为锚点,而不是使用节点上的锚点。

@wumail wumail added the 优化 New feature or request label Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
优化 New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants