Skip to content

Commit 08fde99

Browse files
committed
Update themes file with new version number
1 parent 1788ca6 commit 08fde99

File tree

1 file changed

+102
-0
lines changed
  • docs/articles/GCVieweR_files/GCVieweR-0.1.2/lib/GCVieweR-0.1.2

1 file changed

+102
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
const themes = {
2+
preset: {
3+
titleOptions: {
4+
titleFont: {
5+
size: "16px",
6+
style: "normal",
7+
weight: "bold",
8+
fill: "black",
9+
decoration: "normal",
10+
family: "sans-serif",
11+
cursor: "default",
12+
},
13+
subtitleFont: {
14+
fontSize: "12px",
15+
fontWeight: "bold",
16+
fontFamily: "sans-serif",
17+
cursor: "default",
18+
fill: "black"
19+
}
20+
},
21+
footerOptions: {
22+
},
23+
clusterLabelOptions: {
24+
x: 0,
25+
y: 0,
26+
position: 'left',
27+
wrapLabel: true,
28+
wrapOptions: {},
29+
fontSize: "12px",
30+
fontStyle: "normal",
31+
fontWeight: "bold",
32+
fontFamily: "sans-serif",
33+
cursor: "default"
34+
},
35+
sequenceOptions: {
36+
stroke: "grey",
37+
y: 50,
38+
start: null,
39+
stop: null,
40+
strokeWidth: 1,
41+
marker: {
42+
markerHeight: 10,
43+
stroke: "grey",
44+
strokeWidth: 1,
45+
//tiltAmount: -5,
46+
gap: 0
47+
}
48+
},
49+
markerOptions: {
50+
x: 1,
51+
y: 50,
52+
start: null,
53+
stop: null,
54+
size: 15,
55+
colorScheme: null,
56+
customColors: null,
57+
marker: "arrow",
58+
cursor: "default",
59+
stroke: "black",
60+
itemStyle: []
61+
},
62+
genesOptions: {
63+
x: 10,
64+
y: 50,
65+
start: null,
66+
stop: null,
67+
colorScheme: null,
68+
strokeWidth: 1,
69+
cursor: "default",
70+
itemStyle: []
71+
},
72+
tooltipOptions: {
73+
backgroundColor: "white",
74+
triggers: ["markers", "genes", "labels"],
75+
formatter: "<b>Start:</b> {start}<br><b>Stop: {stop}</b>",
76+
opacity: 0,
77+
position: "absolute",
78+
padding: "8px",
79+
borderRadius: "4px",
80+
border: "1px solid rgba(0,0,0,0.1)",
81+
boxShadow: "0 4px 6px rgba(0, 0, 0, 0.1)",
82+
pointerEvents: "none",
83+
fontFamily: "Arial, sans-serif",
84+
fontSize: "12px",
85+
zIndex: 1000,
86+
color: "#333",
87+
lineHeight: "1.5"
88+
}
89+
}
90+
};
91+
92+
function getMarker(markerName, xPos, yPos, size, height = null) {
93+
94+
height = height === null ? size : height;
95+
96+
switch (markerName) {
97+
case "arrow":
98+
return `M ${xPos} ${yPos - height/2} L ${xPos + size/2} ${yPos + height/2} L ${xPos - size/2} ${yPos + height/2} Z`;
99+
default:
100+
return ""; // Default empty path
101+
}
102+
}

0 commit comments

Comments
 (0)