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

If AntvDarge uses a combo when the rankdir is LR, I want the nodes in the combo to be aligned on the same horizontal line. #6772

Open
2 of 10 tasks
Cheng-fung opened this issue Feb 13, 2025 · 1 comment
Labels
waiting for maintainer Triage or intervention needed from a maintainer.

Comments

@Cheng-fung
Copy link

Describe the bug / 问题描述

Image

Reproduction link / 复现链接

https://stackblitz.com/edit/1vofigr5-jss7mbak?file=index.js

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

https://stackblitz.com/edit/1vofigr5-jss7mbak?file=index.js

Version / 版本

🆕 5.x

OS / 操作系统

  • macOS
  • Windows
  • Linux
  • Others / 其他

Browser / 浏览器

  • Chrome
  • Edge
  • Firefox
  • Safari (Limited support / 有限支持)
  • IE (Nonsupport / 不支持)
  • Others / 其他
@Cheng-fung Cheng-fung added the waiting for maintainer Triage or intervention needed from a maintainer. label Feb 13, 2025
Copy link

在使用 Antv G6 的 Darge 布局时,如果希望在 rankdirLR 的情况下使 combo 中的节点对齐在同一水平线上,可以尝试以下方法:

  1. 调整布局配置:确保在布局配置中设置适当的参数来控制节点的对齐。可以通过设置 align 参数来尝试实现水平对齐。

  2. 自定义布局:如果内置的布局配置无法满足需求,可以考虑自定义布局逻辑,通过编程方式手动调整节点的位置。

  3. 使用辅助线:在渲染图形时,使用辅助线或其他视觉元素来帮助实现节点的对齐效果。

如果这些方法仍然无法解决问题,建议查看 G6 的文档或社区资源,获取更多关于布局配置的详细信息。

如果您有进一步的问题或需要具体的代码示例,请随时告诉我!

🪧 Tips For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.

@github-actions github-actions bot changed the title AntvDarge布局rankdir为LR的情况下使用combo,希望combo中的节点能够对齐在同一水平线上,请问如何配置? If AntvDarge uses a combo when the rankdir is LR, I want the nodes in the combo to be aligned on the same horizontal line. Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for maintainer Triage or intervention needed from a maintainer.
Projects
None yet
Development

No branches or pull requests

1 participant