antvis/G6

Do you want to work on this issue?

You can request for a bounty in order to promote it!

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

Cheng-fung posted onGitHub

Describe the bug / 问题描述

Image

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 / 其他

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

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

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

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

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

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

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

posted by petercat-assistant[bot] 2 months ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests