Skip to content

Commit 25b1a88

Browse files
fix: changed the coordinates of the circle center, which provides the default location of the vertices
1 parent 38720be commit 25b1a88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/viewmodel/graph/CircularPlacementStrategy.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class CircularPlacementStrategy : RepresentationStrategy {
1111
println("CircularPlacementStrategy.place: there is nothing to place 👐🏻")
1212
return
1313
}
14-
val center = Pair(width / 2, height / 2)
14+
val center = Pair(width / 2, height * (3.0/5) )
1515
val angle = 2 * Math.PI / vertices.size
1616

1717
val sorted = vertices.sortedBy { it.label }

0 commit comments

Comments
 (0)