File tree 2 files changed +5
-5
lines changed
Examples/ForceDirectedGraphExample/ForceDirectedGraphExample
Sources/ForceSimulation/Forces 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -26,27 +26,27 @@ struct MyRing: View {
26
26
NodeMark ( id: 3 * i + 0 )
27
27
. symbolSize ( radius: 6.0 )
28
28
. foregroundStyle ( . green)
29
- . stroke ( 3 * i+ 0 == draggingNodeID ? . black : . clear, Self . storkeStyle)
29
+ . stroke ( 3 * i+ 0 == draggingNodeID ? . secondary : . clear, Self . storkeStyle)
30
30
31
31
NodeMark ( id: 3 * i + 1 )
32
32
. symbol ( . pentagon)
33
33
. symbolSize ( radius: 10 )
34
34
. foregroundStyle ( . blue)
35
- . stroke ( 3 * i+ 1 == draggingNodeID ? . black : . clear, Self . storkeStyle)
35
+ . stroke ( 3 * i+ 1 == draggingNodeID ? . secondary : . clear, Self . storkeStyle)
36
36
37
37
NodeMark ( id: 3 * i + 2 )
38
38
. symbol ( . circle)
39
39
. symbolSize ( radius: 6.0 )
40
40
. foregroundStyle ( . yellow)
41
- . stroke ( 3 * i+ 2 == draggingNodeID ? . black : . clear, Self . storkeStyle)
41
+ . stroke ( 3 * i+ 2 == draggingNodeID ? . secondary : . clear, Self . storkeStyle)
42
42
43
43
LinkMark ( from: 3 * i + 0 , to: 3 * i + 1 )
44
44
LinkMark ( from: 3 * i + 1 , to: 3 * i + 2 )
45
45
LinkMark ( from: 3 * i + 0 , to: 3 * ( ( i + 1 ) % 20 ) + 0 )
46
46
LinkMark ( from: 3 * i + 1 , to: 3 * ( ( i + 1 ) % 20 ) + 1 )
47
47
LinkMark ( from: 3 * i + 2 , to: 3 * ( ( i + 1 ) % 20 ) + 2 )
48
48
}
49
- . stroke ( . black , Self . storkeStyle)
49
+ . stroke ( . secondary , Self . storkeStyle)
50
50
51
51
} force: {
52
52
. manyBody( strength: - 15 )
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ extension Kinetics {
22
22
lookup. count [ l. source, default: 0 ] ,
23
23
lookup. count [ l. target, default: 0 ]
24
24
)
25
- ) + 1 )
25
+ ) )
26
26
}
27
27
}
28
28
}
You can’t perform that action at this time.
0 commit comments