plotly / plotly/react-plotly.js
React-plotly Svg transform
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 1.1k
- フォーク
- 138
- 平均マージ
- 3日 2時間
- マージ済み PR(30日)
- 4
説明
I'm trying to use react-plotly inside a foreign object within an Svg, this works fine as shown here.
https://codepen.io/anon/pen/eyYjgr
However I would like to move this object using a transform.
<foreignObject id={"TestSvgFO"} width="100%" height="100%"
transform="translate(150, 0)"
xmlns="http://www.w3.org/2000/svg">
This results in sliding the view window off the plotly graph instead of moving it.
https://codepen.io/anon/pen/qpByMe
Any suggestions on a way to get it to move correctly in an Svg object with a transform?
(edited your links so they work - alexcjohnson)
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、リンクされている2つのCodePenの例で動作を再現し、動作するforeignObjectのケースとtransformされたケースを比較します。SVG foreignObject内でreact-plotlyがどのように動作するかを追跡し、報告されているviewportのずれが想定されたものか、それともバグなのかを判断します。完了条件は、plotをtransformとともに移動させる、確認済みの方法を文書化または検証することです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, react
- 領域
- data-visualization, frontend
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100