diff --git a/assets/components/tracking/watchlist/diagram/getLayoutedElements.tsx b/assets/components/tracking/watchlist/diagram/getLayoutedElements.tsx index b5cc7a1..456f9db 100644 --- a/assets/components/tracking/watchlist/diagram/getLayoutedElements.tsx +++ b/assets/components/tracking/watchlist/diagram/getLayoutedElements.tsx @@ -1,13 +1,12 @@ -import dagre from "dagre"; - - -const dagreGraph = new dagre.graphlib.Graph(); -dagreGraph.setDefaultEdgeLabel(() => ({})); - -const nodeWidth = 172; -const nodeHeight = 200; +import dagre from "dagre" export const getLayoutedElements = (nodes: any, edges: any, direction = 'TB') => { + const dagreGraph = new dagre.graphlib.Graph() + dagreGraph.setDefaultEdgeLabel(() => ({})) + + const nodeWidth = 172 + const nodeHeight = 200 + const isHorizontal = direction === 'LR'; dagreGraph.setGraph({rankdir: direction}); diff --git a/config/app/custom_rdap_servers.example.yaml b/config/app/custom_rdap_servers.example.yaml index c8e652f..9032c68 100644 --- a/config/app/custom_rdap_servers.example.yaml +++ b/config/app/custom_rdap_servers.example.yaml @@ -24,7 +24,20 @@ [ [ "ae" ], [ "https://rdap.nic.ae/" ] ], [ [ "ki" ], [ "https://rdap.nic.ki/" ] ], [ [ "af" ], [ "https://rdap.nic.af/" ] ], - [ [ "ag", "me", "bz", "gi", "pr", "sc", "vc" ], [ "https://rdap.identitydigital.services/rdap/" ] ], + [ + [ + "ag", + "me", + "bz", + "gi", + "pr", + "sc", + "vc" + ], + [ + "https://rdap.identitydigital.services/rdap/" + ] + ], [ [ "ch" ], [ "https://rdap.nic.ch/" ] ], [ [ "co" ], [ "https://rdap.nic.co/" ] ], [ [ "de" ], [ "https://rdap.denic.de/" ] ],