diff --git a/plugins/applyTransformsShapes.js b/plugins/applyTransformsShapes.js index e16e426c9..06cc5bd6a 100644 --- a/plugins/applyTransformsShapes.js +++ b/plugins/applyTransformsShapes.js @@ -31,17 +31,18 @@ exports.fn = (root, params) => { } const computedStyle = computeStyle(stylesheet, node); - const transformStyle = computedStyle.transform; + if (computedStyle.filter) return; if ( - !transformStyle || - transformStyle.type !== 'static' || - transformStyle.value !== node.attributes.transform + computedStyle.stroke?.type === 'dynamic' || + computedStyle['stroke-width']?.type === 'dynamic' ) { return; } + + const transformStyle = computedStyle.transform; if ( - computedStyle.stroke?.type === 'dynamic' || - computedStyle['stroke-width']?.type === 'dynamic' + transformStyle?.type !== 'static' || + transformStyle.value !== node.attributes.transform ) { return; }