lini 1.0.0-alpha.0

Pretty diagrams, charts, and technical drawings from plain text, with fine-grained control. Compiles to clean, themeable SVG.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Chart look metrics [SPEC 14] — the type scale and paint constants every
//! chart family shares, in one home.

/// The chart title.
// `pub(crate)`: the `.lini-chart-title` rule derives its px from this, the
// same one-source pattern as `messages::LABEL_SIZE` [SPEC 17].
pub(crate) const TITLE_SIZE: f64 = 14.0;
/// An axis title — a step under the chart title.
pub(super) const AXIS_TITLE_SIZE: f64 = 11.0;
/// Tick labels, legend entries, band / mark labels.
pub(super) const LABEL_SIZE: f64 = 11.0;
/// An area / radar body's fill opacity, so gridlines and overlaps still read.
pub(super) const AREA_OPACITY: f64 = 0.82;
/// The tick count a "nice" step aims for (`range / TICK_TARGET`).
pub(super) const TICK_TARGET: f64 = 5.0;