Skip to main content

Module viewport

Module viewport 

Source
Expand description

Grid viewport system — hierarchical coordinate contexts.

Viewports define rectangular regions with their own coordinate systems, scales, and graphical parameters. They form a stack (push/pop) that determines how child grobs are positioned and sized.

Structs§

GridLayout
A grid layout divides a viewport into rows and columns.
Viewport
A grid viewport — a rectangular region with its own coordinate system.
ViewportStack
A stack of viewports, starting from the root (device) viewport.
ViewportTransform
The computed absolute transform for a viewport, in device cm coordinates.

Enums§

Justification
Justification for positioning within a viewport.

Functions§

compute_transform
Compute the full transform stack for a ViewportStack, returning the transform for the current (topmost) viewport.