Dragging shape with xref "x2" results in wrong final position
未关闭
还没有人认领这个 Issue。
bug
P1
- 主要语言
- JavaScript
- 星标
- 18.3k
- 派生
- 2k
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 28
描述
In below codepen that uses plotly.js v2.23.1 is an editable shape attached to x2. When dragging and releasing the shape, it will jump to a new location, it will not stay where it was released.
You can check with newer plotly versions that the bug still exists. I chose the old version just to show that it is an old bug.
I had a brief look at the code and saw that for some reason the shape's xref is changed to 'paper'. This explains the jump, because the coordinates mean something different with xref 'paper'.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从使用 plotly.js v2.23.1 的链接 CodePen 复现开始,检查 issue 中描述的 shape 拖动处理。追踪 shape 的 xref 为何会在释放期间变为 "paper";当附加到 x2 的可编辑 shape 仍停留在其释放位置时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100