From 4dea73fe10aa685303bf90606e9dbd5d0fd2e392 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Sun, 1 Aug 2021 15:29:08 +0200 Subject: added arrows --- pages/index.tsx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pages') 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) -- cgit v1.2.3