antvis / antvis/G6

[Bug]: edge设置endArrowOffset之后,label位置发生偏移

Open
#7,089 0 comments 0 reactions 0 assignees View on GitHub
bug 🐛
Dominant language
TypeScript
Stars
12.3k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug / 问题描述

设置了箭头偏移endArrowOffset之后,label也发生了偏移:

![Image](https://github.com/user-attachments/assets/fec8e00d-f835-41e9-9712-40e2b5406f80)
没有设置是正常的:

![Image](https://github.com/user-attachments/assets/141cd8e4-0e70-47b1-8cb8-1f1d89211f1e)

### Reproduction link / 复现链接

https://stackblitz.com/edit/react-gxxq1caj?file=index.js

### Steps to Reproduce the Bug or Issue / 重现步骤

_No response_

### Version / 版本

Please select / 请选择

### OS / 操作系统

- [ ] macOS
- [ ] Windows
- [ ] Linux
- [ ] Others / 其他

### Browser / 浏览器

- [ ] Chrome
- [ ] Edge
- [ ] Firefox
- [ ] Safari (Limited support / 有限支持)
- [ ] IE (Nonsupport / 不支持)
- [ ] Others / 其他

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked StackBlitz React reproduction in index.js and compare edge label placement with and without endArrowOffset. Trace the G6 edge rendering or label-layout entry point responsible for the discrepancy, then verify that changing the arrow offset no longer moves the label unexpectedly.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.