plotly / plotly/plotly.js

Canvas2D willReadFrequently warning

オープン
#7,285 コメント 1 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug P3
主要言語
JavaScript
スター
18.3k
フォーク
2k
平均マージ
2日 12時間
マージ済み PR(30日)
28

説明

I am seeing the warning

Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true.

I am using plotly.js-dist-min": "^2.35.2 and using a graph of type scatter3d.

Looking through the changelog I can see this fixed for heatmaps and 2D graphics (e.g. this pull request, https://github.com/plotly/plotly.js/pull/6741), but see no mention of 3D graphics. Also, if this is the case, I wonder if there are other types of graphs that also need this fix.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、pull request #6741 における heatmap および 2D graphics の変更と scatter3d のレンダリングパスを比較します。報告されている getImageData の readback を実行するグラフの種類を特定し、そのうえで、該当する警告が scatter3d とその他の影響を受ける種類について解消されていることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
data-visualization
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。