Opam_graph: UI: New radius calculation for layer2 deps bg that is a tighter fit

This commit is contained in:
rand00 2022-01-13 12:06:03 +01:00
parent f245509c80
commit 48a6510409

View file

@ -370,7 +370,7 @@ line {
let bg = let bg =
let pos = let pos =
{ x = V2.x layer2_deps_center; y = V2.y layer2_deps_center } { x = V2.x layer2_deps_center; y = V2.y layer2_deps_center }
and radius = float (List.length layer2_deps) *. 0.003 and radius = sqrt (float (List.length layer2_deps) +. 1.) *. 0.009
and text = "" and text = ""
and classes = [ "layer2_deps"; "bg" ] in and classes = [ "layer2_deps"; "bg" ] in
make_node ~pos ~radius ~text ~classes make_node ~pos ~radius ~text ~classes