mirror of
https://github.com/visioncortex/vtracer.git
synced 2025-12-07 09:36:09 -08:00
Source Release
This commit is contained in:
10
webapp/src/conversion/util.rs
Executable file
10
webapp/src/conversion/util.rs
Executable file
@@ -0,0 +1,10 @@
|
||||
use visioncortex::PathSimplifyMode;
|
||||
|
||||
pub fn path_simplify_mode(s: &str) -> PathSimplifyMode {
|
||||
match s {
|
||||
"polygon" => PathSimplifyMode::Polygon,
|
||||
"spline" => PathSimplifyMode::Spline,
|
||||
"none" => PathSimplifyMode::None,
|
||||
_ => panic!("unknown PathSimplifyMode {}", s),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user