Skip to main content

Module element

Module element 

Source

Structs§

Dimensions
ElementData
Data attached to interactive elements for tooltips.
TextStyle
Resolved typography for a single ChartElement::Text literal. All fields are already prepared as Option<String> — plug them directly into the Text enum variant.
ViewBox

Enums§

ChartElement
The output of any ChartRenderer. Framework adapters walk this tree and produce framework-specific DOM/view output.
TextAnchor
TextRole
Role of a text element, used to select the right bundle of typography fields from the active Theme.
Transform

Constants§

LEGACY_FONT_WEIGHT
Legacy font-weight for all chrome text. None because no current emission site sets font-weight at all — the attribute is absent from every pre-Phase-4 baseline SVG.
LEGACY_LABEL_FONT_SIZE
Legacy hardcoded font-size string for axis labels and tick labels.
LEGACY_LEGEND_FONT_SIZE
Legacy hardcoded font-size string for legend labels. Note this differs from LEGACY_LABEL_FONT_SIZE — the legend has historically used a slightly smaller size (11px) while all other chrome uses 12px.

Functions§

count_elements
Count elements in the tree matching a predicate.
emit_dot_halo_if_enabled
Emit a halo element to render BEFORE a dot marker, or None when theme.dot_halo_color is None. Uses theme.dot_halo_width as the stroke width. The halo radius always matches the dot’s own radius so the ring hugs the dot — bubble charts pass the per-point radius here, not a static theme default.