antvis / antvis/G6

[Bug]: Drag element, event onDragStart

Open
#6,734 1 comment 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 / 问题描述

Incorrect processing of the FrontElement graph function, when capturing a combo, it does not take into account the fact that the nodes lying in it may contain edges from the outside

![image](https://github.com/user-attachments/assets/c61ccbc3-a22f-42ed-b7d3-40151a6b952c)

From the function getSubgraphRelatedEdges only the array of internal is taken, not taking into account the external, because of which visually edges that stretch from other nodes to combo nodes visually go to the buildings of the background

### Reproduction link / 复现链接

https://stackblitz.com/edit/vitejs-vite-c142bq89?file=src%2FApp.vue

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

Trigger the onDragStart event on the combo and you will see how edge nodes stretching to nodes inside the combo get a smaller zIndex and fade into the background

### G6 Version / G6 版本

🆕 5.x

### OS / 操作系统

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

### Browser / 浏览器

- [X] 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 reproduction and trace the onDragStart path through FrontElement and getSubgraphRelatedEdges. Confirm the external edges connected to nodes inside the combo retain the correct zIndex and remain visible when the combo is dragged.

Written by the indexing model from the issue text.

Assessment

Tech stack
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.