Skip to content

Commit

Permalink
Limit minimum width of edges to 0.8px
Browse files Browse the repository at this point in the history
  • Loading branch information
FeldrinH committed Dec 8, 2023
1 parent 85905c1 commit 8385f36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/ee/ut/dendroloj/GraphGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static void initGenericGUI(double uiScale, Graph graph, Layout layout) {
" fill-mode: plain;" +
" fill-color: #0096ff;" +
"}",
Math.sqrt(uiScale), uiScale * 14, uiScale + 1,
Math.max(0.8, Math.sqrt(uiScale)), uiScale * 14, uiScale + 1,
uiScale * 28, uiScale * 14, uiScale * 3));

init(graph, layout, null);
Expand Down Expand Up @@ -80,7 +80,7 @@ public static void initCallTreeGUI(double uiScale) {
" fill-mode: plain;" +
" fill-color: #0096ff;" +
"}",
Math.sqrt(uiScale), uiScale * 12, uiScale + 1, Math.sqrt(uiScale) * 10, uiScale * 12, uiScale + 1));
Math.max(0.8, Math.sqrt(uiScale)), uiScale * 12, uiScale + 1, Math.sqrt(uiScale) * 10, uiScale * 12, uiScale + 1));

init(CallTreeLayout.graph, null, CallTreeLayout.stepSlider);
}
Expand Down

0 comments on commit 8385f36

Please sign in to comment.