svgo
Version:
23 lines (22 loc) • 669 B
TypeScript
export declare const name = "moveGroupAttrsToElems";
export declare 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}
* @since 0.0.1
*/
export declare const fn: import('../lib/types.js').Plugin;