diff options
Diffstat (limited to 'packages/svgbob/src/options.rs')
-rw-r--r-- | packages/svgbob/src/options.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/packages/svgbob/src/options.rs b/packages/svgbob/src/options.rs new file mode 100644 index 0000000..3933398 --- /dev/null +++ b/packages/svgbob/src/options.rs @@ -0,0 +1,18 @@ + +bitflags! { + pub struct Options: u32 { + /// merge fragments that can be merged + const MERGE_FRAGMENTS = 1 << 0; + /// group fragments that are touching together + const GROUP_FRAGMENTS = 1 << 1; + /// try to make a group of fragments to rect, when applicable + const ENDORSE_FRAGMENTS = 1 << 2; + /// allow arc even they didn't form a complete circle + const QUARTERLY_ARCS = 1 << 3; + /// allow oval shapes + const ENABLE_OVAL = 1 << 4; + /// enable enhancement of lines + /// that can almost connect such as: _|_ /_ -|- + const AGGRESSIVE_ENHANCE = 1 << 5; + } +} |