onRelayout does not work with scrollwheel zoom on 3d plots
還沒有人認領這個 Issue。
評估
- 難度
- 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
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
plotly/react-plotly.js 的其他 Issue
-
P3 plotly-internal size: 1 task
難度 3/5 1-2 天 新手友好度 45/100
plotly/react-plotly.js#386 ·
-
難度 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 則留言 ·
-
難度 4/5 3-5 天 新手友好度 35/100
plotly/react-plotly.js#352 · 1 則留言 ·
查看 plotly/react-plotly.js 的全部 Issue
相似的 Issue
-
Upgrade listener stays on a custom server after close when `preClose` is set可能已有人在做 @RaphaelFakhri 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
fastify/fastify-websocket#388 ·
-
難度 2/5 1-3 小時 新手友好度 78/100
DietrichGebert/ponytail#1343 ·
維護者通常 1 天內回覆
-
cleanup
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
swombat/souls-house#770 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆