From 6305213d41934cc4a447c0440a6f6ac4e9ebf030 Mon Sep 17 00:00:00 2001 From: Kendell R Date: Sun, 3 Dec 2023 10:28:23 -0800 Subject: [PATCH] exclude filtered shapes --- plugins/applyTransformsShapes.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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; }