UNPKG

svgo

Version:

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

16 lines (15 loc) 449 B
export const name: "removeDimensions"; export const description: "removes width and height in presence of viewBox (opposite to removeViewBox)"; /** * Remove width/height attributes and add the viewBox attribute if it's missing * * @example * <svg width="100" height="50" /> * ↓ * <svg viewBox="0 0 100 50" /> * * @author Benny Schudel * * @type {import('../lib/types.js').Plugin} */ export const fn: import("../lib/types.js").Plugin;