同时框选连线和节点,拖拽连线时位置错误且路径点工具冲突
- Dominant language
- TypeScript
- Stars
- 6.7k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
### 问题描述
背景:
1. 连线需要vertices进行路径点修改、拖拽。
2. 连线双端无节点,通过x,y坐标生成。
### 重现链接
无
### 重现步骤
1.同时选中节点和没有source、target节点的连线,拖拽连线。
### 预期行为
预期行为:
拖拽连线,所选的所有元素可以一起拖动,拖动位置正常,且连线的工具不失效。
实际结果:
1.如果不打开showEdgeSelectionBox,就无法一起拖动。
2. 若打开showEdgeSelectionBox,vertices失效且拖拽位置有问题。
### 平台
- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox ...]
- X6 版本: [2.11.1 ...]
### 屏幕截图或视频(可选)
1. 未打开showEdgeSelectionBox
https://github.com/antvis/X6/assets/48916095/a8e53e3d-0289-42e0-b433-61ba0a1d56d5
2.打开了showEdgeSelectionBox
https://github.com/antvis/X6/assets/48916095/d2badfed-41f9-4c34-aec0-fd9e72f005cb
### 补充说明(可选)
_No response_
Contributor guide
Research direction
Reproduce the issue by selecting a node and an edge without source or target, then dragging them with showEdgeSelectionBox both disabled and enabled. Inspect the selection, edge-dragging, and vertices interaction entry points to compare movement and tool behavior. Done means the selected elements move together correctly and edge vertex editing remains usable in both configurations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100