antvis / antvis/Graphin

Need quadratic style for edge

Open
#438 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.1k
Forks
275
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug

- The official solution for more than one edges between two nodes suggested for G6 is using `quadratic` line: [https://g6.antv.vision/en/docs/manual/middle/elements/methods/multi-line](https://g6.antv.vision/en/docs/manual/middle/elements/methods/multi-line)
- However, Graphin only allows 'graphin-style': https://github.com/antvis/Graphin/blob/f578319990d545e24b340d2003522f90e3c9afdc/packages/graphin/src/Graphin.tsx#L175

- So two edges between two nodes become weird and the edges point to none of the nodes (top left on the picture):
![image](https://user-images.githubusercontent.com/7269717/188538500-e3b43ee8-6f7a-4df9-b1c3-ab32f2ac7ba7.png)

### Your Example Website or App

None

### Steps to Reproduce the Bug or Issue

- Create two edges between two nodes

### Expected behavior

Expect more than one edge between two nodes.edge

### Screenshots or Videos

_No response_

### Platform

- OS: Windows
- Browser: Chrome, React
- Version: [e.g. 91.1]

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.