@excalidraw/excalidraw
Version:
Excalidraw as a React component
14 lines (13 loc) • 716 B
TypeScript
import { NonDeletedExcalidrawElement } from "../element/types";
import { ExportType } from "../scene/types";
import { AppState } from "../types";
import { FileSystemHandle } from "./filesystem";
export { loadFromBlob } from "./blob";
export { loadFromJSON, saveAsJSON } from "./json";
export declare const exportCanvas: (type: ExportType, elements: readonly NonDeletedExcalidrawElement[], appState: AppState, { exportBackground, exportPadding, viewBackgroundColor, name, fileHandle, }: {
exportBackground: boolean;
exportPadding?: number | undefined;
viewBackgroundColor: string;
name: string;
fileHandle?: FileSystemHandle | null | undefined;
}) => Promise<FileSystemHandle | null | undefined>;