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

View File

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