-
Notifications
You must be signed in to change notification settings - Fork 1
/
styles.js
101 lines (89 loc) · 1.57 KB
/
styles.js
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
let base_color="#69b3a2"
let highlight_color="#d73027"
//https://observablehq.com/@d3/color-schemes
const simil_colors = ["#fc8d59", "#fee090", "#e0f3f8", "#91bfdb", "#4575b4"]
//Scatterplot styles
let base_style={
"opacity": 0.5,
"fill":base_color,
}
let base_attr={
"r":3,
"stroke": "none",
}
//clicked element
let highlight_style={
"opacity": 1,
"fill":highlight_color,
}
let highlight_attr={
"r":8,
"stroke": "black",
"stroke-width":2,
}
//mouse over element
let over_style={
"opacity": 1,
"fill":"green",
}
let over_attr={
"r":8,
"stroke": "black",
"stroke-width":2,
}
//songs of clicked artist or artist of clicked song
let select_style={
"opacity": 1,
"fill":"#FF66D8",
}
let select_attr={
"r":7,
"stroke": "black",
"stroke-width":2,
}
let select_co_style={
"opacity": 1,
"fill":"#984ea3",
}
let select_co_attr={
"r":6,
"stroke": "black",
"stroke-width":2,
}
//similar artists/songs to clicked
let simil_style={
"opacity": 1,
"fill":"yellow",
}
let simil_attr={
"r":7,
"stroke": "black",
"stroke-width":2,
}
//songs of the same artist of clicked song
let same_artist_style={
"opacity": 0.8,
"fill":"grey",
}
let same_artist_attr={
"r":5,
"stroke": "red",
"stroke-width":2,
}
let same_co_artist_style={
"opacity": 0.8,
"fill":base_color,
}
let same_co_artist_attr={
"r":3,
"stroke": "none",
"stroke-width":2,
}
let inactive_style={
"opacity": 0.2,
"fill":"grey",
}
let simil_plot_style={
"opacity":1,
"fill":base_color
}