antvis / antvis/X6

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

Open
#4,530 5 comments 0 reactions 0 assignees View on GitHub
bug 🐛 good first issue oscp
Dominant language
TypeScript
Stars
6.7k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

### 问题描述

按指引从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_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported X6 1.x-to-2.x upgrade behavior with a custom edge tool and a collapsible node; the issue provides no reproduction link, steps, or source files. Compare tool visibility before and after collapsing, and check whether the removed Graph.hideTools() behavior is relevant. Done means tools are hidden when the node is collapsed and can be actively shown or hidden as expected in X6 2.x.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.