blob: 9926049fbe78f2145f60d87c8af0dabe94851973 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
define(function() {
function customColor(type) {
var color;
switch (type) {
case "person":
color = '#FCB924';
break;
case "project":
color = '#009DDC';
break;
case "skill":
color = '#62BB47';
break;
case "deliverable":
color = '#202020';
break;
case "objective":
color = '#933E99';
break;
case "empty":
color = "#080808";
break;
case "chainlink":
color = "#fff";
break;
case "bubble":
color = "rgba(0,0,0,0.2)";
break;
default:
console.log('bug: unknown type ' + type);
color = '#080808';
break;
}
return color;
}
return {
customColor: customColor,
};
});
|