Render graph to image and resize bondingbox
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- csharp
- Domain
- computer-graphics
Research direction
Start with the GraphRenderer and GeometryGraph flow shown in the issue, including CalculateLayout, UpdateNodePositions, and image rendering. Determine how the rendering bounds are calculated after nodes move; done means the produced image includes every moved node rather than clipping nodes outside the original bounding box.
Written by the indexing model from the issue text.
Description
Hi!
I'm trying to make image of the calculated graph and that works well.
If I manually move the Nodes to get more space in the normal GraphView the bondingbox get bigger and that works well.
But in Render mode is this not possible..., see code example below.
// Create a new renderer and set its layout algorithm
var renderer = new Microsoft.Msagl.GraphViewerGdi.GraphRenderer(temp_graph);
renderer.CalculateLayout();
UpdateNodePositions(ref temp_graph, PLC_Objects); // move nodes to absolute new center position
// this is missing !!!
renderer.Graph.GeometryGraph.UpdateBoundingBox();
// this is missing !!!
// Faulty Result.
// the produced image seize is = the calculated bondingbox,
// the nodes moved outside the calculated bondingbox is missing.
// original
//gViewer1.Graph.GeometryGraph.UpdateBoundingBox();
best regards
Undertaker911
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 319
- Avg merge
- 38m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/automatic-graph-layout
-
Difficulty 3/5 1-2 days Newbie friendliness 64/100
microsoft/automatic-graph-layout#395 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
microsoft/automatic-graph-layout#390 · 6 comments · 2 reactions · 2 assignees ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
microsoft/automatic-graph-layout#389 · 1 comment · 1 reaction ·
All issues in microsoft/automatic-graph-layout
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
t/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
ci-failure-cause test-failure
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
area:auth FE mvp P3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
klasolsson81/jobbliggaren#1788 ·