连线工具的segments 添加鼠标交互事件
- Dominant language
- TypeScript
- Stars
- 6.7k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
### 问题描述
在节点之间创建连线成功后,我使用了自定义的连线路由算法,同时需要支持线端可拖拽功能,使用了segments发现没有鼠标交互事件,无法判断线条的拖拽与节点的位置变化的区别,导致都会使用自定义的路由算法,进而导致拖拽失效
### 重现链接
+
### 重现步骤
1.使用segments工具后支持鼠标onClick或鼠标move事件
### 预期行为
1.使用segments工具后支持鼠标onClick或鼠标move事件
### 平台
- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox ...]
- X6 版本: [2.11.1 ...]
### 屏幕截图或视频(可选)
_No response_
### 补充说明(可选)
_No response_
Contributor guide
Research direction
Start by locating the segments tool and its event-handling entry points in the X6 TypeScript source. Reproduce the custom-routing scenario described in the issue and compare segment dragging with node movement. Done means segment interactions expose the needed click or move events without triggering the wrong routing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100