feat: Add onExportToBackend prop so host can handle it (#2612)

Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
Aakansha Doshi
2020-12-20 15:14:04 +01:00
committed by GitHub
co-authored by dwelle
parent b917e42694
commit 325d1bec91
11 changed files with 164 additions and 117 deletions
+5
View File
@@ -166,6 +166,11 @@ export interface ExcalidrawProps {
button: "down" | "up";
pointersMap: Gesture["pointers"];
}) => void;
onExportToBackend?: (
exportedElements: readonly NonDeletedExcalidrawElement[],
appState: AppState,
canvas: HTMLCanvasElement | null,
) => void;
}
export type SceneData = {