mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-17 22:40:54 +02:00
feat: dark theme export background
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user