diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-08-01 15:29:08 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-08-01 15:29:08 +0200 |
commit | 4dea73fe10aa685303bf90606e9dbd5d0fd2e392 (patch) | |
tree | e4904f0c487fbf7546c4d9116e8489a2fe917e83 /pages | |
parent | 6c190c6f494552ae8567b3fade91c059ee190bfa (diff) |
added arrows
Diffstat (limited to 'pages')
-rw-r--r-- | pages/index.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pages/index.tsx b/pages/index.tsx index 7b84222..50358c0 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -731,6 +731,9 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) { nodeCanvasObjectMode: () => 'after', linkDirectionalParticles: visuals.particles ? visuals.particlesNumber : undefined, + linkDirectionalArrowLength: visuals.arrows ? visuals.arrowsLength : undefined, + linkDirectionalArrowRelPos: visuals.arrowsPos, + linkDirectionalArrowColor: (link) => getThemeColor(visuals.arrowsColor), linkColor: (link) => { const sourceId = typeof link.source === 'object' ? link.source.id! : (link.source as string) const targetId = typeof link.target === 'object' ? link.target.id! : (link.target as string) |