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 std::str::FromStr;
use visioncortex::PathSimplifyMode; use visioncortex::PathSimplifyMode;
#[derive(Clone, Debug)] #[derive(Debug, Clone)]
pub enum Preset { pub enum Preset {
Bw, Bw,
Poster, Poster,
Photo, Photo,
} }
#[derive(Clone, Debug)] #[derive(Debug, Clone)]
pub enum ColorMode { pub enum ColorMode {
Color, Color,
Binary, Binary,
} }
#[derive(Clone, Debug)] #[derive(Debug, Clone)]
pub enum Hierarchical { pub enum Hierarchical {
Stacked, Stacked,
Cutout, Cutout,
} }
/// Converter config /// Converter config
#[derive(Clone, Debug)] #[derive(Debug, Clone)]
pub struct Config { pub struct Config {
pub color_mode: ColorMode, pub color_mode: ColorMode,
pub hierarchical: Hierarchical, pub hierarchical: Hierarchical,
@@ -36,7 +36,7 @@ pub struct Config {
pub path_precision: Option<u32>, pub path_precision: Option<u32>,
} }
#[derive(Clone, Debug)] #[derive(Debug, Clone)]
pub(crate) struct ConverterConfig { pub(crate) struct ConverterConfig {
pub color_mode: ColorMode, pub color_mode: ColorMode,
pub hierarchical: Hierarchical, pub hierarchical: Hierarchical,

View File

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