Clickmode "event+select" activated and Clicking outside of Graph calls onUpdate incorrectly
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript, react
調査の方向性
リンクされた CodeSandbox の再現例と、react-plotly.js における dragmode "select" での clickmode "event+select" の処理から始めます。ある点をクリックした後、その外側をクリックした場合の callbacks とグラフの状態を比較し、その挙動がこの wrapper に属するのか Plotly.js に属するのかを判断します。選択解除が報告され、選択が削除され、グラフが完全に不透明なままであれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hi, currently working on Streamlit + Plotly selections! I noticed this bug that didn't seem like a bug on Streamlit's side.
It seems like onUpdate gets called and graph gets updated visually incorrectly when clickmode: "event+select" and dragmode: "select" and doing selection clicks. I would expect onDeselect to be called and layout.selections to remove the selection because selectedpoints in data has []
Reproducible example: https://codesandbox.io/p/sandbox/react-forked-6rypkr?file=%2Fsrc%2FApp.tsx
Steps to reproduce:
- Click on a single point
- Click outside of a point
Expectation: Graph is not less than 100% opaque
Actual: Graph is less than 100% opaque and weird and onUpdate is not called
Video to show actual:
https://github.com/plotly/react-plotly.js/assets/16749069/632b9ef7-c213-4a27-a7c7-08f5b8c9417e
I read that most issues here are likely Plotly.js problems but not sure if that's the case because I went to check plotly.js code and onUpdate is a callback while plotly.js contains an update function as far as I can tell.
- 主要言語
- JavaScript
- スター
- 1.1k
- フォーク
- 138
- 平均マージ
- 3日 2時間
- マージ済み PR(30日)
- 4
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
plotly/react-plotly.js のほかの issue
-
P3 plotly-internal size: 1 task
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
plotly/react-plotly.js#386 ·
-
enhancement P3 size: 1
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
plotly/react-plotly.js#380 · コメント 7 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
plotly/react-plotly.js#358 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
plotly/react-plotly.js#354 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
plotly/react-plotly.js#353 · コメント 1 件 ·
plotly/react-plotly.js の issue をすべて見る
似ている issue
-
Edit: CW+ オープンchannels:edit check:passed
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
idean3885/claude-ops-agent#521 ·
-
forespørsel 🥰 ikoner 🖼 nytt ✨
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
avniproject/avni-client#2135 ·
-
automated broken-link
難易度 1/5 1時間未満 初心者へのやさしさ 85/100