Skip to content

Commit

Permalink
exclude filtered shapes
Browse files Browse the repository at this point in the history
  • Loading branch information
KTibow committed Dec 3, 2023
1 parent 8828e30 commit 6305213
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions plugins/applyTransformsShapes.js
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6305213

Please sign in to comment.