app.components.metadata

SVG rendering components for metadata column overlays.

Contains StickyHeader, MetadataColumn, and MetadataTable — the components that render CSV/TSV metadata alongside the phylogenetic tree. All data arrives via props; these components do not access React context.

MetadataColumn

(MetadataColumn props__5701__auto__)

MetadataColumn*

(MetadataColumn* props__5701__auto__)

Renders one column of metadata values as SVG text elements, with an in-SVG header label and subtle cell borders.

Each value is vertically aligned with its corresponding tree tip.

Props (see ::app.specs/metadata-column-props): - :tips - positioned leaf nodes with merged :metadata - :x-offset - horizontal pixel position for this column - :y-scale - vertical spacing multiplier - :column-key - keyword identifying which metadata field to display - :column-label - display label for the column header - :cell-height - height of each cell (typically = y-scale) - :col-width - total width for this column (including spacing)

MetadataTable

(MetadataTable props__5701__auto__)

MetadataTable*

(MetadataTable* props__5701__auto__)

Renders all metadata columns as a group, computing per-column offsets.

Props (see ::app.specs/metadata-table-props): - :active-cols - vector of column config maps - :tips - positioned leaf nodes with merged metadata - :start-offset - pixel x where metadata columns begin - :y-scale - vertical tip spacing - :col-spacing - extra horizontal gap between columns

StickyHeader

(StickyHeader props__5701__auto__)

StickyHeader*

(StickyHeader* props__5701__auto__)

Renders a sticky header row displaying metadata column labels.

Props (see :app.specs/sticky-header-props): - :columns - seq of column config maps with :key, :label, :width - :start-offset - pixel offset where metadata columns begin - :col-spacing - extra horizontal gap between columns (default 0) - :max-depth - maximum x-coordinate in the tree - :x-scale - horizontal scaling factor (pixels per branch-length unit) - :scale-origin - :tips or :root for scale labeling - :left-shift-px - horizontal shift applied to tree + metadata overlay - :set-left-shift-px! - setter for left shift - :tree-metadata-gap-px - extra spacing between tree and metadata - :set-tree-metadata-gap-px! - setter for tree-metadata gap - :set-active-cols! - setter for column configs - :width - optional width for the sticky header