svgo
Version:
16 lines (15 loc) • 449 B
TypeScript
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;