feat: implement highlighting of mutuality
This commit is contained in:
@@ -76,7 +76,11 @@ def graph_json():
|
||||
"source": c.user,
|
||||
"target": p,
|
||||
"size": max(1.0 - 0.1 * i, 0.3),
|
||||
"data": {"relation": 2},
|
||||
"data": {
|
||||
"relation": 2,
|
||||
"origSize": max(1.0 - 0.1 * i, 0.3),
|
||||
"origFill": "#bed4ff",
|
||||
},
|
||||
}
|
||||
)
|
||||
for p in c.hate:
|
||||
@@ -86,7 +90,7 @@ def graph_json():
|
||||
"source": c.user,
|
||||
"target": p,
|
||||
"size": 0.3,
|
||||
"data": {"relation": 0},
|
||||
"data": {"relation": 0, "origSize": 0.3, "origFill": "#ff7c7c"},
|
||||
"fill": "#ff7c7c",
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user