From f5bb766a580a806e8c95213ff32692fc1d841c64 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 | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/plugins/applyTransformsShapes.js b/plugins/applyTransformsShapes.js index e16e426c9..176b36ddc 100644 --- a/plugins/applyTransformsShapes.js +++ b/plugins/applyTransformsShapes.js @@ -31,17 +31,19 @@ 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 || + transformStyle.type !== 'static' || + transformStyle.value !== node.attributes.transform ) { return; }