11import { FFTheme } from "../FFTheme" ;
22
33export const content = `
4- My Favorite Things! .root
5- Animals .category
6- Dogs .subcategory
7- Fluffy .item
8- Spotty .item
9- Cats .subcategory
10- Whiskers .item
11- Mittens .item
12- Unicorns .subcategory
13- Food .category
14- Pizza .subcategory
15- Cheese .item
16- Pepperoni .item
17- Ice Cream .subcategory
18- Chocolate .item
19- Vanilla .item
20- Cookies .subcategory
21- Hobbies .category
22- Drawing .subcategory
23- Dancing .subcategory
24- Singing .subcategory
25- Places .category
26- Beach .subcategory
27- Mountains .subcategory
28- Space .subcategory
4+ My Favorite Things! .color_pink .size_lg
5+ Animals .color_yellow
6+ Dogs .color_blue
7+ Fluffy .color_green
8+ Spotty .color_green
9+ Cats .color_blue
10+ Whiskers .color_green
11+ Mittens .color_green
12+ Unicorns .color_blue
13+ Food .color_yellow
14+ Pizza .color_blue
15+ Cheese .color_green
16+ Pepperoni .color_green
17+ Ice Cream .color_blue
18+ Chocolate .color_green
19+ Vanilla .color_green
20+ Cookies .color_blue
21+ Hobbies .color_yellow
22+ Drawing .color_blue
23+ Dancing .color_blue
24+ Singing .color_blue
25+ Places .color_yellow
26+ Beach .color_blue
27+ Mountains .color_blue
28+ Space .color_blue
2929` ;
3030
3131export const theme : FFTheme = {
@@ -49,70 +49,77 @@ export const theme: FFTheme = {
4949
5050 curveStyle : "bezier" ,
5151 edgeWidth : 2 ,
52- edgeColor : "#4CAF50 " ,
52+ edgeColor : "#888888 " ,
5353 sourceArrowShape : "none" ,
5454 targetArrowShape : "none" ,
5555 sourceDistanceFromNode : 5 ,
5656 targetDistanceFromNode : 5 ,
5757 arrowScale : 1 ,
58- edgeTextSize : 12 ,
58+ edgeTextSize : 0.875 ,
5959 rotateEdgeLabel : false ,
6060 fixedHeight : 100 ,
6161} ;
6262
6363export const cytoscapeStyle = `
6464@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap');
6565
66- node {
67- font-weight: normal;
68- font-size: 16px;
69- text-halign: center;
70- text-valign: center;
71- color: #333333;
72- text-wrap: wrap;
73- text-max-width: 100px;
74- padding: 10px;
75- shape: ellipse;
76- width: 120px;
77- height: 60px;
78- border-width: 2px;
79- border-color: #FF69B4;
80- }
66+ $pink: #FF69B4;
67+ $yellow: #FFD700;
68+ $blue: #87CEFA;
69+ $green: #98FB98;
70+ $red: #FF6B6B;
71+ $orange: #FFB347;
72+ $purple: #DDA0DD;
73+ $grey: #D3D3D3;
8174
82- edge {
83- width: 2px;
84- line-color: #4CAF50;
85- opacity: 0.8;
86- curve-style: unbundled-bezier;
87- control-point-distances: 20 -40 20;
88- control-point-weights: 0.25 0.5 0.75;
75+ :childless.size_lg {
76+ font-size: 30;
77+ width: 150;
78+ line-height: 1;
79+ text-max-width: 130;
8980}
9081
91- .root {
92- background-color: #FF69B4;
93- border-width: 3px;
82+ :childless.color_pink {
83+ background-color: $pink;
9484 border-color: #FF1493;
95- width: 180px;
96- height: 90px;
97- font-size: 20px;
9885 color: #FFFFFF;
9986}
10087
101- .category {
102- background-color: #FFD700 ;
88+ :childless.color_yellow {
89+ background-color: $yellow ;
10390 border-color: #FFA500;
10491}
10592
106- .subcategory {
107- background-color: #87CEFA ;
93+ :childless.color_blue {
94+ background-color: $blue ;
10895 border-color: #4169E1;
10996}
11097
111- .item {
112- background-color: #98FB98 ;
98+ :childless.color_green {
99+ background-color: $green ;
113100 border-color: #32CD32;
114101}
115102
103+ :childless.color_red {
104+ background-color: $red;
105+ border-color: #CC0000;
106+ }
107+
108+ :childless.color_orange {
109+ background-color: $orange;
110+ border-color: #FF8C00;
111+ }
112+
113+ :childless.color_purple {
114+ background-color: $purple;
115+ border-color: #9B30FF;
116+ }
117+
118+ :childless.color_grey {
119+ background-color: $grey;
120+ border-color: #A9A9A9;
121+ }
122+
116123node:selected {
117124 border-width: 4px;
118125 border-color: #FF4500;
0 commit comments