Skip to content
Snippets Groups Projects
Commit 02140bc5 authored by Matthias Konitzny's avatar Matthias Konitzny :fire:
Browse files

Removed color for undefined node types.

parent e2a1cfa2
No related branches found
No related tags found
No related merge requests found
...@@ -379,7 +379,6 @@ class Graph { ...@@ -379,7 +379,6 @@ class Graph {
mapNodeColors() { mapNodeColors() {
const nodeClasses = this.getNodeClasses(); const nodeClasses = this.getNodeClasses();
this.nodeColors["undefined"] = Config.COLOR_PALETTE[0]; // Default color
for (let i = 0; i < nodeClasses.length; i++) { for (let i = 0; i < nodeClasses.length; i++) {
this.nodeColors[nodeClasses[i]] = this.nodeColors[nodeClasses[i]] =
Config.COLOR_PALETTE[i % Config.COLOR_PALETTE.length]; Config.COLOR_PALETTE[i % Config.COLOR_PALETTE.length];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment