Merge branch 'release/10.8.0' of github.com:mermaid-js/mermaid into develop

This commit is contained in:
Knut Sveidqvist
2024-02-02 11:11:46 +01:00

View File

@@ -122,7 +122,10 @@ function setBlockSizes(block: Block, db: BlockDB, siblingWidth = 0, siblingHeigh
}
const columns = block.columns || -1;
const numItems = block.children.length;
let numItems = 0;
for (const child of block.children) {
numItems += child.widthInColumns || 1;
}
// The width and height in number blocks
let xSize = block.children.length;