Przeglądaj źródła

fix: Exporting freedraw with color to svg (#3565)

Steve Ruiz 4 lat temu
rodzic
commit
92c7d3257f
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/renderer/renderElement.ts

+ 1 - 1
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);