[Bug]: showElement时,会直接显示所有子shape(默认隐藏,个性化业务逻辑触发显示),都直接显示出来
- Dominant language
- TypeScript
- Stars
- 12.3k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug / 问题描述
【正常业务逻辑】
如图,节点上八个白色圆点桩,是创建节点时添加的circle shape,来作为自定义的连接桩。
默认情况下,这八个circle默认隐藏,只有鼠标移入移出时才会显示或隐藏。
【当前缺陷点】
在通过graph.showElement()方法批量显示节点后,所有显示状态的节点都把这八个自定义连接桩circle shape都显示出来了。
【修复建议】
在showElement和hideElement时,应当增加对各shape的状态管理;或者增加入参选项,选择是否展示全部shape(包括key shape/内置子shape/自定义子shape)。
### Reproduction link / 复现链接
_No response_
### Steps to Reproduce the Bug or Issue / 重现步骤
_No response_
### Version / 版本
🆕 5.x
### OS / 操作系统
- [ ] macOS
- [x] Windows
- [ ] Linux
- [ ] Others / 其他
### Browser / 浏览器
- [x] Chrome
- [ ] Edge
- [ ] Firefox
- [ ] Safari (Limited support / 有限支持)
- [ ] IE (Nonsupport / 不支持)
- [ ] Others / 其他
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the graph.showElement() and graph.hideElement() entry points and trace how node visibility affects built-in and custom child shapes. Reproduce the case with nodes containing initially hidden custom circle connection points, then determine whether completion should preserve each shape's state or expose an option covering all shapes. Add a regression check for the observed visibility behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100