Fix for e2e issue with mindmap tests, not related to timeline

This commit is contained in:
Knut Sveidqvist 2023-02-08 11:24:09 +01:00
parent 003997372e
commit 6a045db83c
1 changed files with 5 additions and 4 deletions

View File

@ -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