mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-21 16:29:40 +02:00
Fix for e2e issue with mindmap tests, not related to timeline
This commit is contained in:
@@ -206,10 +206,11 @@ export const drawNode = function (elem, node, fullSection, conf) {
|
|||||||
const section = fullSection % (MAX_SECTIONS - 1);
|
const section = fullSection % (MAX_SECTIONS - 1);
|
||||||
const nodeElem = elem.append('g');
|
const nodeElem = elem.append('g');
|
||||||
node.section = section;
|
node.section = section;
|
||||||
nodeElem.attr(
|
let sectionClass = 'section-' + section;
|
||||||
'class',
|
if (section < 0) {
|
||||||
(node.class ? node.class + ' ' : '') + 'mindmap-node ' + ('section-' + section)
|
sectionClass += ' section-root';
|
||||||
);
|
}
|
||||||
|
nodeElem.attr('class', (node.class ? node.class + ' ' : '') + 'mindmap-node ' + sectionClass);
|
||||||
const bkgElem = nodeElem.append('g');
|
const bkgElem = nodeElem.append('g');
|
||||||
|
|
||||||
// Create the wrapped text element
|
// Create the wrapped text element
|
||||||
|
Reference in New Issue
Block a user