esoc-gfx 0.1.0

Low-level 2D vector graphics engine — SVG-first, zero deps by default
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: MIT OR Apache-2.0
//! Rendering layers for z-ordering elements.

/// Drawing layers, rendered bottom-to-top.
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub enum Layer {
    /// Background fills and decorations.
    Background = 0,
    /// Grid lines and axis frames.
    Grid = 1,
    /// Data series (lines, bars, scatter points, etc.).
    #[default]
    Data = 2,
    /// Annotations and labels.
    Annotations = 3,
    /// Legend overlay.
    Legend = 4,
}