MC-1730 Fix for data-et as cluster

This commit is contained in:
Ashish Jain
2024-07-08 14:52:07 +02:00
parent df7de0e796
commit d7497c179e
6 changed files with 10184 additions and 8050 deletions

View File

@@ -1,7 +1,7 @@
// @ts-nocheck File not ready to check types
import { curveLinear } from 'd3';
import ELK from 'elkjs/lib/elk.bundled.js';
import mermaid, { type LayoutData } from 'mermaid';
import { type LayoutData } from 'mermaid';
import { type TreeData, findCommonAncestor } from './find-common-ancestor.js';
const {

View File

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

View File

@@ -149,7 +149,7 @@ There are ten types of arrows currently supported:
| `-->` | Dotted line without arrow |
| `->>` | Solid line with arrowhead |
| `-->>` | Dotted line with arrowhead |
| `<<->>` | Solid line with bidirectional arrowheads (v<MERMAID_RELEASE_VERSION>+) |
| `<<->>` | Solid line with bidirectional arrowheads (v11.0.0-b.41+) |
| `<<-->>` | Dotted line with bidirectional arrowheads (v<MERMAID_RELEASE_VERSION>+) |
| `-x` | Solid line with a cross at the end |
| `--x` | Dotted line with a cross at the end. |

View File

@@ -179,8 +179,7 @@ const roundedWithTitle = async (parent, node) => {
.insert('g')
.attr('class', node.cssClasses)
.attr('id', node.id)
.attr('data-et', 'node')
.attr('data-node', 'true')
.attr('data-et', 'cluster')
.attr('data-id', node.id)
.attr('data-look', node.look);