antvis / antvis/Graphin

Animation broken when adding new node on new Graphin projects

Open
#467 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
1.1k
Forks
275
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug

When creating a new Graphin project with default dependencies, the graph layout animation won't work when adding new nodes to an existing graph.

### Your Example Website or App

https://codesandbox.io/p/github/nicocti/bp-graph/csb-tcm10s/draft/hungry-keller?file=%2FREADME.md

### Steps to Reproduce the Bug or Issue

1. Start a new React/Graphin project with latest dependencies
2. Handle node creation in the graph component
3. Test it

### Expected behavior

On previous Graphin version, adding a new node to an existing graph would use a smooth animation while layout refresh.

### Screenshots or Videos

_No response_

### Platform

- OS: Linux
- Browser: Chrome & Firefox
- Version: >100

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox and reproduce the issue in a new React/Graphin project using the latest dependencies. Trace node creation and the graph layout refresh, then verify that adding a node to an existing graph again produces the smooth animation seen in earlier Graphin versions.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.