mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Remove logs
This commit is contained in:
parent
06377b8231
commit
771d3fcbbe
@ -161,22 +161,6 @@ const recursiveRender = async (_elem, graph, diagramType, id, parentCluster, sit
|
|||||||
// await insertEdgeLabel(edgeLabels, edge);
|
// 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('Graph before layout:', JSON.stringify(graphlibJson.write(graph)));
|
||||||
|
|
||||||
log.info('############################################# XXX');
|
log.info('############################################# XXX');
|
||||||
@ -184,21 +168,8 @@ const recursiveRender = async (_elem, graph, diagramType, id, parentCluster, sit
|
|||||||
log.info('############################################# XXX');
|
log.info('############################################# XXX');
|
||||||
|
|
||||||
dagreLayout(graph);
|
dagreLayout(graph);
|
||||||
|
|
||||||
log.info('Graph after layout:', JSON.stringify(graphlibJson.write(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
|
// Move the nodes to the correct place
|
||||||
let diff = 0;
|
let diff = 0;
|
||||||
let { subGraphTitleTotalMargin } = getSubGraphTitleMargins(siteConfig);
|
let { subGraphTitleTotalMargin } = getSubGraphTitleMargins(siteConfig);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user