mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
5237 Subgraph handling
This commit is contained in:
parent
913dbee2e7
commit
36e4fcfdfe
@ -183,8 +183,8 @@ const recursiveRender = async (_elem, graph, diagramType, id, parentCluster, sit
|
||||
const halfPadding = node?.padding / 2 || 0;
|
||||
const labelHeight = node?.labelBBox?.height || 0;
|
||||
const offsetY = labelHeight - halfPadding || 0;
|
||||
node.y += offsetY + (parent?.offsetY / 2 || 4);
|
||||
node.offsetY = offsetY;
|
||||
node.y += offsetY + (parent?.offsetY / 2 || 0);
|
||||
// node.offsetY = offsetY;
|
||||
insertCluster(clusters, node);
|
||||
|
||||
// A cluster in the non-recursive way
|
||||
|
Loading…
x
Reference in New Issue
Block a user