lib module

arrow-annotation function

#let arrow-annotation(
  from,
  to,
  label: none,
  from-anchor: "mid",
  to-anchor: "mid",
  label-anchor: "south",
  label-offset: (0, 0.45),
  mark: (end: ">>", fill: black),
  stroke: black,
  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 arrow overlay drawn after the molecule.

Parameters

  • from (any): Source anchor or CeTZ coordinate.
  • to (any): Destination anchor or CeTZ coordinate.
  • label (content, none): Optional content placed near the arrow midpoint. Default: none.
  • from-anchor (str): Anchor used when from is a named object. Default: "mid".
  • to-anchor (str): Anchor used when to is a named object. Default: "mid".
  • label-anchor (str): CeTZ anchor used to place the label. Default: "south".
  • label-offset (array): Relative label offset from the arrow midpoint. Default: (0, 0.45).
  • mark (any): CeTZ line mark configuration. Default: (end: ">>", fill: black).
  • stroke (any): CeTZ stroke configuration. Default: black.
  • 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:324.

Source

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