Skip to content
Snippets Groups Projects
Commit 4ebc3a82 authored by Hartung, Michael's avatar Hartung, Michael
Browse files

Revert "Seed toggle when genes selected - fixed"

This reverts commit 239b9ecb.
parent 239b9ecb
No related branches found
No related tags found
No related merge requests found
......@@ -105,11 +105,7 @@ export class NetworkSettings {
if (node._group) {
// @ts-ignore
node.group = node._group;
} else {
// @ts-ignore
node._group = node.group;
}
// @ts-ignore
if (node._shadow) { // @ts-ignore
node.shadow = node._shadow;
......@@ -130,21 +126,15 @@ export class NetworkSettings {
// selection on purpose after seed style, so seed style will be combined with selection style
if (isSelected) {
// @ts-ignore
// node._group = node.group;
// apply selected node style to node by merging with node style with the selected node style
node = { ...node, ...config.nodeGroups[node.group] }
node = merge(node, config.nodeGroups.selectedNode);
node._group = node.group;
// apply selected node style to node
node.group = 'selectedNode';
if (config.nodeGroups[node.group].shadow) {
node.shadow = {enabled: config.nodeGroups[node.group].shadow};
node.shadow.color = '#000000';
} else {
node.shadow = {color: '#000000'};
}
} else {
// remove hard configured attributes from node
Object.keys(config.nodeGroups.selectedNode).forEach(e => delete node[e]);
Object.keys(config.nodeGroups[node.group]).forEach(e => delete node[e]);
}
// show image if image url is given. If seed nodes are highlighted, ignore image property
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment