//! Cross-module constants.
// Persistence
pub const CURRENT_STATE_VERSION: u8 = 2;
pub const PRIMARY_WINDOW_KEY: &str = "primary";
pub const STATE_FILE: &str = "windows.ron";
// Scale factor
/// Fallback scale factor when the monitor cannot be determined.
pub const DEFAULT_SCALE_FACTOR: f64 = 1.0;
/// Threshold for considering two scale factors equal.
///
/// Accounts for floating-point imprecision when comparing scale factors.
/// A difference less than this epsilon is considered negligible.
pub const SCALE_FACTOR_EPSILON: f64 = 0.01;
// Settle timing
/// Duration (in seconds) that all values must remain stable before declaring success.
pub const SETTLE_STABILITY_SECS: f32 = 0.2;
/// Maximum total duration (in seconds) to wait for values to stabilize.
pub const SETTLE_TIMEOUT_SECS: f32 = 1.0;