Skip to main content

Module render

Module render 

Source

Modules§

backend
corner_layout
Shared geometry for stacking panel-corner “furniture” clear of each other — annotation_scale()/annotation_attribution()’s scale bar and attribution text, bivariate_legend()’s square guide, and an ordinary legend placed with legend_position_inside — so two of them anchored to the same or adjacent corners don’t draw on top of one another (sipemu/ggplot-rs#273).
direct_labels
Direct labels (#543, R’s directlabels / a ggrepel label at the last point): instead of a colour legend, each line’s colour group is named at its end, in its own colour, in the band right of the panel that a right legend would take. Labels never overlap: they are pushed apart vertically (in order of their line’s end), then kept inside the panel’s height; a label moved away from its line’s end gets a short leader to it.
layout
plotters_backend
renderer
rich
Rich text labels (#413, ggtext’s element_markdown()): a small Markdown / HTML subset in titles, axis titles, strip and legend text when Theme::rich_text is on.
svg_backend
A self-contained SVG DrawBackend — a second backend (no plotters), proving the DrawBackend abstraction: the same PlotRenderer drives it.
text
Text-metric helpers for axis-label fit (B3-1): ggplot-rs owns the outer-label-overflow and check.overlap logic centrally, instead of a downstream consumer post-processing rendered SVG (the old approach had to re-parse <text> elements out of the markup).

Structs§

Rect
A rectangle in pixel coordinates.

Enums§

RenderError
Rendering error type.