| 69 | /// Action that can be performed by a key press. |
| 70 | #[derive(Debug, Clone, Copy, PartialEq)] |
| 71 | pub enum KeyAction { |
| 72 | /// Reset/autoscale the plot. |
| 73 | Autoscale, |
| 74 | |
| 75 | /// Clear picked points. |
| 76 | ClearPick, |
| 77 | |
| 78 | /// Pan by a fraction of the current visible camera span. |
| 79 | PanBy { |
| 80 | /// Direction to pan. |
| 81 | direction: PanDirection, |
| 82 | |
| 83 | /// Fraction of the visible camera span to pan. |
| 84 | fraction: f64, |
| 85 | }, |
| 86 | } |
| 87 | |
| 88 | /// Direction for keyboard-style panning. |
| 89 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] |
nothing calls this directly
no outgoing calls
no test coverage detected