mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-12-09 05:54:07 +01:00
multi rect text center
This commit is contained in:
@@ -73,7 +73,7 @@ export const multiRect = async (parent: SVGAElement, node: Node) => {
|
||||
taggedRect.attr('transform', `translate(-${rectOffset},${rectOffset})`);
|
||||
label.attr(
|
||||
'transform',
|
||||
`translate(${-(bbox.width / 2) - rectOffset}, ${h / 2 - bbox.height - rectOffset})`
|
||||
`translate(${-(bbox.width / 2) - rectOffset}, ${h / 2 - bbox.height - 4 * rectOffset})`
|
||||
);
|
||||
|
||||
updateNodeBounds(node, taggedRect);
|
||||
|
||||
Reference in New Issue
Block a user