UNPKG

svgo

Version:

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

19 lines (18 loc) 522 B
export declare const name = "removeViewBox"; export declare const description = "removes viewBox attribute when possible"; /** * Remove viewBox attr which coincides with a width/height box. * * @see https://www.w3.org/TR/SVG11/coords.html#ViewBoxAttribute * * @example * <svg width="100" height="50" viewBox="0 0 100 50"> * ⬇ * <svg width="100" height="50"> * * @author Kir Belevich * * @type {import('../lib/types.js').Plugin} * @since 0.0.4 */ export declare const fn: import('../lib/types.js').Plugin;