microsoft / microsoft/automatic-graph-layout

Single edge with multiple labels

Open
#179 0 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

I can see from the source code that Msagl Edge objects (Microsoft.Msagl.Core.Layout.Edge) can potentially have multiple Msagl Labels using its property labels :

image

But I also noticed a drawing Edge object (Microsoft.Msagl.Drawing.Edge) has only a single drawing Label object :

image

Also, Msagl.Label object has not Text property while a drawing Label does have.

Could you please shortly clarify how these comes together and if it was implemented as desired, then how would it be possible to have two labels associated to a single edge, one drawn to the left and the other to the right site of the edge ?

Thank you.

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 by reading Microsoft.Msagl.Core.Layout.Edge, Microsoft.Msagl.Drawing.Edge, and the related Label classes to compare how labels are represented and rendered. Determine whether multiple labels per drawing edge are supported and whether left/right placement is defined; done requires a decided behavior and corresponding API or documentation direction.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.