diff --git a/CHANGELOG.md b/CHANGELOG.md index 21fde0a6..2d27758e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - `--apply-transform-to-paths`. - `--allow-bigger-file`. - `--coordinates-precision`. -- `--transform-precision`. +- `--transforms-precision`. - `--properties-precision`. - Better groups with transforms ungrouping. - `--remove-text-attributes` removes `line-height` and `xml:space` now. diff --git a/data/help.txt b/data/help.txt index d3900596..9c7b68d4 100644 --- a/data/help.txt +++ b/data/help.txt @@ -83,7 +83,7 @@ Output: --simplify-transforms Simplify transform matrices [default: yes] --coordinates-precision Set coordinates numeric precision (1..12) [default: 6] --properties-precision Set properties numeric precision (1..12) [default: 6] - --transform-precision Set transform values numeric precision (1..12) [default: 8] + --transforms-precision Set transform values numeric precision (1..12) [default: 8] --paths-coordinates-precision Set path's coordinates numeric precision (1..12) [default: 8] --indent Set XML nodes indent [values: none, 0, 1, 2, 3, 4, tabs] [default: none] diff --git a/docs/src/order.txt b/docs/src/order.txt index a47be13d..8d953f16 100644 --- a/docs/src/order.txt +++ b/docs/src/order.txt @@ -47,7 +47,7 @@ trim-colors.rst simplify-transforms.rst coordinates-precision.rst properties-precision.rst -transform-precision.rst +transforms-precision.rst paths-coordinates-precision.rst indent.rst -- Other diff --git a/docs/src/transform-precision.rst b/docs/src/transforms-precision.rst similarity index 100% rename from docs/src/transform-precision.rst rename to docs/src/transforms-precision.rst diff --git a/src/cli.rs b/src/cli.rs index 46571f08..297c7a5b 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -91,7 +91,7 @@ pub enum Key { SimplifyTransforms, CoordinatesPrecision, PropertiesPrecision, - TransformPrecision, + TransformsPrecision, PathsCoordinatesPrecision, Indent, @@ -162,7 +162,7 @@ pub static KEYS: &'static KeysData<'static> = &KeysData(&[ "simplify-transforms", "coordinates-precision", "properties-precision", - "transform-precision", + "transforms-precision", "paths-coordinates-precision", "indent", @@ -281,7 +281,7 @@ pub fn prepare_app<'a, 'b>() -> App<'a, 'b> { .arg(gen_flag!(Key::SimplifyTransforms, "true")) .arg(gen_precision!(Key::CoordinatesPrecision, "6")) .arg(gen_precision!(Key::PropertiesPrecision, "6")) - .arg(gen_precision!(Key::TransformPrecision, "8")) + .arg(gen_precision!(Key::TransformsPrecision, "8")) .arg(gen_precision!(Key::PathsCoordinatesPrecision, "8")) .arg(Arg::with_name(KEYS[Key::Indent]) .long(KEYS[Key::Indent]) @@ -520,7 +520,7 @@ pub fn gen_cleaning_options(args: &ArgMatches) -> Options { opt.properties_precision = value_t!(args, KEYS[Key::PropertiesPrecision], u8).unwrap(); opt.paths_coordinates_precision = value_t!(args, KEYS[Key::PathsCoordinatesPrecision], u8).unwrap(); - opt.transform_precision = value_t!(args, KEYS[Key::TransformPrecision], u8).unwrap(); + opt.transforms_precision = value_t!(args, KEYS[Key::TransformsPrecision], u8).unwrap(); opt } diff --git a/src/options.rs b/src/options.rs index 449045f8..84323a9a 100644 --- a/src/options.rs +++ b/src/options.rs @@ -71,7 +71,7 @@ pub struct Options { // 1..12 pub paths_coordinates_precision: u8, // 1..12 - pub transform_precision: u8, + pub transforms_precision: u8, } // Should all be 'false'. @@ -116,7 +116,7 @@ impl Default for Options { coordinates_precision: 6, properties_precision: 6, paths_coordinates_precision: 8, - transform_precision: 8, + transforms_precision: 8, } } } diff --git a/src/task/round_numbers.rs b/src/task/round_numbers.rs index 4cc6c564..b2611010 100644 --- a/src/task/round_numbers.rs +++ b/src/task/round_numbers.rs @@ -31,7 +31,7 @@ pub fn round_numbers(doc: &Document, options: &Options) { let coord_precision = options.coordinates_precision as usize; let prop_precision = options.properties_precision as usize; let paths_precision = options.paths_coordinates_precision as usize; - let ts_precision = options.transform_precision as usize; + let ts_precision = options.transforms_precision as usize; for node in doc.descendants().svg() { let mut attrs = node.attributes_mut();