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]: The endpoint setting sourcePort and targetPort lines are occluded #6629

Closed
2 of 10 tasks
vxow opened this issue Dec 12, 2024 · 5 comments
Closed
2 of 10 tasks

[Bug]: The endpoint setting sourcePort and targetPort lines are occluded #6629

vxow opened this issue Dec 12, 2024 · 5 comments
Labels
waiting for author Further information is requested from the author.

Comments

@vxow
Copy link

vxow commented Dec 12, 2024

Describe the bug / 问题描述

设置线的端点,线会被节点遮挡
type: 'polyline'
router设置'orth'、'shortest-path'都会出现遮挡

Reproduction link / 复现链接

https://codesandbox.io/p/sandbox/y4s8t7

Steps to Reproduce the Bug or Issue / 重现步骤

No response

G6 Version / G6 版本

🆕 5.x

OS / 操作系统

  • macOS
  • Windows
  • Linux
  • Others / 其他

Browser / 浏览器

  • Chrome
  • Edge
  • Firefox
  • Safari (Limited support / 有限支持)
  • IE (Nonsupport / 不支持)
  • Others / 其他
@vxow vxow added the waiting for maintainer Triage or intervention needed from a maintainer. label Dec 12, 2024
@github-actions github-actions bot changed the title [Bug]: 端点设置sourcePort、targetPort线条会出现遮挡 [Bug]: The endpoint setting sourcePort and targetPort lines are occluded Dec 12, 2024
@vxow
Copy link
Author

vxow commented Dec 13, 2024

@yvonneyx 有什么好办法解决这种遮挡问题么

@yvonneyx yvonneyx added waiting for author Further information is requested from the author. and removed waiting for maintainer Triage or intervention needed from a maintainer. labels Dec 17, 2024
@yvonneyx
Copy link
Contributor

这是由于 dagre 布局会同时返回节点位置和控制点结果,折线的正交路由会将控制点计算在内。你可以手动将控制点清空,以便路由算法重新计算拐点。

 edge: {
    type: "polyline",
    style: {
      router: {
        type: "orth",
      },
      controlPoints: [],
    },
  },

@vxow
Copy link
Author

vxow commented Dec 17, 2024

@yvonneyx 试过这个办法,效果是改善了一些,但是还是会出现遮挡,有什么自定义的方法能够弥补么。

image

@github-actions github-actions bot added waiting for maintainer Triage or intervention needed from a maintainer. and removed waiting for author Further information is requested from the author. labels Dec 17, 2024
@yvonneyx
Copy link
Contributor

@yvonneyx yvonneyx added waiting for author Further information is requested from the author. and removed waiting for maintainer Triage or intervention needed from a maintainer. labels Dec 17, 2024
Copy link

Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information. | 由于该 issue 缺少关键信息且已闲置 7 天,现已自动关闭。如需重新打开此问题,请提供所缺失的信息。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for author Further information is requested from the author.
Projects
None yet
Development

No branches or pull requests

2 participants