[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
Labels
bug 🐛
Something isn't working
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 / 操作系统
Browser / 浏览器
The text was updated successfully, but these errors were encountered: