egui_charts/styles/sizing.rs
1//! Chart layout sizing: fixed desktop constants.
2//!
3//! # Usage
4//!
5//! ```
6//! use egui_charts::styles::sizing;
7//!
8//! let axis_width = sizing::chart::RIGHT_AXIS_WIDTH;
9//! ```
10
11// =============================================================================
12// Chart Layout - Fixed Desktop Constants
13// =============================================================================
14
15/// Chart layout sizing - fixed desktop padding and margins
16pub mod chart {
17 /// Default plot padding: 0px
18 pub const PADDING: f32 = 0.0;
19
20 /// Bottom padding with time labels: 35px
21 pub const BOTTOM_PADDING_WITH_TIME: f32 = 35.0;
22
23 /// Right axis width: 70px
24 pub const RIGHT_AXIS_WIDTH: f32 = 70.0;
25}