Opam_graph: UI: New radius calculation for layer2 deps bg that is a tighter fit
This commit is contained in:
parent
f245509c80
commit
48a6510409
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue