Change string concatenation to template literal

This commit is contained in:
Matheus B 2024-01-16 15:36:31 -03:00
parent 8c7edebe93
commit 96ac2369b6
1 changed files with 7 additions and 9 deletions

View File

@ -184,15 +184,13 @@ const roundedWithTitle = (parent, node) => {
// Center the label
label.attr(
'transform',
'translate(' +
(node.x - bbox.width / 2) +
', ' +
(node.y -
node.height / 2 -
node.padding / 3 +
(evaluate(siteConfig.flowchart.htmlLabels) ? 5 : 3)) +
subGraphTitleTopMargin +
')'
`translate(${node.x - bbox.width / 2}, ${
node.y -
node.height / 2 -
node.padding / 3 +
(evaluate(siteConfig.flowchart.htmlLabels) ? 5 : 3) +
subGraphTitleTopMargin
})`
);
const rectBox = rect.node().getBBox();