fix: Exporting freedraw with color to svg (#3565)
This commit is contained in:
parent
a8a5e7b6ff
commit
92c7d3257f
@ -708,7 +708,7 @@ export const renderElementToSvg = (
|
|||||||
);
|
);
|
||||||
const path = svgRoot.ownerDocument!.createElementNS(SVG_NS, "path");
|
const path = svgRoot.ownerDocument!.createElementNS(SVG_NS, "path");
|
||||||
node.setAttribute("stroke", "none");
|
node.setAttribute("stroke", "none");
|
||||||
node.setAttribute("fill", element.strokeStyle);
|
node.setAttribute("fill", element.strokeColor);
|
||||||
path.setAttribute("d", getFreeDrawSvgPath(element));
|
path.setAttribute("d", getFreeDrawSvgPath(element));
|
||||||
node.appendChild(path);
|
node.appendChild(path);
|
||||||
svgRoot.appendChild(node);
|
svgRoot.appendChild(node);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user