mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 12:37:20 +00:00
admin ui: fix data erd layout
This commit is contained in:
@@ -69,15 +69,13 @@ export function DataSchemaCanvas() {
|
||||
const nodeLayout = layoutWithDagre({
|
||||
nodes: nodes.map((n) => ({
|
||||
id: n.id,
|
||||
...EntityTableNode.getSize(n)
|
||||
...EntityTableNode.getSize(n.data)
|
||||
})),
|
||||
edges,
|
||||
graph: {
|
||||
rankdir: "LR",
|
||||
//align: "UR",
|
||||
ranker: "network-simplex",
|
||||
nodesep: 350,
|
||||
ranksep: 50
|
||||
marginx: 50,
|
||||
marginy: 50
|
||||
}
|
||||
});
|
||||
|
||||
@@ -88,12 +86,6 @@ export function DataSchemaCanvas() {
|
||||
}
|
||||
});
|
||||
|
||||
/*const _edges = edges.map((e) => ({
|
||||
...e,
|
||||
source: e.source + `-${e.target}_id`,
|
||||
target: e.target + "-id"
|
||||
}));*/
|
||||
|
||||
return (
|
||||
<ReactFlowProvider>
|
||||
<Canvas
|
||||
|
||||
Reference in New Issue
Block a user