Skip to content

Commit

Permalink
Fix alignment curves showing up in inkscape for breakpoint svg (#4293)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Mar 14, 2024
1 parent 1dc2c32 commit 4287adb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
Expand Up @@ -59,13 +59,8 @@ const AlignmentConnections = observer(function ({
yOffset = rect.top
}

if (!assembly) {
return null
}

return (
return assembly ? (
<g
stroke={theme.palette.text.disabled}
fill="none"
data-testid={layoutMatches.length ? `${trackId}-loaded` : trackId}
>
Expand Down Expand Up @@ -133,6 +128,7 @@ const AlignmentConnections = observer(function ({
<path
d={path}
key={id}
stroke={theme.palette.text.disabled}
data-testid="r1"
strokeWidth={mouseoverElt === id ? 5 : 1}
onClick={() => {
Expand Down Expand Up @@ -160,7 +156,7 @@ const AlignmentConnections = observer(function ({
return ret
})}
</g>
)
) : null
})

export default AlignmentConnections
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Expand Up @@ -4,16 +4,17 @@ exports[`breakpoint split view 1`] = `
<g
data-testid="pacbio_hg002_breakpoints-loaded"
fill="none"
stroke="rgba(0, 0, 0, 0.38)"
>
<path
d="M 407.99312656000257 75.5 C 607.9931265600026 75.5 203.41868021525443 84.5 403.4186802152544 84.5"
data-testid="r1"
stroke="rgba(0, 0, 0, 0.38)"
stroke-width="1"
/>
<path
d="M 660.4186802152544 84.5 C 860.4186802152544 84.5 206.99312656000257 48.5 406.99312656000257 48.5"
data-testid="r1"
stroke="rgba(0, 0, 0, 0.38)"
stroke-width="1"
/>
</g>
Expand Down

Large diffs are not rendered by default.

0 comments on commit 4287adb

Please sign in to comment.