Returns the interactive diagram the Pedigree Browser's Diagram tab shows,
as a visNetwork widget, for a layout made by
makePedigreeMatingLayout. The Shiny application draws its
Diagram with this function, so a script that calls it gets the same
picture: the sex symbols at the layout's fixed positions, the legend (the
five sex symbols, one row per affected condition or a single
“Affected” row, “Deceased”, and the dashed repeat-appearance
and twin lines), each multi-condition symbol split into its colored
sections, the slash through each deceased animal's symbol, a canvas that
grows with the number of conditions, the Export Diagram (PNG)
button, a “Select by id” box that lists the animals, and the
highlight on hover. The sections and the slash are painted by a drawing
script inside the widget, so they appear wherever the widget is shown: in the
RStudio viewer, in an R Markdown or Quarto document, or in a web page saved
with htmlwidgets::saveWidget().