gled 2.11.0

gled is an application for creating animations and effects on artnet or dmx installations
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::{svg::Svg, App};

impl App {
    pub fn svg(&self) -> Option<&Svg> {
        self.project
            .as_ref()
            .and_then(|project| project.svg.as_ref())
    }

    pub fn svg_mut(&mut self) -> Option<&mut Svg> {
        self.project
            .as_mut()
            .and_then(|project| project.svg.as_mut())
    }
}