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

[Feature]: 希望addEdge时能指定连接的锚点 #1946

Closed
EdwinOlders11 opened this issue Nov 5, 2024 · 2 comments
Closed

[Feature]: 希望addEdge时能指定连接的锚点 #1946

EdwinOlders11 opened this issue Nov 5, 2024 · 2 comments
Assignees

Comments

@EdwinOlders11
Copy link

背景&目的

有时节点上的锚点各有各的用途和意义,比如代表了不同类型的输入输出类型之类的,但现在addEdge时似乎仅根据两节点相对位置来自动选择锚点,经常会连接到不想要的锚点上
62626262626262
比如上图,希望能指定连接蓝色外框节点左侧的锚点,而不是根据位置自动选择了上方的锚点

@DymoneLewis
Copy link
Collaborator

现在就可以哦,addEdge的参数里增加sourceAnchorId和targetAnchorId参数就能指定连接锚点了,你可以试下,有问题再重开

@EdwinOlders11
Copy link
Author

现在就可以哦,addEdge的参数里增加sourceAnchorId和targetAnchorId参数就能指定连接锚点了,你可以试下,有问题再重开

确实可以,但官网不论是教程还是api里都完全没有提到过啊,这不说谁知道啊...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants