microsoft / microsoft/automatic-graph-layout

Why having space when inserting edge

Open
#319 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
1.5k
Forks
319
Avg merge
38m
Merged PRs (30d)
1

Description

Hi everyone,
I am in a product that needs visualization from the MsAgl library.
I used sample source code as reference and in the Editing, there is a strange thing like the below image.
When I insert an edge using editor, there is a space between the node and added edge. This space just disappears when I use auto-layout function on the editor. I expect the added edge always be connected to the node without space (gap).
Could you help me with this issue? How to modify code or which part of code is related to this issue.
Thank you very much.

askMsAgl

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the GraphLayout/Samples/Editing sample and reproduce the gap when inserting an edge. Compare that behavior with the editor's auto-layout path to identify where endpoint positions are handled. Done means newly inserted edges connect to their nodes without a gap before auto-layout runs.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
computer-graphics
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.