antvis / antvis/X6

出现 Edge 跟 Node 交叉的情况

Open
#4,087 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
6.7k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

### 问题描述

下方的示例出现 Edge 跟 Node 交叉的情况

### 重现链接

https://codesandbox.io/p/sandbox/sweet-phoebe-n9t7v2?file=%2FApp.tsx%3A17%2C19

### 重现步骤

Edge 采用的配置是
`router: { name: "manhattan" },
connector: { name: "rounded" },`

### 预期行为

希望 Edge 不会交叉到 Node 上,正如 manhattan 所描述的功能,自动避开路径上的其他节点

### 平台

- 操作系统: macOS
- 网页浏览器: Google Chrome
- X6 版本: 2.16.1

### 屏幕截图或视频(可选)

![20231211-152204](https://github.com/antvis/X6/assets/110813180/ffc20398-5f62-4a23-8ef6-d22a51b3c240)

### 补充说明(可选)

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the behavior from the linked CodeSandbox in App.tsx around lines 17–19 using X6 2.16.1, with the Manhattan router and rounded connector configuration. Trace the edge-routing behavior responsible for the edge crossing a node; done means the edge automatically avoids other nodes as expected for Manhattan routing.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
computer-graphics, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.