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] Wrong gap in Tree Mindmap. #4311

Closed
songispm opened this issue Feb 24, 2023 · 2 comments
Closed

[Bug] Wrong gap in Tree Mindmap. #4311

songispm opened this issue Feb 24, 2023 · 2 comments
Labels
Outdate This issue is too old to be resolved stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed

Comments

@songispm
Copy link

songispm commented Feb 24, 2023

Describe the bug

当根据是不是根节点或节点的层级,来设置不同的横向间距时

结果左侧的间距不对,右侧的间距正确

image

Your Example Website or App

https://stackblitz.com/edit/react-rre1us?file=index.js

Steps to Reproduce the Bug or Issue

在官方g6的示例基础上,
getHGap 中,根据是否根节点返回不同间距

改写下面这一行
在官方示例中,ID为0就是根节点

getHGap: (node) => {
    return node.id === '0' ? 200 : 60;
},

Expected behavior

两侧边距相等

Screenshots or Videos

No response

Platform

  • OS: macOS
  • Browser: Chrome
  • Version: Latest version

Additional context

No response

@songispm
Copy link
Author

songispm commented Feb 24, 2023

关联此issue
antvis/hierarchy#19

@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Apr 11, 2024
@Aarebecca Aarebecca added the Outdate This issue is too old to be resolved label Jul 5, 2024
Copy link

github-actions bot commented Jul 5, 2024

This issue has been closed because it has been outdate for a long time.
Please open a new issue if you still need help.

这个 issue 已经被关闭,因为 它已经过期很久了
如果你仍然需要帮助,请创建一个新的 issue。

@github-actions github-actions bot closed this as completed Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Outdate This issue is too old to be resolved stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed
Projects
None yet
Development

No branches or pull requests

2 participants