onRelayout does not work with scrollwheel zoom on 3d plots
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript, react
調査の方向性
リンクされたCodeSandboxから始め、onRelayoutのコンソール出力を確認しながら、3Dプロットでスクロールホイールによるズームを再現します。ズームイン、ズームアウト、およびスクロール前にクリックした場合に出力されるカメラ値を比較します。イベントが最終的なカメラ状態を反映し、予期せず空になっていなければ完了です。
索引モデルが issue の本文から書いたものです。
説明
When using the scroll wheel to zoom, onRelayout seems to output the tiniest initial change rather than the layout at the end of the event (as using Zoom mode and clicking/dragging does), meaning the event better reflects the camera before the action rather than after, e.g:
- zooming in one 'click' of the scroll wheel will output with
event.scene.camera.eye.x = 1.2499999999999998, only a tiny change from the default of 1.25 - zooming in again will output with
event.scene.camera.eye.x = 0.94622499477157, a change of ~0.3 inwards - then zooming out will output with
event.scene.camera.eye.x = 0.7210090673130023, a change of ~0.2 inwards, representing another zoom in rather than out, when in theory we should be back to the position we were in after 1 zoom in
Also, if you click on the plot, then use the scroll wheel to zoom, the onRelayout event will often (but not always) be {}
Example (interact with plot as above and see console logs): https://codesandbox.io/s/compassionate-sara-hl4k9m
- 主要言語
- 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
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
sugarlabs/musicblocks#8847 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
Request: SumUp オープンnew icon permissions in review
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
simple-icons/simple-icons#15027 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
TheOdinProject/curriculum#31408 ·