mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-15 05:20:27 +02:00
feat: separate fancyBackground from renderScene
This commit is contained in:
@@ -12,6 +12,7 @@ import {
|
||||
updateImageCache,
|
||||
} from "../element/image";
|
||||
import Scene from "./Scene";
|
||||
import { applyFancyBackground } from "./fancyBackground";
|
||||
|
||||
export const SVG_EXPORT_TAG = `<!-- svg-source:excalidraw -->`;
|
||||
|
||||
@@ -54,6 +55,14 @@ export const exportToCanvas = async (
|
||||
|
||||
const onlyExportingSingleFrame = isOnlyExportingSingleFrame(elements);
|
||||
|
||||
if (appState.fancyBackgroundImageUrl) {
|
||||
await applyFancyBackground(
|
||||
canvas,
|
||||
appState.fancyBackgroundImageUrl,
|
||||
viewBackgroundColor,
|
||||
);
|
||||
}
|
||||
|
||||
renderStaticScene({
|
||||
canvas,
|
||||
rc: rough.canvas(canvas),
|
||||
|
Reference in New Issue
Block a user