antvis / antvis/G6

[Bug]: 5.0.48中 type: "indented" 缩放后展开子节点,节点位置错乱

Open
#7,498 2 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 / 问题描述

官方示例中,缩放画布之后再展开子节点会导致该节点的位置与其他节点位置重合

### Reproduction link / 复现链接

https://g6.antv.antgroup.com/examples/scene-case/default#fund-flow

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

"next": "14.2.24",
"@antv/g6": "5.0.48",

Image

缩放之后**不拖动画布**的情况下点击 「Name3」 展开子节点会出现如图情况

Image

先缩放再**拖动画布**这种情况下,展开子节点后错位的情况 「时好时坏」

Image

### Version / 版本

🆕 5.x

### OS / 操作系统

- [x] macOS
- [ ] 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 fund-flow example at https://g6.antv.antgroup.com/examples/scene-case/default#fund-flow using Next 14.2.24 and @antv/g6 5.0.48. Reproduce the issue by zooming, optionally dragging the canvas, and expanding Name3; done means the expanded children retain correct, non-overlapping positions in both interaction sequences.

Written by the indexing model from the issue text.

Assessment

Tech stack
next.js, typescript
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.