@zsviczian/excalidraw 0.11.0-obsidian-3 → 0.11.0-obsidian-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { RoughCanvas } from "roughjs/bin/canvas";
|
|
3
3
|
import { ActionManager } from "../actions/manager";
|
|
4
|
+
import { RestoredDataState } from "../data/restore";
|
|
4
5
|
import { ExcalidrawElement, NonDeletedExcalidrawElement } from "../element/types";
|
|
5
6
|
import History from "../history";
|
|
6
7
|
import { AppClassProperties, AppProps, AppState, ExcalidrawImperativeAPI, BinaryFiles, LibraryItems, SceneData } from "../types";
|
|
8
|
+
import { ImportedDataState } from "../data/types";
|
|
7
9
|
export declare let showFourthFont: boolean;
|
|
8
10
|
export declare const useIsMobile: () => boolean;
|
|
9
11
|
export declare const useExcalidrawContainer: () => {
|
|
@@ -78,6 +80,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
78
80
|
scrollToContent: (target?: ExcalidrawElement | readonly ExcalidrawElement[]) => void;
|
|
79
81
|
zoomToFit: (target?: readonly ExcalidrawElement[], maxZoom?: number, margin?: number) => void;
|
|
80
82
|
updateContainerSize: (containers: NonDeletedExcalidrawElement[]) => void;
|
|
83
|
+
restore: (data: ImportedDataState) => RestoredDataState;
|
|
81
84
|
clearToast: () => void;
|
|
82
85
|
setToastMessage: (toastMessage: string) => void;
|
|
83
86
|
restoreFileFromShare: () => Promise<void>;
|
package/types/types.d.ts
CHANGED
|
@@ -349,5 +349,6 @@ export declare type ExcalidrawImperativeAPI = {
|
|
|
349
349
|
bringForward: (elements: readonly ExcalidrawElement[]) => void;
|
|
350
350
|
sendToBack: (elements: readonly ExcalidrawElement[]) => void;
|
|
351
351
|
bringToFront: (elements: readonly ExcalidrawElement[]) => void;
|
|
352
|
+
restore: InstanceType<typeof App>["restore"];
|
|
352
353
|
};
|
|
353
354
|
export {};
|