Tweaks
Some checks failed
Rust / build (push) Has been cancelled

This commit is contained in:
Chris Tsang
2024-09-26 12:59:45 +01:00
parent 6b379a02ef
commit 8889cbc7ea
2 changed files with 7 additions and 7 deletions

View File

@@ -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,
@@ -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,

View File

@@ -1,7 +1,7 @@
use std::fmt;
use visioncortex::{Color, CompoundPath, PointF64};
#[derive(Clone, Debug)]
#[derive(Debug, Clone)]
pub struct SvgFile {
pub paths: Vec<SvgPath>,
pub width: usize,
@@ -9,7 +9,7 @@ pub struct SvgFile {
pub path_precision: Option<u32>,
}
#[derive(Clone, Debug)]
#[derive(Debug, Clone)]
pub struct SvgPath {
pub path: CompoundPath,
pub color: Color,