From 92c7d3257fa770729562bc4d7958b7ec30f5383f Mon Sep 17 00:00:00 2001 From: Steve Ruiz Date: Tue, 11 May 2021 09:44:26 +0100 Subject: [PATCH] fix: Exporting freedraw with color to svg (#3565) --- src/renderer/renderElement.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/renderElement.ts b/src/renderer/renderElement.ts index a51cdb03..1e55ec5e 100644 --- a/src/renderer/renderElement.ts +++ b/src/renderer/renderElement.ts @@ -708,7 +708,7 @@ export const renderElementToSvg = ( ); const path = svgRoot.ownerDocument!.createElementNS(SVG_NS, "path"); node.setAttribute("stroke", "none"); - node.setAttribute("fill", element.strokeStyle); + node.setAttribute("fill", element.strokeColor); path.setAttribute("d", getFreeDrawSvgPath(element)); node.appendChild(path); svgRoot.appendChild(node);