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[];
|
2020-07-27 17:18:49 +05:30
|
|
|
appState: MarkOptional<AppState, "offsetTop" | "offsetLeft"> | null;
|
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;
|
|
|
|
}
|