You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/app/components/StateRoute/History.tsx
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -195,6 +195,8 @@ function History(props: Record<string, unknown>): JSX.Element {
195
195
.enter()
196
196
.append('path')
197
197
.attr('class','link')
198
+
.attr('stroke','#161617')
199
+
.attr('fill','none')
198
200
.attr(
199
201
//defines the path attribute (d) for each link (edge) between nodes, using a Bézier curve (C) to connect the source node's coordinates (d.x, d.y) to the midpoint between the source and target nodes and then to the target node's coordinates (d.parent.x, d.parent.y)
200
202
'd',
@@ -293,7 +295,7 @@ function History(props: Record<string, unknown>): JSX.Element {
293
295
.append('circle')
294
296
.attr('fill',(d)=>{
295
297
if(d.data.index===currLocation.index){
296
-
return'red';
298
+
return'#284b63';
297
299
}
298
300
returnd.color ? d.color : '#555';
299
301
})
@@ -303,6 +305,7 @@ function History(props: Record<string, unknown>): JSX.Element {
0 commit comments