[Bug] saveAsImage with pixelRatio > 1 renders 3D / echarts-gl components blank
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- typescript
調査の方向性
リンクされた CodePen の再現から始め、pixelRatio が 1 より大きい場合の toolbox.feature.saveAsImage と chart.getDataURL を追跡してください。echarts-gl の WebGL オフスクリーンレンダリングと framebuffer のリサイズパスを調査してください。line3D、surface、bar3D のエクスポートに高解像度の 3D コンテンツが含まれ、2D 要素が正しく維持されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Version
6.1.0
Link to Minimal Reproduction
https://codepen.io/Danish-Munib/pen/raWzBYG
Steps to Reproduce
- Create a 3D chart using echarts-gl (e.g., line3D, surface, or bar3D).
- Add the toolbox.feature.saveAsImage configuration.
- Set pixelRatio in saveAsImage to a value greater than 1 (e.g., pixelRatio: 2).
- Trigger saveAsImage via the toolbox button or programmatically using chart.getDataURL().
Current Behavior
When pixelRatio is set to 1, the exported image renders correctly.
However, setting pixelRatio > 1 results in an exported image where the WebGL viewport/3D canvas content is entirely blank. Only 2d elements (such as the visualMap legend) are rendered.
Expected Behavior
The exported image should render the complete 3D chart at high resolution corresponding to the specified pixelRatio.
Environment
- OS: Windows 10 Pro 22H2
- Browser: Brave 1.92.140 (Official Build)
- Framework: Vanilla JS
Any additional comments?
The issue appears to stem from how WebGL framebuffers handle resizing during off-screen rendering when target pixel ratios are increased.
- 主要言語
- TypeScript
- スター
- 67.7k
- フォーク
- 19.9k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/echarts のほかの issue
-
[Bug] String formatter templates only replace the first occurrence of `{a}`/`{b}`/`{c}`対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンen pending
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
-
[Bug] Inverse axis collapses the grid with outerBoundsContain when a tick is near the axis edge対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンen pending
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
en pending
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
en pending
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
[Bug] The zoom cursor in the toolbox area is incorrect対応中かも @waterWang が 98 日前に担当しました。 オープンbug en pending
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
pollen-robotics/reachy-mini-desktop-app#341 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
mike-north/AgentMonitors#648 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
vercel-labs/ui#700 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 2 日以内に返信