Skip to main content

esoc_chart/grammar/
coord.rs

1// SPDX-License-Identifier: MIT OR Apache-2.0
2//! Coordinate system types.
3
4/// Coordinate system for the chart.
5#[derive(Clone, Debug, Default)]
6pub enum CoordSystem {
7    /// Standard Cartesian (x right, y up).
8    #[default]
9    Cartesian,
10    /// Flipped: x and y axes swapped (horizontal bars).
11    Flipped,
12    /// Polar coordinates (r, θ) — **not yet implemented**.
13    /// Selecting this will produce a compile-time error.
14    #[doc(hidden)]
15    Polar,
16}