Struct svgdom::WriteOptionsTransforms [] [src]

pub struct WriteOptionsTransforms {
    pub simplify_matrix: bool,
}

Options used during writing SVG transforms.

Fields

Simplify transform matrices into short equivalent when possible.

If not set - all transform will be saved as 'matrix'.

Examples:

matrix(1 0 0 1 10 20) -> translate(10 20)
matrix(1 0 0 1 10 0)  -> translate(10)
matrix(2 0 0 3 0 0)   -> scale(2 3)
matrix(2 0 0 2 0 0)   -> scale(2)
matrix(0 1 -1 0 0 0)  -> rotate(-90)

Default: disabled