-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[v5] drag-element 对于关联的edge(polyline)端点坐标计算异常 #5644
Comments
It looks like the issue you're encountering with the To address the unexpected behavior when the target node moves below the source node, consider the following steps:
For more detailed guidance on handling edge calculation with ports, you might find the element-edge-port.ts demo file in the G6 repository helpful. If you need further assistance or have more details to share, feel free to reach out. Sources
|
看截图是自动吸附到距离更近的连接桩了,建议先检查一下连接桩设置是否正确。如果还是存在问题,请提供一个在线示例链接,方便排查定位问题~ |
不好意思,在线没问题,没复现出来;我的估计问题出在我自定义node时,复写的getPortXY方法有问题,先关闭吧 |
Describe the bug
edge已经配置了style.targetPort和style.sourcePort
这是正常的,终点应该是bottom-center port
当targetNode移动到sourceNode下方后,就变成了这样
Your Example Website or App
无
Steps to Reproduce the Bug or Issue
无
Expected behavior
无
Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: