Fix for e2e issue with mindmap tests, not related to timeline
This commit is contained in:
parent
003997372e
commit
6a045db83c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue