1
0
mirror of https://github.com/svg/svgo.git synced 2025-07-29 20:21:14 +03:00

moveGroupAttrsToElems now applies transforms to sub-groups & text.

This commit is contained in:
Nathan Muir
2013-08-27 08:40:07 +10:00
committed by deepsweet
parent 633c981304
commit d0a4e91e95
4 changed files with 50 additions and 3 deletions

View File

@ -1,10 +1,13 @@
'use strict';
exports.type = 'perItemReverse';
exports.type = 'perItem';
exports.active = true;
var pathElems = require('./_collections.js').pathElems;
var pathElems = require('./_collections.js').pathElems.slice();
pathElems.push('g');
pathElems.push('text');
/**
* Move group attrs to the content elements.