mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-21 09:16:41 +02:00
MC-1730 Adding data-id, data-node, and data-et attr for dividers. Also, updated version
This commit is contained in:
@@ -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",
|
||||
|
@@ -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
18014
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user