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

mindmap 示例节点id重复 #3256

Closed
lloydzhou opened this issue Feb 17, 2023 · 3 comments
Closed

mindmap 示例节点id重复 #3256

lloydzhou opened this issue Feb 17, 2023 · 3 comments
Labels
released PR has released

Comments

@lloydzhou
Copy link
Contributor

Describe the bug

节点id重复导致计算布局的时候考虑了节点位置,但是不在图上面展示

Your Example Website or App

https://x6.antv.vision/en/examples/showcase/practices#mindmap

Steps to Reproduce the Bug or Issue

  1. 创建3个子主题
    image
  2. 移除中间的子主题
    image
  3. 创建新的子主题
    image
  4. 由于节点id重复导致计算布局的时候有计算位置,但是x6渲染节点的时候发现节点重复,所以不渲染。

Expected behavior

新添加节点应该正常显示

这里有一个使用x6-hooks重写官方demo的时候发现这个问题,并修复后的版本。
https://codesandbox.io/s/x6-hooks-react-mindmap-demo-2t6954?file=/src/App.js

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Feb 18, 2023

🎉 This issue has been resolved in the following release 🎉

Thanks for being a part of the AntV community! 💪💯

@x6-bot x6-bot bot added the released PR has released label Feb 18, 2023
@x6-bot
Copy link
Contributor

x6-bot bot commented Feb 24, 2023

🎉 This issue has been resolved in the following release 🎉

Thanks for being a part of the AntV community! 💪💯

@x6-bot
Copy link
Contributor

x6-bot bot commented Feb 25, 2024

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.

@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Feb 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
released PR has released
Projects
None yet
Development

No branches or pull requests

1 participant