Skip to content
Snippets Groups Projects
Commit f39e4339 authored by Dennis Collaris's avatar Dennis Collaris Committed by Leonardo Christino
Browse files

fix: off-by-one color issue for nodelink vis

parent 44c8b6b0
No related branches found
No related tags found
1 merge request!315fix: off-by-one color issue for nodelink vis
Pipeline #141369 passed
...@@ -10,7 +10,7 @@ export function nodeColor(num: number) { ...@@ -10,7 +10,7 @@ export function nodeColor(num: number) {
// num = num % 4; // num = num % 4;
// const col = '#000000'; // const col = '#000000';
//let entityColors = Object.values(visualizationColors.GPSeq.colors[9]); //let entityColors = Object.values(visualizationColors.GPSeq.colors[9]);
const col = visualizationColors.GPCat.colors[14][num % visualizationColors.GPCat.colors[14].length]; const col = visualizationColors.GPCat.colors[14][(num - 1) % visualizationColors.GPCat.colors[14].length];
return binaryColor(col); return binaryColor(col);
} }
...@@ -19,7 +19,7 @@ export function nodeColorHex(num: number) { ...@@ -19,7 +19,7 @@ export function nodeColorHex(num: number) {
// const col = '#000000'; // const col = '#000000';
//let entityColors = Object.values(visualizationColors.GPSeq.colors[9]); //let entityColors = Object.values(visualizationColors.GPSeq.colors[9]);
const col = visualizationColors.GPCat.colors[14][num % visualizationColors.GPCat.colors[14].length]; const col = visualizationColors.GPCat.colors[14][(num - 1) % visualizationColors.GPCat.colors[14].length];
return col; return col;
} }
......
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