|
@@ -332,6 +332,7 @@ class App extends React.Component<AppProps, AppState> {
|
|
importLibrary: this.importLibraryFromUrl,
|
|
importLibrary: this.importLibraryFromUrl,
|
|
setToastMessage: this.setToastMessage,
|
|
setToastMessage: this.setToastMessage,
|
|
id: this.id,
|
|
id: this.id,
|
|
|
|
+ app: this,
|
|
} as const;
|
|
} as const;
|
|
if (typeof excalidrawRef === "function") {
|
|
if (typeof excalidrawRef === "function") {
|
|
excalidrawRef(api);
|
|
excalidrawRef(api);
|