feat: dark theme export background

This commit is contained in:
Arnošt Pleskot 2023-08-13 20:00:17 +02:00
parent baa133cbb7
commit 787f5d68cf
No known key found for this signature in database
11 changed files with 172 additions and 75 deletions

View file

@ -124,9 +124,9 @@ export const normalizeSVG = async (SVGString: string) => {
}
};
export const loadSVGElement = (filePath: string) => {
export const loadSVGElement = (dataURL: DataURL) => {
return new Promise<SVGSVGElement>((resolve, reject) => {
fetch(filePath)
fetch(dataURL)
.then((response) => response.text())
.then((svgString) => {
const parser = new DOMParser();