UNPKG

svgo

Version:

SVGO is a Node.js library and command-line application for optimizing vector images.

39 lines (38 loc) 1.36 kB
export type RemoveHiddenElemsParams = { isHidden?: boolean | undefined; displayNone?: boolean | undefined; opacity0?: boolean | undefined; circleR0?: boolean | undefined; ellipseRX0?: boolean | undefined; ellipseRY0?: boolean | undefined; rectWidth0?: boolean | undefined; rectHeight0?: boolean | undefined; patternWidth0?: boolean | undefined; patternHeight0?: boolean | undefined; imageWidth0?: boolean | undefined; imageHeight0?: boolean | undefined; pathEmptyD?: boolean | undefined; polylineEmptyPoints?: boolean | undefined; polygonEmptyPoints?: boolean | undefined; }; export declare const name = "removeHiddenElems"; export declare const description = "removes hidden elements (zero sized, with absent attributes)"; /** * Remove hidden elements with disabled rendering: * - display="none" * - opacity="0" * - circle with zero radius * - ellipse with zero x-axis or y-axis radius * - rectangle with zero width or height * - pattern with zero width or height * - image with zero width or height * - path with empty data * - polyline with empty points * - polygon with empty points * * @author Kir Belevich * * @type {import('../lib/types.js').Plugin<RemoveHiddenElemsParams>} * @since 0.0.1 */ export declare const fn: import('../lib/types.js').Plugin<RemoveHiddenElemsParams>;