mirror of
https://github.com/svg/svgo.git
synced 2025-04-19 10:22:15 +03:00
22 lines
706 B
Plaintext
22 lines
706 B
Plaintext
---
|
|
title: cleanupNumericValues
|
|
svgo:
|
|
pluginId: cleanupNumericValues
|
|
defaultPlugin: true
|
|
parameters:
|
|
floatPrecision:
|
|
description: Number of decimal places to round to, using conventional rounding rules.
|
|
default: 3
|
|
leadingZero:
|
|
description: If to trim leading zeros.
|
|
default: true
|
|
defaultPx:
|
|
description: If to remove the units when it's `px`, as this is the default if not specified.
|
|
default: true
|
|
convertToPx:
|
|
description: If to convert absolute units like `cm` and `in` to `px`.
|
|
default: true
|
|
---
|
|
|
|
Rounds numeric values, removes the unit when it's `px` as this is the default, and removes redundant spaces around and between numbers.
|