Skip to main content

Module gpar

Module gpar 

Source
Expand description

Grid graphical parameters (gpar) — per-grob styling with inheritance.

Unlike base R’s par() which is a global state, grid’s gpar() creates immutable parameter sets that are attached to individual grobs and viewports. When a parameter is None, it inherits from the parent viewport’s gpar.

This module reuses LineType and FontFace from graphics::par to avoid duplication.

Structs§

Gpar
Grid graphical parameter set.

Enums§

LineEnd
Line end cap styles, matching R’s lineend parameter.
LineJoin
Line join styles, matching R’s linejoin parameter.

Constants§

BLACK_RGBA 🔒
TRANSPARENT_RGBA 🔒