[BUG]: Background image is rendered at an incorrect size after box zoom followed by mouse wheel zoom out

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript

調査の方向性

リンクされたCodePenを使って問題を再現します。小さなチャート領域をbox zoomし、その後マウスホイールでzoom outして、背景画像とそのx/y座標の参照を比較します。background-imageのレンダリングとズーム操作の経路を追跡し、手動のzoom-out後も画像が正しいサイズと位置を維持することを確認します。また、double-click resetも正しいままであることを確認します。

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

説明

bug good first issue good for agent P2 size: 1
Description

On charts containing a background image with xref: "x" and yref: "y", performing a box zoom followed by a manual zoom out causes the background image to be rendered with an incorrect size and position. It no longer matches the coordinate system defined by xref and yref.

Screenshots/Video

https://github.com/user-attachments/assets/08c53c01-0fca-4845-8b59-06e837382884

Steps to reproduce

Here https://codepen.io/JulienIcon/pen/QwdBypd, try to box zoom a small part of the chart and then try to manually zoom out using the mouse wheel

Notes

If the zoom is reset using the default double-click interaction, the background image is rendered correctly again.

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

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

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

はじめの一歩

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

plotly/plotly.js のほかの issue

plotly/plotly.js の issue をすべて見る

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

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