| 82 | pub(crate) follow_reset_seen: u64, |
| 83 | pub(crate) last_point_y: Option<f64>, |
| 84 | pub(crate) prev_last_point_y: Option<f64>, |
| 85 | } |
| 86 | |
| 87 | impl Default for PlotState { |
| 88 | fn default() -> Self { |
| 89 | Self { |
| 90 | data_src_version: 0, |
| 91 | source_instance_id: None, |
| 92 | points: Arc::new([]), |
| 93 | point_colors: Arc::new([]), |
| 94 | highlighted_points: Arc::new([]), |
| 95 | series: Arc::new([]), |
| 96 | fills: Arc::new([]), |
| 97 | vlines: Arc::new([]), |
| 98 | hlines: Arc::new([]), |
| 99 | data_min: None, |
| 100 | data_max: None, |
| 101 | x_lim: None, |
| 102 | y_lim: None, |
| 103 | x_axis_scale: AxisScale::Linear, |
| 104 | y_axis_scale: AxisScale::Linear, |
| 105 | x_axis_link: None, |
| 106 | y_axis_link: None, |
| 107 | x_link_version: 0, |
| 108 | y_link_version: 0, |
| 109 | camera: Camera::new(1000, 600), |
| 110 | bounds: Rectangle::default(), |
| 111 | grid_style: GridStyle::default(), |
| 112 | cursor_position: Vec2::ZERO, |
| 113 | last_click_time: None, |
| 114 | last_click_button: None, |
| 115 | legend_collapsed: false, |
| 116 | modifiers: keyboard::Modifiers::default(), |
| 117 | press: ButtonPressState::default(), |
| 118 | selection: SelectionState::default(), |
| 119 | pan: PanState::default(), |
| 120 | drag: DragState::default(), |
| 121 | markers_version: 1, |
| 122 | lines_version: 1, |
| 123 | fills_version: 1, |
| 124 | highlight_version: 0, |
| 125 | hover_enabled: true, |
| 126 | pick_enabled: true, |
| 127 | hover_radius_px: 8.0, |
| 128 | picking: PickingState::default(), |
| 129 | crosshairs_enabled: false, |
| 130 | crosshairs_position: Vec2::ZERO, |
| 131 | x_axis_formatter: None, |
| 132 | y_axis_formatter: None, |
| 133 | x_ticks: Vec::new(), |
| 134 | y_ticks: Vec::new(), |
| 135 | prev_data_max_x: None, |