fix: freedraw element's background fill color missing from SVG when exporting with package API exportToSvg() (#4871)

This commit is contained in:
zsviczian 2022-03-06 23:35:16 +01:00 committed by GitHub
parent 6765fc16be
commit 1849ff6ee2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -924,6 +924,7 @@ export const renderElementToSvg = (
break;
}
case "freedraw": {
generateElementShape(element, generator);
generateFreeDrawShape(element);
const opacity = element.opacity / 100;
const shape = getShapeForElement(element);