svgo
Version:
34 lines (33 loc) • 1.1 kB
TypeScript
export type CleanupListOfValuesParams = {
floatPrecision?: number | undefined;
leadingZero?: boolean | undefined;
defaultPx?: boolean | undefined;
convertToPx?: boolean | undefined;
};
/**
* @typedef CleanupListOfValuesParams
* @property {number=} floatPrecision
* @property {boolean=} leadingZero
* @property {boolean=} defaultPx
* @property {boolean=} convertToPx
*/
export declare const name = "cleanupListOfValues";
export declare const description = "rounds list of values to the fixed precision";
/**
* Round list of values to the fixed precision.
*
* @example
* <svg viewBox="0 0 200.28423 200.28423" enable-background="new 0 0 200.28423 200.28423">
* ⬇
* <svg viewBox="0 0 200.284 200.284" enable-background="new 0 0 200.284 200.284">
*
* <polygon points="208.250977 77.1308594 223.069336 ... "/>
* ⬇
* <polygon points="208.251 77.131 223.069 ... "/>
*
* @author kiyopikko
*
* @type {import('../lib/types.js').Plugin<CleanupListOfValuesParams>}
* @since 0.5.1
*/
export declare const fn: import('../lib/types.js').Plugin<CleanupListOfValuesParams>;