#[derive(Debug, Clone)]
pub struct PlotViewConfig {
pub drag_threshold_px: f32,
pub pin_threshold_px: f32,
pub unpin_threshold_px: f32,
pub padding_frac: f64,
pub min_padding: f64,
pub show_legend: bool,
pub show_hover: bool,
}
impl Default for PlotViewConfig {
fn default() -> Self {
Self {
drag_threshold_px: 4.0,
pin_threshold_px: 12.0,
unpin_threshold_px: 18.0,
padding_frac: 0.05,
min_padding: 1e-6,
show_legend: true,
show_hover: true,
}
}
}