antvis/G6

Do you want to work on this issue?
You can request for a bounty in order to promote it!
[Bug]: After adding ports to a node, when creating an edge, the endpoint of the edge is not in the same place as the mouse, and the endpoint of the node is far from the edge #6757
ChenKun1997 posted onGitHub
Describe the bug / 问题描述
节点加上ports之后,创建边时,边的端点没有跟鼠标在一块,有一定的间距,这个间距貌似就是节点高度的一半,如果把节点的size增加,间距也会增加
Reproduction link / 复现链接
https://g6.antv.vision/examples/behavior/create-edge#by-click
Steps to Reproduce the Bug or Issue / 重现步骤
官方案例加上node配置 node: { style: { ports: [ { key: 'top', placement: 'top', fill: '#7E92B5', r: 5 }, { key: 'bottom', placement: 'bottom', fill: '#FFBE3A', r: 5 } ] },
G6 Version / G6 版本
🆕 5.x
OS / 操作系统
- macOS
- Windows
- Linux
- Others / 其他
Browser / 浏览器
- Chrome
- Edge
- Firefox
- Safari (Limited support / 有限支持)
- IE (Nonsupport / 不支持)
- Others / 其他