mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-12-10 22:44:11 +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})`);
|
taggedRect.attr('transform', `translate(-${rectOffset},${rectOffset})`);
|
||||||
label.attr(
|
label.attr(
|
||||||
'transform',
|
'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);
|
updateNodeBounds(node, taggedRect);
|
||||||
|
|||||||
Reference in New Issue
Block a user