Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd605b6 commit abffd7dCopy full SHA for abffd7d
plugins/moveGroupAttrsToElems.js
@@ -44,10 +44,16 @@ exports.fn = function(item) {
44
})
45
) {
46
item.content.forEach(function(inner) {
47
+ var attr = item.attr('transform');
48
if (inner.hasAttr('transform')) {
- inner.attr('transform').value = item.attr('transform').value + ' ' + inner.attr('transform').value;
49
+ inner.attr('transform').value = attr.value + ' ' + inner.attr('transform').value;
50
} else {
- inner.addAttr(item.attr('transform'));
51
+ inner.addAttr({
52
+ 'name': attr.name,
53
+ 'local': attr.local,
54
+ 'prefix': attr.prefix,
55
+ 'value': attr.value
56
+ });
57
}
58
});
59
0 commit comments