lib module
legend function
#let legend(entries: none, position: top + right, inset: 8pt)Documentation
Construct a compact categorical legend.
Parameters
entries(array): Legend entries containingcolorandlabelfields. Default:none.position(any): Typst alignment used to place the legend. Default:top + right.inset(length): Distance from the selected render edge. Default:8pt.
Returns
dictionary
Defined in lib.typ:527.