antvis / antvis/G6

[Bug]: 导出图片时背景为黑色(V5.0.47)

Open
#7,220 1 comment 0 reactions 0 assignees View on GitHub
feature 💡
Dominant language
TypeScript
Stars
12.3k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug / 问题描述

设置了background,但是用toDataURL时没有背景

![Image](https://github.com/user-attachments/assets/7dab090f-bf2b-4400-ae65-4ce2c1d78c55)

![Image](https://github.com/user-attachments/assets/74932d4f-3fd1-4b92-9dcb-3860fdbdb074)

### Reproduction link / 复现链接

_No response_

### Steps to Reproduce the Bug or Issue / 重现步骤

_No response_

### Version / 版本

Please select / 请选择

### 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 by reproducing the export in Chrome on Windows with a configured background and inspect the behavior of toDataURL. Done means the exported image preserves the background instead of appearing black; no reproduction link, steps, file, or test is provided in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.