-
Notifications
You must be signed in to change notification settings - Fork 0
/
cytoscape_stylesheet.py
86 lines (85 loc) · 2.09 KB
/
cytoscape_stylesheet.py
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# This file is part of https://github.com/SpringQL/web-console which is licensed under MIT OR Apache-2.0. See file LICENSE-MIT or LICENSE-APACHE for full license details.
CYTOSCAPE_STYLESHEET = [
{
'selector': 'node',
'style': {
'label': 'data(node_label)',
'shape': 'rectangle',
'border-width': '2px',
"background-color": "#fff",
"text-background-color": "#fff",
"text-background-opacity": "0.5",
"text-valign": "center",
"text-wrap": "wrap",
"text-max-width": '8em',
}
},
{
'selector': 'node:selected',
'style': {
"background-color": "#00f",
}
},
{
'selector': 'node.source-stream',
'style': {
'shape': 'rhomboid',
}
},
{
'selector': 'node.source-task',
'style': {
'shape': 'rhomboid',
}
},
{
'selector': 'node.sink-stream',
'style': {
'shape': 'diamond',
}
},
{
'selector': 'node.sink-task',
'style': {
'shape': 'diamond',
}
},
{
'selector': 'node.host-app',
'style': {
'shape': 'vee',
}
},
{
'selector': 'edge',
'style': {
'width': '2px',
'curve-style': 'bezier', # The default curve style does not work with certain arrows
'target-arrow-shape': 'triangle',
'target-arrow-color': '#333',
"arrow-scale": 2.5,
}
},
{
'selector': 'edge.in-memory-queue',
'style': {
'line-style': 'dashed',
}
},
{
'selector': 'edge.window-queue',
'style': {
'width': '5px',
}
},
{
'selector': 'edge[queue_label]',
'style': {
"label": "data(queue_label)",
"text-rotation": "autorotate",
"text-wrap": "wrap",
"text-background-color": "#fff",
"text-background-opacity": "0.5",
}
},
]