Skip to content

Commit 5d454a4

Browse files
committed
Add more controls to graph
1 parent b32cce3 commit 5d454a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/graph/RelationsGraph.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { buildGraphForReferences, getLayoutedElements, ResultPID } from "@/compo
22
import {
33
Background,
44
BackgroundVariant,
5+
Controls,
6+
MiniMap,
57
NodeProps,
68
ReactFlow,
79
useEdgesState,
@@ -83,6 +85,8 @@ export function RelationsGraph(props: { base: string; referencedBy: string[]; re
8385
proOptions={{ hideAttribution: true }}
8486
>
8587
<Background color="hsl(var(--rfs-border))" variant={BackgroundVariant.Lines} />
88+
<Controls />
89+
<MiniMap zoomable pannable />
8690
</ReactFlow>
8791
)
8892
}

0 commit comments

Comments
 (0)