MC-1730 Adding data-id, data-node, and data-et attr for dividers. Also, updated version

This commit is contained in:
Ashish Jain
2024-06-27 16:05:15 +02:00
parent 35ae14681e
commit 23180d35ac
3 changed files with 10093 additions and 7931 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@mermaid-chart/mermaid",
"version": "11.0.0-b.32",
"version": "11.0.0-b.33",
"description": "Markdown-ish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.",
"type": "module",
"module": "./dist/mermaid.core.mjs",

View File

@@ -301,7 +301,13 @@ const roundedWithTitle = async (parent, node) => {
const divider = (parent, node) => {
const { handdrawnSeed } = getConfig();
// Add outer g element
const shapeSvg = parent.insert('g').attr('class', node.cssClasses).attr('id', node.id);
const shapeSvg = parent
.insert('g')
.attr('class', node.cssClasses)
.attr('id', node.id)
.attr('data-id', node.id)
.attr('data-et', 'node')
.attr('data-node', 'true');
// add the rect
let rect;

18014
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff