lib module

label-annotation function

#let label-annotation(
  at,
  label,
  anchor: "mid",
  label-anchor: "south",
  offset: (0, 0.45),
  boxed: false,
  label-size: 0.85em,
  label-fill: white,
  label-stroke: 0.35pt + luma(72%),
  label-inset: 2pt,
  label-radius: 2pt,
  name: none,
)

Documentation

Create a free text label without a leader line.

Parameters

  • at (any): Target anchor or CeTZ coordinate.
  • label (content): Label content.
  • anchor (str): Anchor used to resolve at. Default: "mid".
  • label-anchor (str): CeTZ anchor used to place the label. Default: "south".
  • offset (array): Relative offset from the target. Default: (0, 0.45).
  • boxed (bool): Whether to draw a background box around the label. Default: false.
  • label-size (length): Label text size. Default: 0.85em.
  • label-fill (any): Label box fill. Default: white.
  • label-stroke (any): Label box stroke. Default: 0.35pt + luma(72%).
  • label-inset (any): Label box inset. Default: 2pt.
  • label-radius (length): Label box corner radius. Default: 2pt.
  • name (str, none): Optional CeTZ object name. Default: none.

Returns

dictionary

Defined in lib.typ:376.

Source

Module
lib
Defined in
lib.typ:376
Source
View source