2020-03-07 10:20:38 -05:00
|
|
|
import { ExcalidrawElement } from "../element/types";
|
2020-07-27 15:29:19 +03:00
|
|
|
import { AppState, LibraryItems } from "../types";
|
2020-03-07 10:20:38 -05:00
|
|
|
|
|
|
|
export interface DataState {
|
|
|
|
type?: string;
|
|
|
|
version?: string;
|
|
|
|
source?: string;
|
|
|
|
elements: readonly ExcalidrawElement[];
|
2021-04-04 15:05:16 +05:30
|
|
|
appState: Omit<AppState, "offsetTop" | "offsetLeft" | "width" | "height">;
|
2020-09-22 21:51:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface ImportedDataState {
|
|
|
|
type?: string;
|
|
|
|
version?: string;
|
|
|
|
source?: string;
|
|
|
|
elements?: DataState["elements"] | null;
|
|
|
|
appState?: Partial<DataState["appState"]> | null;
|
2021-03-16 23:02:17 +05:30
|
|
|
scrollToContent?: boolean;
|
2020-03-07 10:20:38 -05:00
|
|
|
}
|
2020-07-27 15:29:19 +03:00
|
|
|
|
|
|
|
export interface LibraryData {
|
|
|
|
type?: string;
|
|
|
|
version?: number;
|
|
|
|
source?: string;
|
|
|
|
library?: LibraryItems;
|
|
|
|
}
|