Skip to content

Commit

Permalink
ui: add arrows for directed graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
paoloose committed Nov 27, 2023
1 parent ab200de commit 9b73f1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/components/Interlinker/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ const graph = ForceGraph()($root)
.onNodeClick(node => {
window.open(node.url, '_blank');
})
.linkDirectionalArrowLength(3)
.linkDirectionalArrowRelPos(1)
.backgroundColor('#0b0b0b')
.linkColor(() => '#9e90a6')
.linkWidth(link => highlightLinks.has(link) ? 3 : 0.5)
Expand Down

0 comments on commit 9b73f1c

Please sign in to comment.