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

Use ’force’ option in ‘mergePaths’ only for paths with same attributes

This commit is contained in:
GreLI
2019-07-14 19:22:59 +03:00
parent e1dd31cf84
commit 023013abf9

View File

@ -58,7 +58,7 @@ exports.fn = function(item, params) {
prevPathJS = path2js(prevContentItem),
curPathJS = path2js(contentItem);
if (params.force || equalData && !intersects(prevPathJS, curPathJS)) {
if (equalData && (params.force || !intersects(prevPathJS, curPathJS))) {
js2path(prevContentItem, prevPathJS.concat(curPathJS), params);
return false;
}