Explorar el Código

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

Steve Ruiz hace 4 años
padre
commit
92c7d3257f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);