Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
tyt2y3 committed Sep 26, 2024
1 parent 6b379a0 commit 8889cbc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions cmdapp/src/config.rs
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
use std::str::FromStr;
use visioncortex::PathSimplifyMode;

#[derive(Clone, Debug)]
#[derive(Debug, Clone)]
pub enum Preset {
Bw,
Poster,
Photo,
}

#[derive(Clone, Debug)]
#[derive(Debug, Clone)]
pub enum ColorMode {
Color,
Binary,
}

#[derive(Clone, Debug)]
#[derive(Debug, Clone)]
pub enum Hierarchical {
Stacked,
Cutout,
}

/// Converter config
#[derive(Clone, Debug)]
#[derive(Debug, Clone)]
pub struct Config {
pub color_mode: ColorMode,
pub hierarchical: Hierarchical,
Expand All @@ -36,7 +36,7 @@ pub struct Config {
pub path_precision: Option<u32>,
}

#[derive(Clone, Debug)]
#[derive(Debug, Clone)]
pub(crate) struct ConverterConfig {
pub color_mode: ColorMode,
pub hierarchical: Hierarchical,
Expand Down
4 changes: 2 additions & 2 deletions cmdapp/src/svg.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
use std::fmt;
use visioncortex::{Color, CompoundPath, PointF64};

#[derive(Clone, Debug)]
#[derive(Debug, Clone)]
pub struct SvgFile {
pub paths: Vec<SvgPath>,
pub width: usize,
pub height: usize,
pub path_precision: Option<u32>,
}

#[derive(Clone, Debug)]
#[derive(Debug, Clone)]
pub struct SvgPath {
pub path: CompoundPath,
pub color: Color,
Expand Down

0 comments on commit 8889cbc

Please sign in to comment.