MC-1730 Updated version

This commit is contained in:
Ashish Jain
2024-06-20 14:14:32 +02:00
parent ab626fac9e
commit 82f1344af6
2 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@mermaid-chart/mermaid",
"version": "11.0.0-b.23",
"version": "11.0.0-b.25",
"description": "Markdown-ish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.",
"type": "module",
"module": "./dist/mermaid.core.mjs",
@@ -137,4 +137,4 @@
"README.md"
],
"sideEffects": false
}
}

View File

@@ -33,10 +33,10 @@ export const insertEdgeLabel = async (elem, edge) => {
log.info('abc82', edge, edge.labelType);
// Create outer g, edgeLabel, this will be positioned after graph layout
const edgeLabel = elem.insert('g').attr('class', 'edgeLabel').attr('data-id', edge.id);
const edgeLabel = elem.insert('g').attr('class', 'edgeLabel');
// Create inner g, label, this will be positioned now for centering the text
const label = edgeLabel.insert('g').attr('class', 'label');
const label = edgeLabel.insert('g').attr('class', 'label').attr('data-id', edge.id);
label.node().appendChild(labelElement);
// Center the label