Remove logs

This commit is contained in:
Sidharth Vinod 2024-07-01 13:02:52 +05:30
parent 06377b8231
commit 771d3fcbbe
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD

View File

@ -161,22 +161,6 @@ const recursiveRender = async (_elem, graph, diagramType, id, parentCluster, sit
// await insertEdgeLabel(edgeLabels, edge);
// });
graph.edges().forEach(function (e) {
log.info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));
});
graph.nodes().map(function (v) {
const node = graph.node(v);
log.info(
'Position PRE XBX => ' + v + ': (' + node.x,
',' + node.y,
') width: ',
node.width,
' height: ',
node.height
);
});
log.info('Graph before layout:', JSON.stringify(graphlibJson.write(graph)));
log.info('############################################# XXX');
@ -184,21 +168,8 @@ const recursiveRender = async (_elem, graph, diagramType, id, parentCluster, sit
log.info('############################################# XXX');
dagreLayout(graph);
log.info('Graph after layout:', JSON.stringify(graphlibJson.write(graph)));
graph.nodes().map(function (v) {
const node = graph.node(v);
log.info(
'Position AFTER XBX => ' + v + ': (' + node.x,
',' + node.y,
') width: ',
node.width,
' height: ',
node.height
);
});
log.info('Graph after layout:', graphlibJson.write(graph));
// Move the nodes to the correct place
let diff = 0;
let { subGraphTitleTotalMargin } = getSubGraphTitleMargins(siteConfig);