diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-08-01 15:33:58 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-08-01 15:33:58 +0200 |
commit | c346306ae90b9ee60a279ecdaa09dd4d8f718434 (patch) | |
tree | 1b5e201aa35a45a69317621764307fc88a47d428 /pages | |
parent | 4dea73fe10aa685303bf90606e9dbd5d0fd2e392 (diff) |
fixed arrow color and added build
Diffstat (limited to 'pages')
-rw-r--r-- | pages/index.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pages/index.tsx b/pages/index.tsx index 50358c0..afb4bad 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -733,7 +733,9 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) { linkDirectionalParticles: visuals.particles ? visuals.particlesNumber : undefined, linkDirectionalArrowLength: visuals.arrows ? visuals.arrowsLength : undefined, linkDirectionalArrowRelPos: visuals.arrowsPos, - linkDirectionalArrowColor: (link) => getThemeColor(visuals.arrowsColor), + linkDirectionalArrowColor: visuals.arrowsColor + ? (link) => getThemeColor(visuals.arrowsColor) + : undefined, 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) |