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

从1.x升级到2.x时,折叠组合节点时不会隐藏自定义边上工具tools,1.x版本时会正常隐藏 #4530

Open
Jason-oo opened this issue Dec 18, 2024 · 2 comments

Comments

@Jason-oo
Copy link

Jason-oo commented Dec 18, 2024

问题描述

按指引从1.x升级至2.x
在1.x版本中折叠节点时tools会被隐藏,升级以后tools折叠后仍然会显示在画布上
有什么方法可以主动隐藏边上工具tools,看2.x版本文档只提供了remove方法,并删除了不常用的Graph.hideTools(),不清楚是否与这个有关系,但是我的代码里并没有使用此方法
请问有没有什么方法能够主动控制tools的显示隐藏

重现链接

重现步骤

预期行为

升级至2.x版本折叠节点时能正常隐藏tools

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox ...]
  • X6 版本: [2.11.1 ...]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Dec 18, 2024

👋 @Jason-oo

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@Jason-oo Jason-oo reopened this Dec 18, 2024
@Jason-oo
Copy link
Author

直接操作dom隐藏了,但是为什么2.x版本在调用edge.hide()的时候不会同步隐藏边上工具呢,有没有大佬给解释一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant