UNPKG

svgo

Version:

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

34 lines (33 loc) 802 B
/** * @typedef RemoveEmptyTextParams * @property {boolean=} text * @property {boolean=} tspan * @property {boolean=} tref */ export const name: "removeEmptyText"; export const description: "removes empty <text> elements"; /** * Remove empty Text elements. * * @see https://www.w3.org/TR/SVG11/text.html * * @example * Remove empty text element: * <text/> * * Remove empty tspan element: * <tspan/> * * Remove tref with empty xlink:href attribute: * <tref xlink:href=""/> * * @author Kir Belevich * * @type {import('../lib/types.js').Plugin<RemoveEmptyTextParams>} */ export const fn: import("../lib/types.js").Plugin<RemoveEmptyTextParams>; export type RemoveEmptyTextParams = { text?: boolean | undefined; tspan?: boolean | undefined; tref?: boolean | undefined; };