[Bug] saveAsImage not exclude toolbox when use connect
- Dominant language
- TypeScript
- Stars
- 67.3k
- Forks
- 19.8k
- Avg merge
- 11d 14h
- Merged PRs (30d)
- 8
Description
### Version
4.9.0/5.4.3
### Link to Minimal Reproduction
https://echarts.apache.org/examples/zh/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWszGAGwEbAA8AuZNdWAMwFMBDMAVwCcqTVzyBnGgNyoEEOASQC2NAOYtS7diAgEq2AEp0oJAExl2AX03kA9HtiAEtMDzoYEgEwLRysAMIALGozC6d6LQBoyBPgQgdWusABPEEkAcgBjOioxYEZA0I92ABM6GhIAbVCAWRgE2FCAFXoqPNCAdSok0oLbelKAMUYIUoBlOlb6aFCAXTJ3MkDvX392IJCSUO4abGLQvo8yDiomqj9YdN02aRSwNPWARgBWAAY3WDUAZlPztQAWM7V9gA4z_YvD19uAdgeANmPuolpGMwtgINASs4yL0tABuFAoYSBOwOMAAOjEjGA9BACFgACJ9pd8fDYFRwvZHBw0eEYBDwmAABShIkXUIASlhQA
### Steps to Reproduce
1. when use echarts.connect function
2. click the download button on toolbox
3. look at the pic which download from step 2. the toolbox not exclude.
4. when comment the connect function, then the pic will not contain the toolbox as expected.
### Current Behavior
when use echarts connect function, the toolbox component will show on the download picture.
### Expected Behavior
the toolbox component will disappear on the download picture as expected, because the default excludeComponents contains the toolbox.
### Environment
```markdown
- OS: win11
- Browser: Chrome 版本 120.0.6099.110(正式版本)
- Framework: common js
```
### Any additional comments?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.