mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: diagram context
This commit is contained in:
@@ -1,13 +1,12 @@
|
|||||||
import dagre from "dagre";
|
import dagre from "dagre"
|
||||||
|
|
||||||
|
|
||||||
const dagreGraph = new dagre.graphlib.Graph();
|
|
||||||
dagreGraph.setDefaultEdgeLabel(() => ({}));
|
|
||||||
|
|
||||||
const nodeWidth = 172;
|
|
||||||
const nodeHeight = 200;
|
|
||||||
|
|
||||||
export const getLayoutedElements = (nodes: any, edges: any, direction = 'TB') => {
|
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';
|
const isHorizontal = direction === 'LR';
|
||||||
dagreGraph.setGraph({rankdir: direction});
|
dagreGraph.setGraph({rankdir: direction});
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,20 @@
|
|||||||
[ [ "ae" ], [ "https://rdap.nic.ae/" ] ],
|
[ [ "ae" ], [ "https://rdap.nic.ae/" ] ],
|
||||||
[ [ "ki" ], [ "https://rdap.nic.ki/" ] ],
|
[ [ "ki" ], [ "https://rdap.nic.ki/" ] ],
|
||||||
[ [ "af" ], [ "https://rdap.nic.af/" ] ],
|
[ [ "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/" ] ],
|
[ [ "ch" ], [ "https://rdap.nic.ch/" ] ],
|
||||||
[ [ "co" ], [ "https://rdap.nic.co/" ] ],
|
[ [ "co" ], [ "https://rdap.nic.co/" ] ],
|
||||||
[ [ "de" ], [ "https://rdap.denic.de/" ] ],
|
[ [ "de" ], [ "https://rdap.denic.de/" ] ],
|
||||||
|
|||||||
Reference in New Issue
Block a user