mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-05 00:26:40 +02:00
Change string concatenation to template literal
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user