SVGOptimizationOptions class

SVGOptimizationOptions class

SVGOptimizationOptions is a class for storing options for optimizing SVG documents.

The SVGOptimizationOptions type exposes the following members:

Constructors

ConstructorDescription
initInitializes a new instance of the SVGOptimizationOptions class.

Properties

PropertyDescription
collapse_groupsGets or sets the option to collapse excess groups. It is ’true’ by default.
remove_descriptionsGets or sets the option to remove only editors content or empty elements. It is ’true’ by default.
remove_empty_attributesGets or sets the option to remove attributes with empty values. It is ’true’ by default.
remove_empty_containersGets or sets the option to remove empty containers. It is ’true’ by default.
remove_empty_textGets or sets the option to remove empty Text elements. It is ’true’ by default.
remove_hidden_elementsGets or sets the option to remove elements that are not visible during rendering. It is ’true’ by default.
remove_metadataGets or sets the option to remove metadata. It is ’true’ by default.
remove_unused_namespacesGets or sets the option to remove the declaration of unused namespaces from the SVG element
that are not used in elements or attributes. It is ’true’ by default.
remove_unused_defsGets of sets the option to remove the content of defs that are not displayed directly without identifiers. It is ’true’ by default.
remove_useless_stroke_and_fillGets of sets the option to remove unused stroke and fill attributes. It is ’true’ by default.
clean_list_of_valuesGets or sets the option for rounding to 3 decimal places of list numeric values in attributes. It is ’true’ by default.
remove_indents_and_line_breaksGets or sets the option to remove line indents and breaks. It is ’true’ by default.
path_optimization_optionsGets or sets the option SVGPathOptimizationOptions.
If this option is null, then path element optimization will not be performed.

See Also