feat: implement highlighting of mutuality

This commit is contained in:
2025-02-25 18:36:58 +01:00
parent c2d94c0400
commit fd323db6d0
3 changed files with 67 additions and 22 deletions

View File

@@ -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",
}
)