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

[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

Open
2 of 10 tasks
ChenKun1997 opened this issue Feb 7, 2025 · 0 comments
Labels
bug 🐛 Something isn't working

Comments

@ChenKun1997
Copy link
Contributor

Describe the bug / 问题描述

Image

Image

节点加上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 / 其他
@ChenKun1997 ChenKun1997 added the waiting for maintainer Triage or intervention needed from a maintainer. label Feb 7, 2025
@github-actions github-actions bot changed the title [Bug]: 节点加上ports之后,创建边时,边的端点没有跟鼠标在一块,节点的端点和边距离 [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 Feb 7, 2025
@zhongyunWan zhongyunWan added bug 🐛 Something isn't working and removed waiting for maintainer Triage or intervention needed from a maintainer. labels Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants