Struct svgbob::Settings[][src]

pub struct Settings {
    pub text_width: f32,
    pub text_height: f32,
    pub optimize: bool,
    pub compact_path: bool,
    pub class: Option<String>,
    pub id: Option<String>,
    pub font_family: String,
    pub font_size: f32,
    pub stroke_width: f32,
    pub stroke_color: String,
    pub background_color: String,
}

optimization options:

  1. None -> Fastest, but not correct looking (paths and text are not reduced)
  2. Fast -> Fast and correct looking (text are reduced)
  3. All -> Correct looking but slow (paths and text are reduced)

Fields

do optimization? if false then every piece are disconnected

if optmization is enabled, true means all reduceable paths will be in 1 path definition

the svg class of the generated svg

the id of the generated svg

the font family used for text (default: arial)

the font size used for text (default: 14)

stroke width for all lines (default: 2.0)

stroke color, default black

background color: default white

Methods

impl Settings
[src]

Trait Implementations

impl Debug for Settings
[src]

Formats the value using the given formatter. Read more

impl Clone for Settings
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Settings
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Settings

impl Sync for Settings