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
@@ -190,6 +190,8 @@ function History(props: Record<string, unknown>): JSX.Element {
190
190
.enter()
191
191
.append('path')
192
192
.attr('class','link')
193
+
.attr('stroke','#161617')
194
+
.attr('fill','none')
193
195
.attr(
194
196
//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)
195
197
'd',
@@ -288,7 +290,7 @@ function History(props: Record<string, unknown>): JSX.Element {
288
290
.append('circle')
289
291
.attr('fill',(d)=>{
290
292
if(d.data.index===currLocation.index){
291
-
return'red';
293
+
return'#284b63';
292
294
}
293
295
returnd.color ? d.color : '#555';
294
296
})
@@ -298,6 +300,7 @@ function History(props: Record<string, unknown>): JSX.Element {
0 commit comments