Skip to content

Commit

Permalink
fix: Place edges under nodes [PT-187516581]
Browse files Browse the repository at this point in the history
This fixes the node selection problem.
  • Loading branch information
dougmartin committed Sep 26, 2024
1 parent c762418 commit 6e9452a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,7 @@ export const Graph = (props: Props) => {
.data(d3Graph.edges)
.enter()
.append("line")
.lower() // add below nodes
.attr("class", lineBackgroundClass)
.attr("stroke", "#000")
.attr("stroke-opacity", 0)
Expand All @@ -633,6 +634,7 @@ export const Graph = (props: Props) => {
.data(d3Graph.edges)
.enter()
.append("line")
.lower() // add below nodes
.attr("class", "edge")
.attr("stroke", "#999")
.attr("stroke-opacity", lineAndLoopOpacity)
Expand All @@ -657,6 +659,7 @@ export const Graph = (props: Props) => {
.data(d3Graph.nodes.filter(n => n.loops))
.enter()
.append("path")
.lower() // add below nodes
.attr("class", "loop-background")
.attr("d", nodeLoopPath)
.attr("stroke", "#000")
Expand All @@ -674,6 +677,7 @@ export const Graph = (props: Props) => {
.data(d3Graph.nodes.filter(n => n.loops))
.enter()
.append("path")
.lower() // add below nodes
.attr("class", "loop")
.attr("d", nodeLoopPath)
.attr("stroke", "#999")
Expand Down

0 comments on commit 6e9452a

Please sign in to comment.