UNPKG

svgo

Version:

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

22 lines (21 loc) 627 B
export const name: "moveGroupAttrsToElems"; export const description: "moves some group attributes to the content elements"; /** * Move group attrs to the content elements. * * @example * <g transform="scale(2)"> * <path transform="rotate(45)" d="M0,0 L10,20"/> * <path transform="translate(10, 20)" d="M0,10 L20,30"/> * </g> * ⬇ * <g> * <path transform="scale(2) rotate(45)" d="M0,0 L10,20"/> * <path transform="scale(2) translate(10, 20)" d="M0,10 L20,30"/> * </g> * * @author Kir Belevich * * @type {import('../lib/types.js').Plugin} */ export const fn: import("../lib/types.js").Plugin;