mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 07:19:41 +02:00
Adding data-et and data-id for cluster in rendering-util
This commit is contained in:
@@ -177,7 +177,12 @@ const roundedWithTitle = (parent, node) => {
|
|||||||
themeVariables;
|
themeVariables;
|
||||||
|
|
||||||
// Add outer g element
|
// 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-et', 'node')
|
||||||
|
.attr('data-id', node.id);
|
||||||
|
|
||||||
// add the rect
|
// add the rect
|
||||||
const outerRectG = shapeSvg.insert('g', ':first-child');
|
const outerRectG = shapeSvg.insert('g', ':first-child');
|
||||||
|
Reference in New Issue
Block a user