diff --git a/src/clone-node.ts b/src/clone-node.ts index 57e2106d..2989fbcf 100644 --- a/src/clone-node.ts +++ b/src/clone-node.ts @@ -114,6 +114,9 @@ function cloneCSSStyle(nativeNode: T, clonedNode: T) { Math.floor(parseFloat(value.substring(0, value.length - 2))) - 0.1 value = `${reducedFont}px` } + if (name === 'd' && clonedNode.getAttribute('d')) { + value = `path(${clonedNode.getAttribute('d')})` + } targetStyle.setProperty( name, value,