JetBrains / JetBrains/MPS-extensions

Diagram Editor: Upon auto-layout, edges get surprising shapes and labels are not correctly repositioned to their respective edges

Open
#53 1 comment 0 reactions 0 assignees View on GitHub
bug comp.diagram
Dominant language
JetBrains MPS
Stars
88
Forks
60
Avg merge
1d 3h
Merged PRs (30d)
15

Description

From mbeddr.core created by [eugenschindler](https://github.com/eugenschindler) : mbeddr/mbeddr.core#1960

When using the _auto-layout diagram_ button (![image](https://user-images.githubusercontent.com/6429350/42809863-dcabb89e-89b6-11e8-9daf-12eb4adda615.png)):
* edges get surprising forms (with all types of unnecessary loops)
* the labels that belong to these edges do not get positioned along the edge but at seemingly random places (often overlapping other contents), which renders the resulting diagram unreadable.

Pressing the _relayout connected edges_ button (![image](https://user-images.githubusercontent.com/6429350/42810696-d3e2fc3e-89b8-11e8-9218-4ba0716df386.png)) several times improves some of the label positions, but after pressing it many times, a fixpoint is reached that does not yield the correct result (all the initial "strangely shaped" edges still have the same shape and some labels still don't have the correct position).

Expected behavior would be that all edges have consistent, "clean" (without weird loops) shapes and the labels are positioned along the edges.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in the Diagram Editor using the auto-layout diagram button, then the relayout connected edges button, and inspect the resulting edge shapes and label positions. Done means auto-layout produces clean edge paths without unnecessary loops and places every label along its respective edge.

Written by the indexing model from the issue text.

Assessment

Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.