multi rect text center

This commit is contained in:
saurabhg772244
2024-08-12 19:50:53 +05:30
parent 31b8707819
commit 3cd5244949

View File

@@ -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);