anvaka / anvaka/ngraph.forcelayout

layout.getGraphRect() returns wrong boundaries

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
215
Forks
33
PR merge metrics
No merged PRs in 30d

Description

Values freezes on 0 when should go below/above.

Happens when all points are right or left of Y axis.

When I count boundaries manually (when position vertices) everything works fine.
I use boundaries to count сircumscribed circle radius and to position graph in its center.

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate layout.getGraphRect() and reproduce the issue with all points positioned to the right or left of the Y axis. Compare its boundaries with the manually counted vertex positions and verify that the circumscribed-circle radius and graph centering use the resulting rectangle. Done means boundaries can extend below or above zero instead of freezing at zero.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.