-
Notifications
You must be signed in to change notification settings - Fork 3
/
colorschemeday.ts
60 lines (58 loc) · 1.1 KB
/
colorschemeday.ts
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/** Standard dark mode Cytoscape color scheme.*/
import { EDGE } from "../edge";
const colorschemeday = [
{
selector: "node",
css: {
color: "black",
"border-color": "black",
},
},
{
selector: "node:selected",
css: {
"background-color": "rgb(0,0,255)",
},
},
{
selector: "node.source",
css: {
"border-color": "rgb(128,0,128)",
},
},
{
selector: "node.target",
css: {
"border-color": "rgb(0,165,165)",
},
},
{
selector: "edge[!selected]",
css: {
"line-color": function (edge) {
// highlight skos interlinks
if (String(edge.data(EDGE.PROPERTY)).substring(0, 36) === "http://www.w3.org/2004/02/skos/core#") {
return "rgb(140,130,10)";
}
return "rgb(110,110,110)";
},
},
},
{
selector: "edge.starmode",
css: {
opacity: 1,
"mid-target-arrow-color": "rgb(128,128,128)",
color: "rgb(20,20,20)", // label color
},
},
{
selector: "edge:selected,edge.highlighted",
css: {
color: "rgb(0,0,128)", // label color
"line-color": "rgb(0,0,128)",
"mid-target-arrow-color": "rgb(0,0,128)",
},
},
];
export { colorschemeday };